Skip to content

Commit 3c37758

Browse files
author
Vitaliy Boyko
committed
Removed spot bugs
1 parent fa0e71b commit 3c37758

File tree

3 files changed

+26
-47
lines changed

3 files changed

+26
-47
lines changed

.github/workflows/gradle.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,6 @@ jobs:
2424
run: chmod +x gradlew
2525
- name: Run automated tests
2626
run: ./gradlew test -i --no-daemon
27-
- id: file_changes
28-
uses: trilom/[email protected]
29-
- name: Run Code Style Check
30-
run: ./gradlew checkstyleCI -i --no-daemon
31-
env:
32-
MODIFIED_FILES: ${{ steps.file_changes.outputs.files}}
33-
- name: Run PMD Quality Check
34-
run: ./gradlew pmdCI -i --no-daemon
35-
env:
36-
MODIFIED_FILES: ${{ steps.file_changes.outputs.files}}
37-
- name: Run Spotbugs Quality Check
38-
run: ./gradlew spotbugsCI -i --no-daemon
39-
env:
40-
MODIFIED_FILES: ${{ steps.file_changes.outputs.files}}
4127

4228
build-windows:
4329

@@ -71,4 +57,29 @@ jobs:
7157
- name: Grant execute permission for gradlew
7258
run: chmod +x gradlew
7359
- name: Run automated tests
74-
run: ./gradlew test -i --no-daemon
60+
run: ./gradlew test -i --no-daemon
61+
62+
static-tests:
63+
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Set up JDK 1.8
69+
uses: actions/setup-java@v1
70+
with:
71+
java-version: 1.8
72+
- name: Gradle wrapper
73+
run: gradle wrapper
74+
- name: Grant execute permission for gradlew
75+
run: chmod +x gradlew
76+
- id: file_changes
77+
uses: trilom/[email protected]
78+
- name: Run Code Style Check
79+
run: ./gradlew checkstyleCI -i --no-daemon
80+
env:
81+
MODIFIED_FILES: ${{ steps.file_changes.outputs.files}}
82+
- name: Run PMD Quality Check
83+
run: ./gradlew pmdCI -i --no-daemon
84+
env:
85+
MODIFIED_FILES: ${{ steps.file_changes.outputs.files}}

build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ plugins {
77
id 'org.jetbrains.intellij' version '0.4.15'
88
id 'checkstyle'
99
id 'pmd'
10-
id "com.github.spotbugs" version "3.0.0"
11-
}
12-
13-
ext {
14-
SpotBugsTask = com.github.spotbugs.SpotBugsTask
1510
}
1611

1712
repositories {

gradle-tasks/staticChecks.gradle

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ pmd {
2525
]
2626
}
2727

28-
spotbugs {
29-
ignoreFailures = false
30-
showProgress = true
31-
effort = 'default'
32-
}
33-
3428
tasks.withType(Checkstyle) {
3529
// Specify all files that should be checked
3630
classpath = files()
@@ -73,27 +67,6 @@ task pmdCI(type: Pmd) {
7367
include changedFiles
7468
}
7569

76-
tasks.withType(SpotBugsTask) {
77-
// Specify all files that should be checked
78-
classpath = files()
79-
source "${project.rootDir}"
80-
81-
reports {
82-
xml.enabled false
83-
html.enabled true
84-
}
85-
}
86-
87-
// Execute SpotBugsTask on all files
88-
task spotbugs(type: SpotBugsTask) {
89-
}
90-
91-
// Execute Checkstyle on all modified files
92-
task spotbugsCI(type: SpotBugsTask) {
93-
def changedFiles = getChangedFiles()
94-
include changedFiles
95-
}
96-
9770
/**
9871
* Get all files that are changed but not deleted nor renamed.
9972
* Compares to master or the specified target branch.

0 commit comments

Comments
 (0)