-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CheckStyle + Code Improvements
- Loading branch information
Showing
30 changed files
with
1,626 additions
and
922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow performs a static analysis of your Java source code using | ||
# Detekt. | ||
# | ||
# Scans are triggered: | ||
# 1. On every push to default and protected branches | ||
# 2. On every Pull Request targeting the default branch | ||
# 3. On a weekly schedule | ||
# 4. Manually, on demand, via the "workflow_dispatch" event | ||
# | ||
name: CheckStyle | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for default and protected branches | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- ".github/workflows/checkstyle-analysis.yml" | ||
- "src/**" | ||
- "pom.xml" | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- ".github/workflows/checkstyle-analysis.yml" | ||
- "src/**" | ||
- "pom.xml" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
detekt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 23 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "23" | ||
distribution: "adopt" | ||
cache: mvnw | ||
- name: Grant execute permission for mvnw | ||
run: chmod +x mvnw | ||
- name: Check | ||
run: ./mvnw checkstyle:check |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.