Merge: toolcontext: new option -w to enable/disable warning
authorJean Privat <jean@pryen.org>
Tue, 30 Sep 2014 10:51:52 +0000 (06:51 -0400)
committerJean Privat <jean@pryen.org>
Tue, 30 Sep 2014 10:51:52 +0000 (06:51 -0400)
commit97dbc21879acd35dfe1c60b8015dc030701bcbba
tree376638d65690131ec10bf3ca74155b3463e5573e
parent1243bd47b6e498cec93009f7ebea38b7077b3795
parent051118839e3fb490b86c9cf20632d9fb01f7dec3
Merge: toolcontext: new option -w to enable/disable warning

The `-w` option takes the name of a warning (displayed at the end of message, between parentheses) to activate it; and "no-{name}" to disable it. It has precedence over -q and -W.

To show only missing-doc warnings in standard
~~~sh
$ nitg -q -w missing-doc standard
~~~

To show all warnings and advices, except missing-doc
~~~sh
$ nitg -W -w no-missing-doc standard
~~~

To show standard warnings except useless-type-test, but not advice except missing-doc
~~~sh
$ nitg -w missing-doc -w no-useless-type-test standard
~~~

Pull-Request: #790
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>