Skip to content
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

Support reports in other formats #169

Open
miltlima opened this issue Feb 20, 2023 · 1 comment
Open

Support reports in other formats #169

miltlima opened this issue Feb 20, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@miltlima
Copy link

Hello Folks !!

Is there any way to specify the type of report in the action ? per example , can i do this

 - uses: pmd/pmd-github-action@v1
      id: pmd
      with:
        version: '6.40.0'
        sourcePath: 'src/main/java'
        rulesets: 'rulesets/java/quickstart.xml,ruleset.xml'
        reportFile: 'pmd-report.xlst' "Or another report file extension"

Thanks!

@adangel adangel added the enhancement New feature or request label Feb 20, 2023
@adangel adangel changed the title Reports types. Support reports formats Feb 20, 2023
@adangel adangel changed the title Support reports formats Support reports other formats Feb 20, 2023
@adangel
Copy link
Member

adangel commented Feb 20, 2023

Hi @miltlima,
thanks for reaching out.

Currently, this github action will only create a report in sarif format. This format is kind of a standard for static analyzer tools and is natively supported by github's codeql.

If you don't need this feature, we could enhance this action to provide a parameter to specify the report format. Currently there is no such parameter (see inputs for the list of available parameters).
Naturally, only the report format that PMD can produce, can be selected. See PMD Report Formats for a list of available formats.

@adangel adangel changed the title Support reports other formats Support reports in other formats Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants