You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: Todo Violation: TODOs should be avoided : Scroll to the n... (todo)
The TODO comment is indented to align with the code around it, but the custom message for the todo rule is generated by simply stripping the "TODO" and "//" strings from the line. The leading whitespace and the colon I use in my TODO comments are left in the message, which is then truncated to leave very few useful characters.
The leading whitespace should be removed to allow more room for content in the message. Instead of trying to extract the important subset of the text from the line, the rule could simply strip the "//" and the preceding characters and give this warning:
warning: Todo Violation: TODO: Scroll to the newly-expanded section (todo)
The text was updated successfully, but these errors were encountered:
With
todo
warnings enabled, this line// TODO: Scroll to the newly-expanded section
becomes this warning:
The TODO comment is indented to align with the code around it, but the custom message for the todo rule is generated by simply stripping the "TODO" and "//" strings from the line. The leading whitespace and the colon I use in my TODO comments are left in the message, which is then truncated to leave very few useful characters.
The leading whitespace should be removed to allow more room for content in the message. Instead of trying to extract the important subset of the text from the line, the rule could simply strip the "//" and the preceding characters and give this warning:
The text was updated successfully, but these errors were encountered: