From c6ad104e86b19334e58076205f19097da2262b8e Mon Sep 17 00:00:00 2001 From: John Jetmore Date: Fri, 16 Oct 2026 15:49:56 -0400 Subject: [PATCH 1/2] replace tsconfig baseDir options with paths --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 2f26aac..e18e434 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "module": "NodeNext", "rootDir": "./src", "moduleResolution": "NodeNext", - "baseUrl": "./", + "paths": {"*": ["./*"]}, "sourceMap": true, "outDir": "./dist", "noImplicitAny": true, From e0540dfed8ea27677c3ec7d268f142e88790529b Mon Sep 17 00:00:00 2001 From: John Jetmore Date: Fri, 16 Oct 2026 15:51:01 -0400 Subject: [PATCH 2/2] add extraOptions setting --- action.yml | 7 +++++++ src/util.ts | 2 ++ 2 files changed, 9 insertions(+) diff --git a/action.yml b/action.yml index aa916fd..eed6ebc 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/src/util.ts b/src/util.ts index 33656bc..993f16c 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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)