click-review return code doesn't distinguish Warnings from Errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Click Reviewers tools (obsolete) |
Fix Released
|
Undecided
|
Jamie Strandboge |
Bug Description
Run click-review across a bunch of click packages.
Currently:-
Success (no warning or error) = return code 0
Warnings only = return code 1
Errors only = return code 1
Errors and Warnings = return code 1
There's no way to discern between a package which only has warnings, and one which has errors only or both.
Running click-review from a script should, in my opinion, return 0 for success, perhaps 1 for warning and 2 for error.
alan@deep-
Errors
------
- desktop:
'animal-farm' specified as icon in .desktop file for app 'sleepytime', which is not available in the click package.
http://
Warnings
--------
- lint:framework
'ubuntu-sdk-13.10' is deprecated. Please use a newer framework
http://
/tmp/tmp.
alan@deep-
1
alan@deep-
Warnings
--------
- lint:framework
'ubuntu-sdk-13.10' is deprecated. Please use a newer framework
http://
/tmp/tmp.
alan@deep-
1
alan@deep-
Errors
------
- lint:framework
'ubuntu-
http://
/tmp/tmp.
alan@deep-
1
Changed in click-reviewers-tools: | |
status: | In Progress → Fix Committed |
"Running click-review from a script should, in my opinion, return 0 for success, perhaps 1 for warning and 2 for error." I think this is fine. I think I prefer '1' for errors/warning and '2' for just warnings but I can't really articulate why.