Skip to content

Commit

Permalink
TODO comments updated by @imdoneio [ci skip] [imdone skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
imdone-test committed Nov 24, 2017
1 parent 1c5b8ff commit fb47bad
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function File(opts) {
}
util.inherits(File, events.EventEmitter);

// TODO: Add GFM style tasks with [todotext project](https://github.com/todotxt/todo.txt#project) is the list name
// TODO: Add GFM style tasks with [todotext project](https://github.com/todotxt/todo.txt#project) is the list name id:2 gh:90
var LINK_STYLE_REGEX = File.LINK_STYLE_REGEX = /\[(.+?)\]\(#([\w\-]+?)(:)(\d+?\.?\d*?)?\)/gm;
var CODE_BLOCK_REGEX = File.CODE_BLOCK_REGEX = /`{3}[\s\S]*?`{3}/gm;
var INLINE_CODE_REGEX = File.INLINE_CODE_REGEX = /`[\s\S]*?`/g;
Expand Down Expand Up @@ -298,7 +298,7 @@ File.prototype.newTask = function(list, text, order, line, type, hasColon) {
};

File.prototype.getCodeCommentRegex = function() {
// #TODO: Allow languages to have multiple block comment styles, like html gh:13
// #TODO: Allow languages to have multiple block comment styles, like html gh:13 id:5
var lang = this.getLang();
var symbol = lang.symbol;
var reString = escapeRegExp(symbol) + "[^{].*$";
Expand Down Expand Up @@ -330,7 +330,7 @@ File.prototype.extractCodeStyleTasks = function(config, pos, content) {
var charBeforeList = this.getContent().substring(posInContent-1, posInContent);
if (this.startsWithCommentOrSpace(posInContent) && charBeforeList !== "#") {
var list = result[1];
if (config && !config.includeList(list)) return; // #BACKLOG: Save all lists found so we can present them to the user id:6
if (config && !config.includeList(list)) return; // #BACKLOG: Save all lists found so we can present them to the user id:6 gh:92
var rawTask = result[0];
var text = result[5];
var line = this.getLineNumber(posInContent);
Expand Down Expand Up @@ -388,7 +388,7 @@ File.prototype.extractLinkStyleTasks = function(config, pos, content) {
var result;
while((result = linkStyleRegex.exec(content)) !== null) {
var list = result[2];
if (config && !config.includeList(list)) continue; // #BACKLOG: Save all lists found so we can present them to the user
if (config && !config.includeList(list)) continue; // #BACKLOG: Save all lists found so we can present them to the user id:8 gh:94
var rawTask = result[0];
var hasColon = result[3] || !(config && config.keepEmptyPriority);
var order = "";
Expand Down
2 changes: 1 addition & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// BACKLOG: Create list groups to show and hide for projects/repos
// BACKLOG: Create list groups to show and hide for projects/repos id:11 gh:96
var _ = require('lodash');

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/mixins/issues-repo.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

// TODO: Build out issues-repo, a way to integrate issues that don't have TODO comments. Only works if there's a kanban approach.
// TODO: Build out issues-repo, a way to integrate issues that don't have TODO comments. Only works if there's a kanban approach. id:14 gh:99
module.exports = function(repo) {
this.getIssues = function() {
return this.issues;
};

this.getLists = function() {
// TODO: Should return a collection of lists containing issues and tasks +issues
// TODO: Should return a collection of lists containing issues and tasks +issues id:3 gh:91
};

return repo;
Expand Down
2 changes: 1 addition & 1 deletion lib/mixins/repo-fs-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function mixin(repo, fs) {
}

repo.loadConfig = function(cb) {
// TODO: If a config is bad move it to config.json.bak and save a new one with defaults +enhancement +standup +chore gh:2
// TODO: If a config is bad move it to config.json.bak and save a new one with defaults +enhancement +standup +chore gh:2 id:9
cb = tools.cb(cb);
repo.loadIgnore();
var file = repo.getFullPath(CONFIG_FILE);
Expand Down
4 changes: 2 additions & 2 deletions lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var ERRORS = constants.ERRORS,
ASYNC_LIMIT = constants.ASYNC_LIMIT;

// Emits task.found, list.found, file.update and file.delete, file.processed, files.saved
// TODO: Emit file.saved for individual files being saved then update checksum in writeFile
// TODO: Emit file.saved for individual files being saved then update checksum in writeFile id:12 gh:97
//
/**
* A Repository is a file system directory in which to look for tasks in files. The Repository manages all the files
Expand Down Expand Up @@ -868,7 +868,7 @@ Repository.prototype.renameList = function(oldName, newName, cb) {
};
});

// TODO: Let's use saveModifiedFiles here
// TODO: Let's use saveModifiedFiles here id:15 gh:100
if (funcs.length > 0) {
async.series(funcs, function(err) {
if (err) return cb(err);
Expand Down
10 changes: 5 additions & 5 deletions lib/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Task.getMetaData = function(text) {
};

Task.prototype.parseTodoTxt = function() {
// #BACKLOG: #hashtags should be treated like todo.txt tags +enhancement gh:78
// #BACKLOG: #hashtags should be treated like todo.txt tags +enhancement gh:78 id:4
this.tags = Task.getTags(this.text);
this.context = Task.getContext(this.text);
this.meta = Task.getMetaData(this.text);
Expand All @@ -114,7 +114,7 @@ Task.prototype.updateTodoTxt = function() {
};

Task.prototype.updateTags = function() {
// TODO: implement updateTags
// TODO: implement updateTags id:7 gh:93
var self = this;
var tags = Task.getTags(this.text);
if (this.getTags()) {
Expand All @@ -134,7 +134,7 @@ Task.prototype.updateContext = function() {
if (!_.contains(contexts, context)) self.text += util.format(" @%s", context);
});
}
// TODO: We should also remove stuff
// TODO: We should also remove stuff id:10 gh:95
};

// Update task text with metadata
Expand All @@ -151,7 +151,7 @@ Task.prototype.updateMetaData = function() {
}
});
}
// TODO: We should also remove stuff to allow removal of id's when deactivating
// TODO: We should also remove stuff to allow removal of id's when deactivating id:13 gh:98
if (metaFromText) {
_.forEach(metaFromText, function(values, key) {
if (!meta || !meta[key]) {
Expand All @@ -165,7 +165,7 @@ Task.prototype.updateMetaData = function() {
};

Task.prototype.updateDates = function() {
// TODO: Implement updateDates includeing due
// TODO: Implement updateDates includeing due id:16 gh:101
};

/**
Expand Down

0 comments on commit fb47bad

Please sign in to comment.