Translate Diagnostic.Kind.NOTE to Security.HINT not WARNING#8163
Translate Diagnostic.Kind.NOTE to Security.HINT not WARNING#8163jglick merged 1 commit intoapache:masterfrom
Diagnostic.Kind.NOTE to Security.HINT not WARNING#8163Conversation
|
(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 |
lahodaj
left a comment
There was a problem hiding this comment.
This looks reasonable to me. We could also consider dropping NOTEs 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 which I do not get locally. |
|
That test is known to be flaky. I restarted the test run for that test group. |
the action items window unfortunately was never kept in sync with the rest of the IDE features. It doesn't know about java hints etc and works essentially like a parallel code scanner additional to what the IDE does. I tried to fix a few things #7393 but gave up for now since I don't really use action items myself and the interest in it seems to be low. |
|
@jglick feel free to merge when ready so that we can shrink the PR count a bit ;) |
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-javaextension (23.0.1) also suffers from this: