Skip to content

Commit 7546f9f

Browse files
committed
feat(): initial commit, sonar-pmd for jdk17 with p3c
0 parents  commit 7546f9f

File tree

722 files changed

+23304
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

722 files changed

+23304
-0
lines changed

.editorconfig

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
root = true
2+
3+
[.idea/*.xml]
4+
indent_style = space
5+
indent_size = 2
6+
max_line_length = 0
7+
8+
[*.{java}]
9+
indent_style = tab
10+
indent_size = 4
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[*.{json,js,xml,html,css,scss}]
17+
charset = utf-8
18+
end_of_line = lf
19+
indent_size = 2
20+
indent_style = space
21+
insert_final_newline = true
22+
max_line_length = 120
23+
trim_trailing_whitespace = true
24+
25+
[*.{yml,properties}]
26+
indent_style = space
27+
indent_size = 2
28+
end_of_line = lf
29+
charset = utf-8
30+
trim_trailing_whitespace = true
31+
insert_final_newline = true
32+

.github/dependabot.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: org.sonarsource.parent:parent
11+
versions:
12+
- "55"
13+
- 57.0.19
14+
- dependency-name: net.sourceforge.pmd:pmd-java
15+
versions:
16+
- 6.32.0
17+
- 6.33.0
18+
- dependency-name: org.sonarsource.java:java-frontend
19+
versions:
20+
- 6.11.0.24617
21+
- 6.14.0.25463
22+
- dependency-name: org.sonarsource.orchestrator:sonar-orchestrator
23+
versions:
24+
- 3.35.0.2707
25+
- dependency-name: org.sonarsource.sonarqube:sonar-plugin-api
26+
versions:
27+
- 8.6.1.40680

.github/workflows/build.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 60
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set Release version env variable
22+
run: |
23+
echo "TAG_NAME=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
24+
25+
# if no tag exists, this is expected to fail
26+
- name: Switch to git tag for release
27+
if: contains(env.TAG_NAME, 'SNAPSHOT') != true
28+
run: |
29+
git fetch --all --tags
30+
git checkout tags/${{ env.TAG_NAME }} -b ${{ env.TAG_NAME }}-tmp-branch
31+
32+
- name: Set up JDK 11
33+
uses: actions/setup-java@v2
34+
with:
35+
distribution: 'zulu'
36+
java-version: 11
37+
38+
- name: Build
39+
run: |
40+
./mvnw clean verify
41+
42+
- name: Upload jar
43+
uses: actions/upload-artifact@v3
44+
with:
45+
name: sonar-pmd-plugin-${{ env.TAG_NAME }}
46+
path: sonar-pmd-plugin/target/sonar-pmd-plugin-*.jar

.github/workflows/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 60
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set Release version env variable
18+
run: |
19+
echo "TAG_NAME=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
20+
21+
# if no tag exists, this is expected to fail
22+
- name: Switch to git tag for release
23+
if: contains(env.TAG_NAME, 'SNAPSHOT') != true
24+
run: |
25+
git fetch --all --tags
26+
git checkout tags/${{ env.TAG_NAME }} -b ${{ env.TAG_NAME }}-tmp-branch
27+
28+
- name: Set up JDK 11
29+
uses: actions/setup-java@v2
30+
with:
31+
distribution: 'zulu'
32+
java-version: 11
33+
server-id: sonatype-nexus
34+
server-username: MAVEN_USERNAME
35+
server-password: MAVEN_PASSWORD
36+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
37+
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
38+
39+
- name: Deploy
40+
env:
41+
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
42+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
43+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSWORD }}
44+
run: |
45+
./mvnw --batch-mode -P release deploy

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ---- Maven
2+
target/
3+
4+
# ---- IntelliJ IDEA
5+
*.iws
6+
*.iml
7+
*.ipr
8+
.idea/
9+
10+
# ---- Eclipse
11+
.classpath
12+
.project
13+
.settings
14+
15+
# ---- Mac OS X
16+
.DS_Store?
17+
Icon?
18+
# Thumbnails
19+
._*
20+
# Files that might appear on external disk
21+
.Spotlight-V100
22+
.Trashes
23+
24+
# ---- Windows
25+
# Windows image file caches
26+
Thumbs.db
27+
# Folder config file
28+
Desktop.ini
29+
.java-version

.mvn/wrapper/maven-wrapper.jar

57.4 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
os: linux
2+
dist: focal
3+
language: java
4+
jdk: openjdk11
5+
install: true
6+
script: ./travis.sh
7+
8+
addons:
9+
sonarcloud:
10+
organization: "jborgers-github"
11+
token:
12+
secure: "U299FqcJAMNfblrZF8R/ivqRk7KNdSOdcyWI4h5dgOLlQHj+HHrF2GJB2fOVeaB53snOkCycM/ZQgqTLlS1PU2NUca3TroNXj6jpNK1Erb/TXqFMKK+rmsN+hcxudDYGnQFIVnWy4lsg72jlK3Qvktt0XyfuYjMqQbsp3zwhlxw="
13+
14+
env:
15+
- TEST=ci
16+
- TEST=plugin SQ_VERSION=LATEST_RELEASE[6.7] SJ_VERSION=LATEST_RELEASE[5.14]
17+
- TEST=plugin SQ_VERSION=LATEST_RELEASE[7.9] SJ_VERSION=DEV
18+
- TEST=plugin SQ_VERSION=LATEST_RELEASE[8.2] SJ_VERSION=DEV
19+
- TEST=plugin SQ_VERSION=LATEST_RELEASE[8.6] SJ_VERSION=DEV
20+
- TEST=plugin SQ_VERSION=DEV SJ_VERSION=DEV
21+
- TEST=javadoc
22+
23+
cache:
24+
directories:
25+
- $HOME/.m2
26+
27+
notifications:
28+
email:
29+
30+

0 commit comments

Comments
 (0)