pmdtester 1.5.5 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/build-pr.yml +11 -0
- data/.github/workflows/build-release.yml +12 -0
- data/.github/workflows/build-snapshot.yml +17 -0
- data/.github/workflows/build.yml +59 -51
- data/.github/workflows/manual-integration-tests.yml +37 -35
- data/.github/workflows/publish-release.yml +140 -0
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +72 -10
- data/History.md +39 -0
- data/Manifest.txt +5 -4
- data/README.rdoc +28 -16
- data/Rakefile +17 -13
- data/lib/pmdtester/builders/pmd_report_builder.rb +32 -16
- data/lib/pmdtester/builders/project_hasher.rb +2 -2
- data/lib/pmdtester/builders/rule_set_builder.rb +5 -4
- data/lib/pmdtester/builders/simple_progress_logger.rb +1 -0
- data/lib/pmdtester/collection_by_file.rb +1 -1
- data/lib/pmdtester/parsers/options.rb +6 -4
- data/lib/pmdtester/parsers/projects_parser.rb +1 -5
- data/lib/pmdtester/pmd_branch_detail.rb +2 -2
- data/lib/pmdtester/pmd_error.rb +1 -0
- data/lib/pmdtester/pmd_tester_utils.rb +1 -1
- data/lib/pmdtester/project.rb +1 -1
- data/lib/pmdtester/report_diff.rb +1 -1
- data/lib/pmdtester/runner.rb +2 -2
- data/lib/pmdtester.rb +1 -1
- data/pmdtester.gemspec +25 -40
- data/resources/maven-settings.xml +25 -0
- metadata +85 -31
- data/.ci/build.sh +0 -99
- data/.ci/inc/fetch_ci_scripts.bash +0 -19
- data/.ci/manual-integration-tests.sh +0 -37
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b44aeb9d29dbe2fe0f366e51fb5694be4c37c395e8390e8c4a95ef5b7a60a2e
|
4
|
+
data.tar.gz: ccc0f0d978c99a613d7c1172aad826f4373a4dc6c28b4f6043bc5f8553130984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f51981a21381f416629d5653864a6baeb6fe5d0af40d72f711d39a332471a4f117325399ac7895d3bd837cc23387c75d2613380481ecb3f45c9db30021e236f8
|
7
|
+
data.tar.gz: c5d40c071579c0b5335d6cea19c796b0f80cb3709fa46caad2f07ce99b623f2d108712a43dc8348e3e3e05a14027103ac356d49de1f82fe219cf41b3d987f557
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: Build Snapshot
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- '**'
|
7
|
+
# don't run on dependabot branches. Dependabot will create pull requests, which will then be run instead
|
8
|
+
- '!dependabot/**'
|
9
|
+
workflow_dispatch:
|
10
|
+
schedule:
|
11
|
+
# build it monthly: At 04:30 on day-of-month 1.
|
12
|
+
- cron: '30 4 1 * *'
|
13
|
+
|
14
|
+
jobs:
|
15
|
+
build:
|
16
|
+
name: Build Snapshot
|
17
|
+
uses: ./.github/workflows/build.yml
|
data/.github/workflows/build.yml
CHANGED
@@ -1,57 +1,65 @@
|
|
1
|
-
name:
|
1
|
+
name: Build
|
2
2
|
|
3
3
|
on:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
workflow_call:
|
5
|
+
|
6
|
+
# if another commit is added to the same branch or PR (same github.ref),
|
7
|
+
# then cancel already running jobs and start a new build.
|
8
|
+
concurrency:
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
10
|
+
cancel-in-progress: true
|
11
|
+
|
12
|
+
permissions:
|
13
|
+
contents: read # to fetch code (actions/checkout)
|
14
|
+
|
15
|
+
env:
|
16
|
+
LANG: 'en_US.UTF-8'
|
15
17
|
|
16
18
|
jobs:
|
17
|
-
|
18
|
-
timeout-minutes: 120
|
19
|
+
compile:
|
19
20
|
runs-on: ubuntu-latest
|
20
|
-
|
21
|
-
|
21
|
+
timeout-minutes: 120
|
22
|
+
defaults:
|
23
|
+
run:
|
24
|
+
shell: bash
|
22
25
|
steps:
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
26
|
+
- uses: actions/checkout@v4
|
27
|
+
- uses: actions/setup-java@v4
|
28
|
+
with:
|
29
|
+
distribution: 'temurin'
|
30
|
+
java-version: '11'
|
31
|
+
- name: Prepare HOME/openjdk11
|
32
|
+
run: ln -sfn "${JAVA_HOME_11_X64}" "${HOME}/openjdk11"
|
33
|
+
- uses: actions/cache@v4
|
34
|
+
with:
|
35
|
+
path: |
|
36
|
+
~/.m2/repository
|
37
|
+
~/.cache
|
38
|
+
~/.gradle
|
39
|
+
vendor/bundle
|
40
|
+
target/repositories
|
41
|
+
key: v4-${{ runner.os }}-${{ hashFiles('pmdtester.gemspec') }}
|
42
|
+
restore-keys: |
|
43
|
+
v4-${{ runner.os }}-
|
44
|
+
- name: Set up Ruby 3.3
|
45
|
+
uses: ruby/setup-ruby@v1
|
46
|
+
with:
|
47
|
+
ruby-version: 3.3
|
48
|
+
- name: Install dependencies (bundler)
|
49
|
+
run: |
|
50
|
+
# bundler should already be installed
|
51
|
+
bundle --version
|
52
|
+
bundle config set --local path vendor/bundle
|
53
|
+
bundle install
|
54
|
+
- name: Build with rake
|
55
|
+
run: |
|
56
|
+
bundle exec rake check_manifest
|
57
|
+
bundle exec rake rubocop
|
58
|
+
bundle exec rake clean test
|
59
|
+
- name: Run Integration Tests
|
60
|
+
run: |
|
61
|
+
bundle exec rake clean integration-test
|
62
|
+
- name: Build Package
|
63
|
+
run: |
|
64
|
+
bundle exec rake install_gem
|
65
|
+
bundle exec pmdtester -h
|
@@ -6,44 +6,46 @@ on:
|
|
6
6
|
- cron: '30 8 1 * *'
|
7
7
|
workflow_dispatch:
|
8
8
|
|
9
|
+
permissions:
|
10
|
+
contents: read # to fetch code (actions/checkout)
|
11
|
+
|
12
|
+
env:
|
13
|
+
LANG: 'en_US.UTF-8'
|
14
|
+
|
9
15
|
jobs:
|
10
16
|
build:
|
11
17
|
timeout-minutes: 120
|
12
18
|
runs-on: ubuntu-latest
|
13
19
|
continue-on-error: false
|
14
20
|
steps:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
shell: bash
|
47
|
-
env:
|
48
|
-
PMD_CI_SECRET_PASSPHRASE: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
|
49
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
21
|
+
- uses: actions/checkout@v4
|
22
|
+
- uses: actions/setup-java@v4
|
23
|
+
with:
|
24
|
+
distribution: 'temurin'
|
25
|
+
java-version: '11'
|
26
|
+
- name: Prepare HOME/openjdk11
|
27
|
+
run: ln -sfn "${JAVA_HOME_11_X64}" "${HOME}/openjdk11"
|
28
|
+
- uses: actions/cache@v4
|
29
|
+
with:
|
30
|
+
path: |
|
31
|
+
~/.m2/repository
|
32
|
+
~/.cache
|
33
|
+
~/.gradle
|
34
|
+
vendor/bundle
|
35
|
+
target/repositories
|
36
|
+
key: v4-${{ runner.os }}-${{ hashFiles('pmdtester.gemspec') }}
|
37
|
+
restore-keys: |
|
38
|
+
v4-${{ runner.os }}-
|
39
|
+
- name: Set up Ruby 3.3
|
40
|
+
uses: ruby/setup-ruby@v1
|
41
|
+
with:
|
42
|
+
ruby-version: 3.3
|
43
|
+
- name: Install dependencies (bundler)
|
44
|
+
run: |
|
45
|
+
# bundler should already be installed
|
46
|
+
bundle --version
|
47
|
+
bundle config set --local path vendor/bundle
|
48
|
+
bundle install
|
49
|
+
- name: Run Manual Integration Tests
|
50
|
+
run: |
|
51
|
+
bundle exec ruby -I test test/manual_integration_tests.rb
|
@@ -0,0 +1,140 @@
|
|
1
|
+
name: Publish Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_run:
|
5
|
+
workflows: [Build Release]
|
6
|
+
types:
|
7
|
+
- completed
|
8
|
+
branches:
|
9
|
+
- '**'
|
10
|
+
|
11
|
+
permissions:
|
12
|
+
contents: read # to fetch code (actions/checkout)
|
13
|
+
|
14
|
+
env:
|
15
|
+
LANG: 'en_US.UTF-8'
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
check-version:
|
19
|
+
# only run in the official pmd/pmd-regression-tester repo, where we have access to the secrets and not on forks
|
20
|
+
# and only run for _successful_ push workflow runs on tags "releases/**".
|
21
|
+
if: ${{ github.repository == 'pmd/pmd-regression-tester'
|
22
|
+
&& contains(fromJSON('["push", "workflow_dispatch"]'), github.event.workflow_run.event)
|
23
|
+
&& github.event.workflow_run.head_branch != 'main'
|
24
|
+
&& github.event.workflow_run.conclusion == 'success' }}
|
25
|
+
runs-on: ubuntu-latest
|
26
|
+
timeout-minutes: 10
|
27
|
+
defaults:
|
28
|
+
run:
|
29
|
+
shell: bash
|
30
|
+
outputs:
|
31
|
+
VERSION: ${{ steps.version.outputs.VERSION }}
|
32
|
+
steps:
|
33
|
+
- uses: actions/checkout@v4
|
34
|
+
with:
|
35
|
+
ref: ${{ github.event.workflow_run.head_branch }}
|
36
|
+
- name: Set up Ruby 3.3
|
37
|
+
uses: ruby/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: 3.3
|
40
|
+
- name: Install dependencies (bundler)
|
41
|
+
run: |
|
42
|
+
# bundler should already be installed
|
43
|
+
bundle --version
|
44
|
+
bundle config set --local path vendor/bundle
|
45
|
+
bundle install
|
46
|
+
- name: Determine Version
|
47
|
+
id: version
|
48
|
+
env:
|
49
|
+
REF: ${{ github.event.workflow_run.head_branch }}
|
50
|
+
run: |
|
51
|
+
if ! git show-ref --exists "refs/tags/$REF"; then
|
52
|
+
echo "::error ::Tag $REF does not exist, aborting."
|
53
|
+
exit 1
|
54
|
+
fi
|
55
|
+
|
56
|
+
VERSION="$(bundle exec ruby -I. -e 'require "lib/pmdtester"; print PmdTester::VERSION;')"
|
57
|
+
echo "Determined VERSION=$VERSION"
|
58
|
+
if [[ "$VERSION" = *-SNAPSHOT ]]; then
|
59
|
+
echo "::error ::VERSION=$VERSION is a snapshot version, aborting."
|
60
|
+
exit 1
|
61
|
+
fi
|
62
|
+
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
|
63
|
+
- name: Add Job Summary
|
64
|
+
env:
|
65
|
+
WORKFLOW_RUN_DISPLAY_TITLE: ${{ github.event.workflow_run.display_title }}
|
66
|
+
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }}
|
67
|
+
WORKFLOW_RUN_NUMBER: ${{ github.event.workflow_run.run_number }}
|
68
|
+
WORKFLOW_RUN_HTML_URL: ${{ github.event.workflow_run.html_url }}
|
69
|
+
VERSION: ${{ steps.version.outputs.VERSION }}
|
70
|
+
TAG: ${{ github.event.workflow_run.head_branch }}
|
71
|
+
run: |
|
72
|
+
echo "### Run Info" >> "${GITHUB_STEP_SUMMARY}"
|
73
|
+
echo "Building Version: ${VERSION}" >> "${GITHUB_STEP_SUMMARY}"
|
74
|
+
echo "" >> "${GITHUB_STEP_SUMMARY}"
|
75
|
+
echo "Tag: ${TAG}" >> "${GITHUB_STEP_SUMMARY}"
|
76
|
+
echo "" >> "${GITHUB_STEP_SUMMARY}"
|
77
|
+
echo "Called by [${WORKFLOW_RUN_DISPLAY_TITLE} (${WORKFLOW_RUN_NAME} #${WORKFLOW_RUN_NUMBER})](${WORKFLOW_RUN_HTML_URL})" >> "${GITHUB_STEP_SUMMARY}"
|
78
|
+
echo "" >> "${GITHUB_STEP_SUMMARY}"
|
79
|
+
|
80
|
+
publish-to-rubygems:
|
81
|
+
needs: check-version
|
82
|
+
# use environment rubygems, where secrets are configured for GEM_HOST_API_KEY
|
83
|
+
environment:
|
84
|
+
name: rubygems
|
85
|
+
url: https://rubygems.org/gems/pmdtester
|
86
|
+
runs-on: ubuntu-latest
|
87
|
+
permissions:
|
88
|
+
contents: write # to create a release (via gh cli)
|
89
|
+
timeout-minutes: 20
|
90
|
+
defaults:
|
91
|
+
run:
|
92
|
+
shell: bash
|
93
|
+
steps:
|
94
|
+
- name: Set up Ruby 3.3
|
95
|
+
uses: ruby/setup-ruby@v1
|
96
|
+
with:
|
97
|
+
ruby-version: 3.3
|
98
|
+
- name: Install dependencies (bundler)
|
99
|
+
run: |
|
100
|
+
# bundler should already be installed
|
101
|
+
bundle --version
|
102
|
+
bundle config set --local path vendor/bundle
|
103
|
+
bundle install
|
104
|
+
- name: Build with rake
|
105
|
+
run: |
|
106
|
+
bundle exec rake check_manifest
|
107
|
+
bundle exec rake rubocop
|
108
|
+
bundle exec rake clean test
|
109
|
+
- name: Build Package
|
110
|
+
run: |
|
111
|
+
bundle exec rake install_gem
|
112
|
+
- name: Publish to rubygems
|
113
|
+
env:
|
114
|
+
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
115
|
+
run: |
|
116
|
+
gem build pmdtester.gemspec
|
117
|
+
gempkgfile="$(echo pmdtester-*.gem)"
|
118
|
+
gem push "${gempkgfile}"
|
119
|
+
- name: Create GitHub Release
|
120
|
+
env:
|
121
|
+
# Token required for GH CLI:
|
122
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
123
|
+
TAG_NAME: ${{ github.event.workflow_run.head_branch }}
|
124
|
+
VERSION: ${{ needs.check-version.outputs.VERSION }}
|
125
|
+
run: |
|
126
|
+
# extract the release notes
|
127
|
+
RELEASE_NAME="${VERSION}"
|
128
|
+
BEGIN_LINE=$(grep -n "^# " History.md|head -1|cut -d ":" -f 1)
|
129
|
+
BEGIN_LINE=$((BEGIN_LINE + 1))
|
130
|
+
END_LINE=$(grep -n "^# " History.md|head -2|tail -1|cut -d ":" -f 1)
|
131
|
+
END_LINE=$((END_LINE - 1))
|
132
|
+
RELEASE_BODY="$(head -$END_LINE History.md | tail -$((END_LINE - BEGIN_LINE)))"
|
133
|
+
echo "${RELEASE_BODY}" > release_notes.md
|
134
|
+
|
135
|
+
gempkgfile="$(echo pmdtester-*.gem)"
|
136
|
+
|
137
|
+
gh release create "$TAG_NAME" "${gempkgfile}" \
|
138
|
+
--verify-tag \
|
139
|
+
--notes-file release_notes.md \
|
140
|
+
--title "$RELEASE_NAME"
|
data/.rubocop.yml
CHANGED
@@ -2,6 +2,7 @@ inherit_from: .rubocop_todo.yml
|
|
2
2
|
|
3
3
|
AllCops:
|
4
4
|
TargetRubyVersion: 2.7
|
5
|
+
NewCops: enable
|
5
6
|
Include:
|
6
7
|
- 'lib/**/*'
|
7
8
|
- 'test/**/*'
|
@@ -13,7 +14,7 @@ AllCops:
|
|
13
14
|
- 'test/resources/**/*'
|
14
15
|
- 'vendor/**/*'
|
15
16
|
|
16
|
-
|
17
|
+
Layout/LineLength:
|
17
18
|
Max: 120
|
18
19
|
|
19
20
|
Metrics/MethodLength:
|
data/.rubocop_todo.yml
CHANGED
@@ -1,22 +1,26 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2024-02-14 19:42:22 UTC using RuboCop version 1.60.2.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
10
|
-
|
11
|
-
|
9
|
+
# Offense count: 3
|
10
|
+
# Configuration parameters: AllowedParentClasses.
|
11
|
+
Lint/MissingSuper:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/pmdtester/cmd.rb'
|
14
|
+
- 'lib/pmdtester/parsers/pmd_report_document.rb'
|
15
|
+
- 'lib/pmdtester/parsers/projects_parser.rb'
|
12
16
|
|
13
|
-
# Offense count:
|
14
|
-
# Configuration parameters:
|
15
|
-
Metrics/
|
16
|
-
Max:
|
17
|
+
# Offense count: 47
|
18
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
19
|
+
Metrics/AbcSize:
|
20
|
+
Max: 44
|
17
21
|
|
18
|
-
# Offense count:
|
19
|
-
# Configuration parameters: CountComments.
|
22
|
+
# Offense count: 93
|
23
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
20
24
|
Metrics/MethodLength:
|
21
25
|
Max: 22
|
22
26
|
|
@@ -24,3 +28,61 @@ Metrics/MethodLength:
|
|
24
28
|
Naming/AccessorMethodName:
|
25
29
|
Exclude:
|
26
30
|
- 'lib/pmdtester/builders/pmd_report_builder.rb'
|
31
|
+
|
32
|
+
# Offense count: 2
|
33
|
+
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
34
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
35
|
+
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
36
|
+
Naming/VariableNumber:
|
37
|
+
Exclude:
|
38
|
+
- 'test/test_cmd.rb'
|
39
|
+
|
40
|
+
# Offense count: 52
|
41
|
+
# This cop supports safe autocorrection (--autocorrect).
|
42
|
+
# Configuration parameters: EnforcedStyle.
|
43
|
+
# SupportedStyles: separated, grouped
|
44
|
+
Style/AccessorGrouping:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/pmdtester/cmd.rb'
|
47
|
+
- 'lib/pmdtester/parsers/options.rb'
|
48
|
+
- 'lib/pmdtester/parsers/pmd_report_document.rb'
|
49
|
+
- 'lib/pmdtester/pmd_branch_detail.rb'
|
50
|
+
- 'lib/pmdtester/pmd_report_detail.rb'
|
51
|
+
- 'lib/pmdtester/project.rb'
|
52
|
+
- 'lib/pmdtester/report_diff.rb'
|
53
|
+
|
54
|
+
# Offense count: 3
|
55
|
+
# This cop supports safe autocorrection (--autocorrect).
|
56
|
+
# Configuration parameters: Keywords, RequireColon.
|
57
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
58
|
+
Style/CommentAnnotation:
|
59
|
+
Exclude:
|
60
|
+
- 'lib/pmdtester/builders/pmd_report_builder.rb'
|
61
|
+
- 'lib/pmdtester/builders/project_builder.rb'
|
62
|
+
- 'test/test_pmd_report_document.rb'
|
63
|
+
|
64
|
+
# Offense count: 1
|
65
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
66
|
+
Style/GlobalStdStream:
|
67
|
+
Exclude:
|
68
|
+
- 'lib/pmdtester.rb'
|
69
|
+
|
70
|
+
# Offense count: 1
|
71
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
72
|
+
# Configuration parameters: AllowedReceivers.
|
73
|
+
# AllowedReceivers: Thread.current
|
74
|
+
Style/HashEachMethods:
|
75
|
+
Exclude:
|
76
|
+
- 'lib/pmdtester/report_diff.rb'
|
77
|
+
|
78
|
+
# Offense count: 4
|
79
|
+
# This cop supports safe autocorrection (--autocorrect).
|
80
|
+
Style/KeywordParametersOrder:
|
81
|
+
Exclude:
|
82
|
+
- 'lib/pmdtester/pmd_report_detail.rb'
|
83
|
+
|
84
|
+
# Offense count: 1
|
85
|
+
# This cop supports safe autocorrection (--autocorrect).
|
86
|
+
Style/RedundantAssignment:
|
87
|
+
Exclude:
|
88
|
+
- 'lib/pmdtester/builders/pmd_report_builder.rb'
|
data/History.md
CHANGED
@@ -1,3 +1,42 @@
|
|
1
|
+
# 1.6.0 / 2025-07-25
|
2
|
+
|
3
|
+
## New and Noteworthy
|
4
|
+
|
5
|
+
### New Git default branch - "main"
|
6
|
+
|
7
|
+
We are joining the Git community and updating "master" to "main". Using the term "master" for the main
|
8
|
+
development branch can be offensive to some people. Existing versions of Git have been always capable of
|
9
|
+
working with any branch name and since 2.28.0 (July 2020) the default initial branch is configurable
|
10
|
+
(`init.defaultBranch`). Since October 2020, the default branch for new repositories on GitHub
|
11
|
+
is "main". Finally, PMD will also use this new name for the main branch in all our own repositories.
|
12
|
+
|
13
|
+
Note: The regression tester will also use branch `main` by default now for fetching repositories from the list of
|
14
|
+
projects. You might need to add `<tag>master</tag>` for some projects.
|
15
|
+
|
16
|
+
### Required Ruby version
|
17
|
+
|
18
|
+
With this version, Ruby 3.3 or higher is required.
|
19
|
+
|
20
|
+
## Enhancements
|
21
|
+
* [#123](https://github.com/pmd/pmd-regression-tester/pull/123): Support ruby 3.3.0
|
22
|
+
* [#125](https://github.com/pmd/pmd-regression-tester/pull/125): Update rubocop configuration
|
23
|
+
|
24
|
+
## Fixed Issues
|
25
|
+
* [#126](https://github.com/pmd/pmd-regression-tester/pull/126): Fix integration tests
|
26
|
+
* [#127](https://github.com/pmd/pmd-regression-tester/pull/127): Fix manual integration tests
|
27
|
+
* [#129](https://github.com/pmd/pmd-regression-tester/pull/129): Update manual integration tests
|
28
|
+
* [#131](https://github.com/pmd/pmd-regression-tester/pull/131): Refactor GitHub Actions Workflows
|
29
|
+
* [#132](https://github.com/pmd/pmd-regression-tester/pull/132): Fix manual integration test - Update expected_patch_config_3.xml: no more plsql exclusion
|
30
|
+
* [#133](https://github.com/pmd/pmd-regression-tester/pull/133): \[ci] Make build a reuseable workflow
|
31
|
+
* [#134](https://github.com/pmd/pmd-regression-tester/pull/134): Fix missing violations in diff report
|
32
|
+
* [#136](https://github.com/pmd/pmd-regression-tester/pull/136): Fix integration tests - missing pmd-core:jar:tests
|
33
|
+
|
34
|
+
## Dependency Updates
|
35
|
+
* [#130](https://github.com/pmd/pmd-regression-tester/pull/130): Update gems and required ruby version
|
36
|
+
* [#135](https://github.com/pmd/pmd-regression-tester/pull/135): Bump rubocop 1.79
|
37
|
+
|
38
|
+
## External Contributions
|
39
|
+
|
1
40
|
# 1.5.5 / 2023-11-16
|
2
41
|
|
3
42
|
## Fixed Issues
|
data/Manifest.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
1
|
+
.github/workflows/build-pr.yml
|
2
|
+
.github/workflows/build-release.yml
|
3
|
+
.github/workflows/build-snapshot.yml
|
4
4
|
.github/workflows/build.yml
|
5
5
|
.github/workflows/manual-integration-tests.yml
|
6
|
+
.github/workflows/publish-release.yml
|
6
7
|
.gitignore
|
7
8
|
.hoerc
|
8
9
|
.rubocop.yml
|
9
10
|
.rubocop_todo.yml
|
10
|
-
.ruby-version
|
11
11
|
Gemfile
|
12
12
|
History.md
|
13
13
|
LICENSE
|
@@ -57,6 +57,7 @@ resources/js/datatables.min.js
|
|
57
57
|
resources/js/jquery-3.6.4.slim.min.js
|
58
58
|
resources/js/popper-2.11.7.min.js
|
59
59
|
resources/js/project-report.js
|
60
|
+
resources/maven-settings.xml
|
60
61
|
resources/project_diff_report.html
|
61
62
|
resources/project_index.html
|
62
63
|
resources/project_pmd_report.html
|