From fb47badfcc85787d335d95abb558c5a786744a72 Mon Sep 17 00:00:00 2001 From: "imdone.io app user" Date: Fri, 24 Nov 2017 12:03:59 -0500 Subject: [PATCH] TODO comments updated by @imdoneio [ci skip] [imdone skip] --- lib/file.js | 8 ++++---- lib/list.js | 2 +- lib/mixins/issues-repo.js | 4 ++-- lib/mixins/repo-fs-store.js | 2 +- lib/repository.js | 4 ++-- lib/task.js | 10 +++++----- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/file.js b/lib/file.js index 44b0360d..51bfbde0 100644 --- a/lib/file.js +++ b/lib/file.js @@ -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; @@ -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) + "[^{].*$"; @@ -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); @@ -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 = ""; diff --git a/lib/list.js b/lib/list.js index ece355f1..cbf830b5 100644 --- a/lib/list.js +++ b/lib/list.js @@ -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'); /** diff --git a/lib/mixins/issues-repo.js b/lib/mixins/issues-repo.js index b0011746..6f77176c 100644 --- a/lib/mixins/issues-repo.js +++ b/lib/mixins/issues-repo.js @@ -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; diff --git a/lib/mixins/repo-fs-store.js b/lib/mixins/repo-fs-store.js index 89e10294..17bccc0f 100644 --- a/lib/mixins/repo-fs-store.js +++ b/lib/mixins/repo-fs-store.js @@ -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); diff --git a/lib/repository.js b/lib/repository.js index 6f7e1c2b..12c59195 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -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 @@ -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); diff --git a/lib/task.js b/lib/task.js index 698a61fd..26b54b7c 100644 --- a/lib/task.js +++ b/lib/task.js @@ -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); @@ -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()) { @@ -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 @@ -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]) { @@ -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 }; /**