Tools: 馃挱 Consider mandatory lint suppression explanations

Created on 8 Aug 2020  路  3Comments  路  Source: rome/tools

needs triage

Most helpful comment

@yassere Probably a default explanation of "suppressed via --review" when run via the CLI. In LSP we could just have "insert explanation here" or something. There's probably also something cool that could be done with --review where you could write the explanation there. A CLI flag would also be nice to skip having to input it completely. eg.

rome review --suppression-explanation "Upgrading to Rome 10.0.6-beta"

All 3 comments

If I understand this issue correctly, Rome would require suppression comments to include an explanation. I'm in favor of this; this wouldn't be too tedious during development where rules may be hastily turned off since a simple "wip" comment could be used until release.

How would this interact with decisions that add suppression comments? Would they insert a placeholder explanation or would they insert incomplete suppressions that need to be manually corrected?

@yassere Probably a default explanation of "suppressed via --review" when run via the CLI. In LSP we could just have "insert explanation here" or something. There's probably also something cool that could be done with --review where you could write the explanation there. A CLI flag would also be nice to skip having to input it completely. eg.

rome review --suppression-explanation "Upgrading to Rome 10.0.6-beta"
Was this page helpful?
0 / 5 - 0 ratings

Related issues

yamadayuki picture yamadayuki  路  3Comments

arslivinski picture arslivinski  路  5Comments

josephspurrier picture josephspurrier  路  4Comments

linvain picture linvain  路  4Comments

ChristopherBiscardi picture ChristopherBiscardi  路  5Comments