A tool set to manage TODO comments in the code.
Todosaurus is a tool that helps to work with TODO notes in software development projects.
It will help you to connect any TODO with an issue in the issue tracker, and make sure that no TODOs in the whole project's source code are left unattended.
The following components, useable separately, are included into Todosaurus:
Read the documentation of each Todosaurus component if you want to know more.
Both Todosaurus components share a common TODO format.
A TODO is considered unresolved if it matches the regex pattern:
\b(?i)TODO(?-i)\b:?(?!\[.*?\])
That is, a case-insensitive word TODO (with an optional colon) that is not immediately followed by a bracketed issue reference like [#123].
Appending [#<number>] immediately after TODO marks it as resolved:
// TODO[#123]: Fix this code
A space before the bracket does not resolve the TODO — TODO [#123] is still considered unresolved.
Multiple TODOs on the same line are allowed. Each is matched independently — a [#issue] resolves only the TODO it immediately follows. The line is flagged if any unresolved TODO remains. For example:
// TODO[#1]: done TODO fix — flagged (second TODO is unresolved)// TODO[#1]: done TODO[#2]: also done — not flaggedRegions of a file can be excluded from scanning using marker comments:
// IgnoreTODO-Start
// TODO: this will not be reported
// IgnoreTODO-End
Lines between IgnoreTODO-Start and IgnoreTODO-End are skipped. The marker lines themselves are not scanned for TODOs.
The following are errors (non-zero exit code in the CLI):
IgnoreTODO-Start (no matching IgnoreTODO-End before end of file)IgnoreTODO-Start (opening a new region while one is already open)IgnoreTODO-End without a matching IgnoreTODO-StartThe project is distributed under the terms of the MIT license (unless a particular file states otherwise).
The license indication in the project's sources is compliant with the REUSE specification v3.3.
CLI stops with NullReferenceException if CI is set and GITHUB_WORKSPACE is not set
https://github.com/ForNeVeR/Todosaurus/issues/327
Labels: bug, help wanted, good first issue
Full spec support in the IntelliJ plugin
https://github.com/ForNeVeR/Todosaurus/issues/281
Labels: enhancement, help wanted, area:intellij
Label fetch exception gets rendered incorrectly
https://github.com/ForNeVeR/Todosaurus/issues/253
Labels: bug, help wanted, good first issue, area:intellij
Multiline tag support
https://github.com/ForNeVeR/Todosaurus/issues/233
Labels: enhancement, help wanted, area:intellij
Better tag color cache management
https://github.com/ForNeVeR/Todosaurus/issues/232
Labels: enhancement, help wanted, area:intellij
PopupTargetRenderer: improve gap management
https://github.com/ForNeVeR/Todosaurus/issues/231
Labels: enhancement, help wanted, area:intellij
Create issue workflow fails with http 400 Bad Request
https://github.com/ForNeVeR/Todosaurus/issues/205
Labels: bug, help wanted, good first issue, area:intellij
Cannot find GitLab remotes correctly if mapped by IP address
https://github.com/ForNeVeR/Todosaurus/issues/203
Labels: enhancement, help wanted, area:intellij
Allow create issue without comment
https://github.com/ForNeVeR/Todosaurus/issues/200
Labels: enhancement, help wanted, good first issue, area:intellij
This repository hosts two sub-projects: Todosaurus IntelliJ plugin and Todosaurus CLI.
See the CONTRIBUTING.md files in the corresponding subfolders for details on working on particular projects. This file will contain general description for working with the repository, applicable to all the subprojects.
Some of the tasks to work with general repository infrastructure will require you to install the following components:
If the CI asks you to update the file licenses, follow one of these:
// SPDX-FileCopyrightText: %year% %your name% <%your contact info, e.g. email%>
//
// SPDX-License-Identifier: MIT
(accommodate to the file's comment style if required).$ reuse annotate --license MIT --copyright '%your name% <%your contact info, e.g. email%>' %file names to annotate%
(Feel free to attribute the changes to "Todosaurus contributors https://github.com/ForNeVeR/Todosaurus" instead of your name in a multi-author file, or if you don't want your name to be mentioned in the project's source: this doesn't mean you'll lose the copyright.)
If the automation asks you to update the file encoding (line endings or UTF-8 BOM) in certain files, run the following PowerShell script (PowerShell Core is recommended to run this script):
$ pwsh -c "Install-Module VerifyEncoding -Repository PSGallery -RequiredVersion 2.3.0 -Force && Test-Encoding -AutoFix -ExcludeExtensions '.bat', '.DotSettings'"
The -AutoFix switch will automatically fix the encoding issues, and you'll only need to commit and push the changes.
If you want to update the GitHub Actions used in the project, edit the file that generated them: scripts/github-actions.fsx.
Then run the following shell command:
$ dotnet fsi scripts/github-actions.fsx