-
Hi, I deprecated some methods in my code and now the linter is complaining:
I think this should be a warning, not an error. There's any way to change it? I tried this without success since the command is still returning exit code 1:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, The severity configuration allows handling a dedicated field, called The severity configuration doesn't change the exit code. I recommend adding an exclude rule: issues:
exclude-rules:
- linters:
- staticcheck
text: "SA1019: measurement.TotalWeightStore is deprecated" |
Beta Was this translation helpful? Give feedback.
-
I still want to be warned for those deprecated fields, I just don't want my pipeline to fail. |
Beta Was this translation helpful? Give feedback.
Hi,
The severity configuration allows handling a dedicated field, called
severity
, in some output formatThe severity configuration doesn't change the exit code.
I recommend adding an exclude rule: