[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner updated JENKINS-57428 Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Ulli Hafner Status: Fixed but Unreleased Resolved Released As: 7.0.0 Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.18022.1571820722359%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner updated JENKINS-57428 Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Ulli Hafner Status: Open Fixed but Unreleased Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.10056.1571346600289%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Andreas Pabst assigned an issue to Andreas Pabst Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Andreas Pabst Assignee: Andreas Pabst Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.8875.1571242020253%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner edited a comment on JENKINS-57428 Re: Duplicate warnings when using error-prone and java scan A simpler solution would be to use the {{ [ LookaheadStream|https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/ErrorProneParser.java#L41 }} ] in the [Java Parser|https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/JavacParser.java#L47] as well and skip all warnings that are using multiple lines. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1705.1568970780310%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner commented on JENKINS-57428 Re: Duplicate warnings when using error-prone and java scan A simpler solution would be to use the LookaheadStream|https://github.com/jenkinsci/analysis-model/blob/master/src/main/java/edu/hm/hafner/analysis/parser/ErrorProneParser.java#L41 in the Java Parser as well and skip all warnings that are using multiple lines. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1703.1568970780254%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Ulli Hafner Labels: help-wanted newbie-friendly Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1669.1568970300231%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner assigned an issue to Unassigned Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Ulli Hafner Assignee: Ulli Hafner Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1671.1568970300257%40Atlassian.JIRA.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Michael Düsterhus commented on JENKINS-57428 Re: Duplicate warnings when using error-prone and java scan I would recommend to define priority for parsers and put all warnings with unique identifier like (File + Line) in a global HashMap. Then if a parser has already created a warnings entry for this location all subsequent parsers will ignore it. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.2338.1557819180162%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Change By: Ulli Hafner Issue Type: Bug Improvement Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1852.1557781140228%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Ulli Hafner commented on JENKINS-57428 Re: Duplicate warnings when using error-prone and java scan Yes, both parsers match the same warning line. Just error prone has some additional entries. I'm not sure what a good approach would be to eliminate these duplicates. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199240.1557749846000.1850.1557781140202%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57428) Duplicate warnings when using error-prone and java scan
Title: Message Title Michael Düsterhus created an issue Jenkins / JENKINS-57428 Duplicate warnings when using error-prone and java scan Issue Type: Bug Assignee: Ulli Hafner Attachments: 2019-05-13 14_14_43- [Jenkins] - Vivaldi.png, 2019-05-13 14_16_36-[Jenkins] - Vivaldi.png Components: analysis-model Created: 2019-05-13 12:17 Environment: Version 5.0.1 Priority: Minor Reporter: Michael Düsterhus We use the following setup to scan for java and error-prone warnings: def javaIssues = scanForIssues( blameDisabled: !blame, sourceCodeEncoding: 'UTF-8', tool: java(reportEncoding: 'UTF-8')) def errorproneIssues = scanForIssues( blameDisabled: !blame, sourceCodeEncoding: 'UTF-8', tool: errorProne(reportEncoding: 'UTF-8')) publishIssues( id: 'java-compiler', name: 'Compiler', ignoreFailedBuilds: false, sourceCodeEncoding: 'UTF-8', issues: [javaIssues, errorproneIssues], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]) For a build output like