Git Product home page Git Product logo

Comments (5)

tomasbjerre avatar tomasbjerre commented on June 27, 2024

This should work:

violationConfigs: [
        [pattern: ".*/reports/lint-results-.*\\.xml\$", parser: 'ANDROIDLINT', reporter: "Lint ${flavor}"],
        [pattern: ".*/checkstyle/.*\\.xml\$|.*/reports/ktlint-results-.*\\.xml\$", parser: 'CHECKSTYLE', reporter: "Checkstyle or KtLint ${flavor}"],
        [pattern: '.*/findbugs/.*\\.xml\$', parser: 'FINDBUGS', reporter: "Findbugs ${flavor}"]
]

But I agree that it would be better to allow several reporters for the same parser!

from violation-comments-to-stash-plugin.

leinardi avatar leinardi commented on June 27, 2024

Hey thanks for the workaround, I won't be able to test it before Thursday, but I'll report back.

from violation-comments-to-stash-plugin.

tomasbjerre avatar tomasbjerre commented on June 27, 2024

Another, not so pretty, workaround would be to use the plugin twice.

  step([
   $class: 'ViolationsToBitbucketServerRecorder', 
   config: [
   ...
    violationConfigs: [
        [pattern: ".*/reports/lint-results-.*\\.xml\$", parser: 'ANDROIDLINT', reporter: "Lint ${flavor}"],
        [pattern: ".*/checkstyle/.*\\.xml\$", parser: 'CHECKSTYLE', reporter: "Checkstyle ${flavor}"],
        [pattern: '.*/findbugs/.*\\.xml\$', parser: 'FINDBUGS', reporter: "Findbugs ${flavor}"],
   ]
  ])

  step([
   $class: 'ViolationsToBitbucketServerRecorder', 
   config: [
   ...
    violationConfigs: [
        [pattern: ".*/reports/ktlint-results-.*\\.xml\$", parser: 'CHECKSTYLE', reporter: "KtLint ${flavor}"],
   ]
  ])

from violation-comments-to-stash-plugin.

leinardi avatar leinardi commented on June 27, 2024

This was my original idea but, again, I will be able to try it only on Thursday.

One question: is the second call of the plugin going to wipe the comments from the first call? Should I explicitly use keepOldComments: true?

from violation-comments-to-stash-plugin.

tomasbjerre avatar tomasbjerre commented on June 27, 2024

I would set keepOldComments: false in the first call and keepOldComments: true in the last one.

from violation-comments-to-stash-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.