Issue Type: Bug Bug
Affects Versions: current
Assignee: Christopher Orr
Components: android-lint
Created: 05/Feb/13 3:34 PM
Description:

In the specification of lint is the Serverity of information given as
the String "Information"
(http://grepcode.com/file/repo1.maven.org/maven2/com.android.tools.lint/lint_api/r16/com/android/tools/lint/detector/api/Severity.java).
Further more here is an result-example:
<issue id="OldTargetApi" severity="Information" message="Not
targetin..........">

In the file: android-lint-plugin / src / main / java / org / jenkinsci
/ plugins / android_lint / parser / LintParser.java

in your method:

private Priority getPriority(String severity) {
if (SEVERITY_FATAL.equals(severity) ||
SEVERITY_ERROR.equals(severity)) { return Priority.HIGH; }
if (SEVERITY_INFORMATIONAL.equals(severity)) { return Priority.LOW; }
return Priority.NORMAL;
}

you check against the constant SEVERITY_INFORMATIONAL which is
"Informational", this is wrong. As you can see in the specification
the string itself should be "Information".

The correct constant should be:
/** Severity constant value from {@link com.android.tools.lint.detector.api.Severity}. */
private static final String SEVERITY_INFORMATIONAL = "Information";

Project: Jenkins
Priority: Major Major
Reporter: Jan Loebel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to