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
I would like the ability to provide a reason for rule disabling (on the same line) as an option. Adding anything to the revive: comment breaks it (regex I guess?), so currently I must do it on a separate line.
I propose two things:
Ability to write comments like // revive:disable-line:RULE This is intentional
or even (for cleaner integration with other tools)
// revive:disable:var-naming TODO: fix it later
Global config flag (disabled by default) that would require to provide the reason (like staticcheck does by default)
The text was updated successfully, but these errors were encountered:
I would like the ability to provide a reason for rule disabling (on the same line) as an option. Adding anything to the
revive:
comment breaks it (regex I guess?), so currently I must do it on a separate line.I propose two things:
Ability to write comments like
// revive:disable-line:RULE This is intentional
or even (for cleaner integration with other tools)
// revive:disable:var-naming TODO: fix it later
Global config flag (disabled by default) that would require to provide the reason (like
staticcheck
does by default)The text was updated successfully, but these errors were encountered: