Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6dd219

Browse files
author
Bruce Eckel
committed
Commented out checkstyle and findbugs
1 parent 9c5e884 commit e6dd219

File tree

3 files changed

+34
-196
lines changed

3 files changed

+34
-196
lines changed

build.gradle

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ subprojects {
134134
apply plugin: 'me.champeau.gradle.jmh'
135135
apply plugin: 'java'
136136
apply plugin: 'org.junit.platform.gradle.plugin'
137-
apply plugin: 'checkstyle'
137+
//apply plugin: 'checkstyle'
138+
//apply plugin: 'findbugs'
138139

139140
sourceCompatibility = '1.8'
140141
targetCompatibility = '1.8'
@@ -165,11 +166,27 @@ subprojects {
165166
// See: http://blog.jessitron.com/2012/07/using-checkstyle-in-gradle.html
166167
// https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
167168
// http://checkstyle.sourceforge.net/reports/google-java-style.html
168-
checkstyle {
169-
configFile = new File(rootDir, "checkstyle.xml")
169+
/* checkstyle {
170+
// configFile = new File(rootDir, "checkstyle.xml")
170171
toolVersion = '6.7'
172+
}*/
173+
174+
/* findbugsMain {
175+
reports {
176+
xml.enabled = false
177+
html.enabled = true
178+
}
179+
ignoreFailures = true
171180
}
172181
182+
findbugsJmh {
183+
reports {
184+
xml.enabled = false
185+
html.enabled = true
186+
}
187+
ignoreFailures = true
188+
}
189+
*/
173190
sourceSets {
174191
main {
175192
java {
@@ -268,20 +285,20 @@ subprojects {
268285
JUnit 5's junitPlatformTest runs as a "javaExec" rather than a "test",
269286
so we can't hook into the before/after test behavior.
270287
*/
271-
tasks.findByPath(":$name:junitPlatformTest").configure{
272-
File testDir = new File(project.name + "/tests")
273-
if ( testDir.exists() ) {
274-
File outFile = new File(testDir, 'report.txt')
275-
doFirst{
276-
standardOutput = new TeeOutputStream(new FileOutputStream(outFile, true), System.out)
277-
}
278-
doLast {
279-
if(outFile.size() == 0)
280-
outFile.delete()
281-
else if(outFile.text.contains("0 tests found"))
282-
outFile.delete()
288+
tasks.findByPath(":$name:junitPlatformTest").configure {
289+
File testDir = new File(project.name + "/tests")
290+
if(testDir.exists()) {
291+
File outFile = new File(testDir, 'report.txt')
292+
doFirst {
293+
standardOutput = new TeeOutputStream(new FileOutputStream(outFile, true), System.out)
294+
}
295+
doLast {
296+
if(outFile.size() == 0)
297+
outFile.delete()
298+
else if(outFile.text.contains("0 tests found"))
299+
outFile.delete()
300+
}
283301
}
284-
}
285302
}
286303
}
287304

checkstyle.xml

Lines changed: 0 additions & 178 deletions
This file was deleted.

go.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
gradlew --parallel --daemon run > output.txt 2> errors.txt
2-
START /min "C:\Program Files\Windows Media Player\wmplayer.exe" %windir%\media\Alarm07.wav
1+
gradlew --no-daemon run > output.txt 2> errors.txt
32
rem find . -size 0 -type f

0 commit comments

Comments
 (0)