FSharpLint icon indicating copy to clipboard operation
FSharpLint copied to clipboard

New rule proposal: Track uses of "TODO" tags

Open milbrandt opened this issue 4 years ago • 2 comments

Description

TODO tags are commonly used to mark places where some more code is required, but which the developer wants to implement later. Sometimes the developer will not have the time or will simply forget to get back to that tag. This rule is meant to track those tags and to ensure that they do not go unnoticed.

Expected behavior

Report TODOand synonymns, see at http://wordaligned.org/articles/todo

This rule is available in several static Code ananlyzers of other langes, e.g. in SonarQube (https://jira.sonarsource.com/browse/RSPEC-1135)

Actual behavior

rule not available today

Known workarounds

One might configure a hint

Related information

Rule not listed at http://fsprojects.github.io/FSharpLint/Rules.html

milbrandt avatar Mar 23 '20 08:03 milbrandt

Thanks, good suggestion!

duckmatt avatar Mar 23 '20 08:03 duckmatt

You may find it interesting to check the code of F# Powertools. It's not supported after VS2017, but it supported task lists of TODO and FIXME and the like: https://github.com/fsprojects/Archive-VisualFSharpPowerTools/blob/master/README.md

And: http://fsprojects.github.io/VisualFSharpPowerTools/tasklistcomments.html

And here's the proposal for F# itself (still open), there's clearly demand for it (I'd love it too!): https://github.com/dotnet/fsharp/issues/4175

abelbraaksma avatar Mar 23 '20 10:03 abelbraaksma