Skip to content

Commit dd4ab5c

Browse files
committed
Use "pmd check" instead of "pmd analyze"
1 parent e60274c commit dd4ab5c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/pmdtester/builders/pmd_report_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def determine_run_path
221221
run_path = "#{saved_distro_path(@pmd_branch_details.branch_last_sha)}/bin"
222222
run_path = if File.exist?("#{run_path}/pmd")
223223
# New PMD 7 CLI script (pmd/pmd#4059)
224-
"#{run_path}/pmd analyze"
224+
"#{run_path}/pmd check"
225225
else
226226
"#{run_path}/run.sh pmd"
227227
end

pmdtester.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
1111
s.metadata = { "bug_tracker_uri" => "https://github.com/pmd/pmd-regression-tester/issues", "homepage_uri" => "https://pmd.github.io", "source_code_uri" => "https://github.com/pmd/pmd-regression-tester" } if s.respond_to? :metadata=
1212
s.require_paths = ["lib".freeze]
1313
s.authors = ["Andreas Dangel".freeze, "Binguo Bao".freeze, "Cl\u00E9ment Fournier".freeze]
14-
s.date = "2022-10-13"
14+
s.date = "2022-10-16"
1515
s.description = "A regression testing tool ensure that new problems and unexpected behaviors will not be introduced to PMD project after fixing an issue , and new rules can work as expected.".freeze
1616
s.email = ["[email protected]".freeze, "[email protected]".freeze, "[email protected]".freeze]
1717
s.executables = ["pmdtester".freeze]

test/test_pmd_report_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_build_pmd7
162162
record_expectations(sha1, sha1, true)
163163
record_expectations_after_build
164164
record_expectations_project_build(sha1: sha1, error: true, long_cli_options: true,
165-
no_progress_bar: true, base_cmd: 'pmd analyze')
165+
no_progress_bar: true, base_cmd: 'pmd check')
166166

167167
pmd_cli_cmd = prepare_pmd_dist_dir(version: @pmd_version, sha1: sha1)
168168
begin

0 commit comments

Comments
 (0)