Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ inputs:
executions on multiple os of this action.
required: false
default: 'true'
extraOptions:
description: >-
String of additional command line options to pass to the pmd execution.
For instance, as there is no native interface to use-version, this
option could be set to `--use-version=java-21`.
required: false
default: ''
outputs:
violations:
description: Number of violations found
Expand Down
2 changes: 2 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ async function executePmd(
pmdExecutable += ' check --no-progress'
}

pmdExecutable += ' ' + core.getInput('extraOptions', { required: false })

let sourceParameter: string[]
if (Array.isArray(fileListOrSourcePath)) {
await writeFileList(fileListOrSourcePath)
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "NodeNext",
"rootDir": "./src",
"moduleResolution": "NodeNext",
"baseUrl": "./",
"paths": {"*": ["./*"]},
"sourceMap": true,
"outDir": "./dist",
"noImplicitAny": true,
Expand Down