dartanalyzer has an incorrect exit status 3 when analyzing a part #1216
Description
Reported by jenw7810, Jun 27, 2014
To reproduce:
- Create test.dart with the following contents:
part of library_name;
- Run:
dartanalyzer test.dart ; echo $?
which outputs 3. This happens with version 1.5.1 and 1.4.0. With version 1.3.6, it outputs 0.
According to:
https://www.dartlang.org/docs/dart-up-and-running/contents/ch04-tools-dart_analyzer.html
3 is not a valid exit status.
Either the tool should be updated to return to the previous behavior or the documentation should be updated to add this new exit status when analyzing a file that is part of a library.
Jun 28, 2014 Project Member #1 [email protected]
(No comment was entered for this change.)
Status: Triaged
Labels: -Priority-Unassigned Priority-Medium Area-Analyzer Milestone-1.6
Jul 10, 2014 Project Member #2 [email protected]
(No comment was entered for this change.)
Labels: -Milestone-1.6 Oldschool-Milestone-1.6
Jul 11, 2014 Project Member #3 [email protected]
(No comment was entered for this change.)
Labels: -Oldschool-Milestone-1.6 Analyzer-Command
Nov 5, 2014 Project Member #4 [email protected]
The exit codes listed on https://www.dartlang.org/tools/analyzer/ are wrong. The current exit codes are:
0 - No issues found
1 - Hints found (but no warnings or errors)
2 - Warnings found (but no errors)
3 - Errors found
Labels: -Area-Analyzer -Analyzer-Command Area-Documentation Docs-Tools
Nov 6, 2014 Project Member #5 [email protected]
Issue 20679 has been merged into this issue.
Today (2 hours ago) Project Member #6 [email protected]
Shams, could you fix this and/or move it over to the github repo for www.dartlang.org?
Owner: [email protected]
Today (2 hours ago) Project Member #7 [email protected]
Issue 21991 has been merged into this issue.
Original issue: https://code.google.com/p/dart/issues/detail?id=19705