From d40b9c1944b11dc281685ce36331bba9d205c1fa Mon Sep 17 00:00:00 2001 From: Rishabh Date: Tue, 11 Jan 2022 16:03:24 +0530 Subject: [PATCH 1/3] Added super linter --- .github/workflows/linter.yml | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..e8336d6 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,55 @@ +--- +################################# +################################# +## Super Linter GitHub Actions ## +################################# +################################# +name: Lint Code Base + +# +# Documentation: +# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions +# + +############################# +# Start the job on all push # +############################# +on: + push: + branches-ignore: [master, main] + # Remove the line above to run when pushing to master + pull_request: + branches: [master, main] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 2ea86f48d0a6f497b58c475100a7d06a9add177a Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 12 Jan 2022 09:48:20 +0530 Subject: [PATCH 2/3] Added spotless plugin --- .github/workflows/linter.yml | 55 ------------------------------------ pom.xml | 27 ++++++++++++++++++ 2 files changed, 27 insertions(+), 55 deletions(-) delete mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index e8336d6..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,55 +0,0 @@ ---- -################################# -################################# -## Super Linter GitHub Actions ## -################################# -################################# -name: Lint Code Base - -# -# Documentation: -# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions -# - -############################# -# Start the job on all push # -############################# -on: - push: - branches-ignore: [master, main] - # Remove the line above to run when pushing to master - pull_request: - branches: [master, main] - -############### -# Set the Job # -############### -jobs: - build: - # Name the Job - name: Lint Code Base - # Set the agent to run on - runs-on: ubuntu-latest - - ################## - # Load all steps # - ################## - steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code - uses: actions/checkout@v2 - with: - # Full git history is needed to get a proper list of changed files within `super-linter` - fetch-depth: 0 - - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index c1352f1..bc2d532 100644 --- a/pom.xml +++ b/pom.xml @@ -86,6 +86,7 @@ 1.7.32 appform-io https://sonarcloud.io + 2.19.2 @@ -136,6 +137,32 @@ + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + origin/master + + + + + + 1.8 + + true + + + + + /* (C)$YEAR */ + + + + org.projectlombok lombok-maven-plugin From d49445e1096c88c7e14e102a1f99d2c77738ff5d Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 12 Jan 2022 09:52:15 +0530 Subject: [PATCH 3/3] Binding to verify phase --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index bc2d532..90dfa9b 100644 --- a/pom.xml +++ b/pom.xml @@ -141,6 +141,13 @@ com.diffplug.spotless spotless-maven-plugin ${spotless.version} + + + + check + + + origin/master