Skip to content

Commit f6beb2e

Browse files
authored
Merge pull request #71 from xdev-software/develop
Release
2 parents d7a8ace + d994b61 commit f6beb2e

16 files changed

Lines changed: 47 additions & 18 deletions

File tree

.config/pmd/ruleset.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,12 @@
151151
<exclude name="UseStringBufferForStringAppends"/>
152152
</rule>
153153

154+
<rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
155+
<properties>
156+
<!-- If you have one case only please use a if -->
157+
<property name="minimumNumberCaseForASwitch" value="2"/>
158+
</properties>
159+
</rule>
160+
154161
<rule ref="category/java/security.xml"/>
155162
</ruleset>

.github/workflows/broken-links.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ permissions:
1111
jobs:
1212
link-checker:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1415
steps:
1516
- uses: actions/checkout@v4
1617

1718
- run: mv .github/.lycheeignore .lycheeignore
1819

1920
- name: Link Checker
2021
id: lychee
21-
uses: lycheeverse/lychee-action@v1
22+
uses: lycheeverse/lychee-action@v2
23+
with:
24+
fail: false # Don't fail on broken links, create an issue instead
2225

2326
- name: Find already existing issue
2427
id: find-issue

.github/workflows/check-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
jobs:
2323
build:
2424
runs-on: ubuntu-latest
25+
timeout-minutes: 30
2526

2627
strategy:
2728
matrix:
@@ -76,6 +77,7 @@ jobs:
7677
checkstyle:
7778
runs-on: ubuntu-latest
7879
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
80+
timeout-minutes: 15
7981

8082
strategy:
8183
matrix:
@@ -93,11 +95,12 @@ jobs:
9395
cache: 'gradle'
9496

9597
- name: Run Checkstyle
96-
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled=true
98+
run: ./gradlew checkstyleMain checkstyleTest -PcheckstyleEnabled
9799

98100
pmd:
99101
runs-on: ubuntu-latest
100102
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
103+
timeout-minutes: 15
101104

102105
strategy:
103106
matrix:
@@ -115,7 +118,7 @@ jobs:
115118
cache: 'gradle'
116119

117120
- name: Run PMD
118-
run: ./gradlew pmdMain pmdTest
121+
run: ./gradlew pmdMain pmdTest -PpmdEnabled
119122

120123
- name: Upload report
121124
if: always()

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ permissions:
99
pull-requests: write
1010

1111
jobs:
12-
check_code: # Validates the code
12+
check_code:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 30
1415
steps:
1516
- uses: actions/checkout@v4
1617

@@ -45,6 +46,7 @@ jobs:
4546
prepare_release:
4647
runs-on: ubuntu-latest
4748
needs: [check_code]
49+
timeout-minutes: 10
4850
outputs:
4951
upload_url: ${{ steps.create_release.outputs.upload_url }}
5052
steps:
@@ -99,6 +101,7 @@ jobs:
99101
publish:
100102
runs-on: ubuntu-latest
101103
needs: [prepare_release]
104+
timeout-minutes: 60
102105
steps:
103106
- uses: actions/checkout@v4
104107

@@ -132,6 +135,7 @@ jobs:
132135
after_release:
133136
runs-on: ubuntu-latest
134137
needs: [publish]
138+
timeout-minutes: 10
135139
steps:
136140
- uses: actions/checkout@v4
137141

.github/workflows/sonar.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- '.idea/**'
1212
- 'assets/**'
1313
pull_request:
14-
types: [opened, synchronize, reopened]
14+
branches: [ develop ]
1515
paths-ignore:
1616
- '**.md'
1717
- '.config/**'
@@ -27,6 +27,7 @@ jobs:
2727
token-check:
2828
runs-on: ubuntu-latest
2929
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
30+
timeout-minutes: 5
3031
outputs:
3132
hasToken: ${{ steps.check-token.outputs.has }}
3233
steps:
@@ -40,6 +41,7 @@ jobs:
4041
runs-on: ubuntu-latest
4142
needs: token-check
4243
if: ${{ needs.token-check.outputs.hasToken }}
44+
timeout-minutes: 30
4345
steps:
4446
- uses: actions/checkout@v4
4547
with:
@@ -67,7 +69,7 @@ jobs:
6769

6870
- name: Build
6971
run: |
70-
./gradlew build sonarqube --info \
72+
./gradlew build sonarqube -x test --info \
7173
-Dsonar.projectKey=${{ env.SONARCLOUD_ORG }}_${{ github.event.repository.name }} \
7274
-Dsonar.organization=${{ env.SONARCLOUD_ORG }} \
7375
-Dsonar.host.url=${{ env.SONARCLOUD_HOST }}

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
labels:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1718
steps:
1819
- uses: actions/checkout@v4
1920
with:

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
jobs:
77
publish:
88
runs-on: ubuntu-latest
9+
timeout-minutes: 60
910
steps:
1011
- uses: actions/checkout@v4
1112

.github/workflows/update-from-template.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ permissions:
3131
jobs:
3232
update:
3333
runs-on: ubuntu-latest
34+
timeout-minutes: 60
3435
outputs:
3536
update_branch_merged_commit: ${{ steps.manage-branches.outputs.update_branch_merged_commit }}
3637
create_update_branch_merged_pr: ${{ steps.manage-branches.outputs.create_update_branch_merged_pr }}
@@ -180,6 +181,7 @@ jobs:
180181
needs: [update]
181182
if: needs.update.outputs.create_update_branch_merged_pr == 1
182183
runs-on: ubuntu-latest
184+
timeout-minutes: 60
183185
steps:
184186
- uses: actions/checkout@v4
185187
with:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ classes
1313

1414
# Plugins
1515
*.idea/checkstyle-idea.xml
16-
.intellijPlatform
1716

1817
# Gradle
1918
.gradle/
2019
build/
2120

21+
# IntelliJ Platform Plugin
22+
.intellijPlatform
23+
2224

2325
# Some files are user/installation independent and are used for configuring the IDE
2426
# See also https://stackoverflow.com/a/35279076

.idea/checkstyle-idea.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)