Warning if there is a TODO comment in the AL code #86
Replies: 3 comments 2 replies
-
@rvanbekkum We apply a zero-warning policy for builds to succeed. For AL0432 that show up, we apply following logic:
In this case, the // TODO tag make sense to us. How do you deal with this scenario? |
Beta Was this translation helpful? Give feedback.
-
I had a similar idea recently! But maybe TODO is not the right one. I feel like it would just be nice to be able to mark a line in code to manually create a warning. This will then fail the build of you forgot to remove that line. Just like a reminder to not publish code which is not meant to be released. |
Beta Was this translation helpful? Give feedback.
-
How about I would tend to set this rule to disabled by default |
Beta Was this translation helpful? Give feedback.
-
Currently we have implemented a step in our build pipelines that will warn about TODO comments in the repository, but it's currently simply a PowerShell task that goes through all files in the repository and checks for TODO.
This could be nice to have as a code analyzer rule so you also see this in VS Code (and apart from that, I think it could be useful for others as well to be warned that there are TODOs somewhere in their projects).
Beta Was this translation helpful? Give feedback.
All reactions