-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate Diagnostic.Kind.NOTE
to Security.HINT
not WARNING
#8163
base: master
Are you sure you want to change the base?
Conversation
(As an aside, https://github.com/jenkinsci/workflow-job-plugin/blob/5b18defc07f27c7bde3521e04b7bab66398a89d3/src/main/java/org/jenkinsci/plugins/workflow/job/properties/DisableConcurrentBuildsJobProperty.java#L62 shows no warning inside the IDE even though https://github.com/jglick/sezpoz/blob/9aad5b93fee760b658f423eae611b04b874b75e4/sezpoz/src/main/java/net/java/sezpoz/impl/Indexer.java#L161-L163 prints a diagnostic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me. We could also consider dropping NOTE
s completely, as they typically do not carry much useful information.
Yes, I believe Diagnostics that are not associated with a file are ignored here.
CI is reporting a failure in netbeans/java/java.hints/test/unit/src/org/netbeans/modules/java/hints/FieldForUnusedParamTest.java Lines 109 to 124 in c7949a1
|
That test is known to be flaky. I restarted the test run for that test group. |
Ever since jenkinsci/stapler#575 I have been bothered by the NetBeans editor showing gratuitous yellow warning lines for a variety of annotation processor notes that are not in fact warnings. For example https://github.com/jenkinsci/workflow-job-plugin/blob/5b18defc07f27c7bde3521e04b7bab66398a89d3/src/main/java/org/jenkinsci/plugins/workflow/job/properties/DisableConcurrentBuildsJobProperty.java#L49-L50 displays warning just because the processor noted that it was generating a file in response to an annotation. Downgrading the “severity” to a “hint” still shows an icon in the gutter, which is OK, and still shows a “warning” in the Action Items window, which is less OK, but at least the editor does not make it look like I did something wrong.
Before:
After:
By the way VS Code using the
oracle.oracle-java
extension (23.0.1) also suffers from this: