Procházet zdrojové kódy

Add findbugs.

Change-Id: If96ce40a9e3afaf07858eec6ee17fc384715d240
Reviewed-on: http://gerrit.dmdirc.com/3947
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/47/3947/2
Chris Smith před 9 roky
rodič
revize
67e737c9b4
3 změnil soubory, kde provedl 16 přidání a 2 odebrání
  1. 14
    0
      build.gradle
  2. binární
      gradle/wrapper/gradle-wrapper.jar
  3. 2
    2
      gradle/wrapper/gradle-wrapper.properties

+ 14
- 0
build.gradle Zobrazit soubor

4
 
4
 
5
 subprojects {
5
 subprojects {
6
     apply plugin: 'java'
6
     apply plugin: 'java'
7
+    apply plugin: 'findbugs'
7
     apply plugin: 'pmd'
8
     apply plugin: 'pmd'
8
 
9
 
9
     configurations {
10
     configurations {
79
         ruleSetFiles = files("$rootDir/etc/pmd/full.xml")
80
         ruleSetFiles = files("$rootDir/etc/pmd/full.xml")
80
     }
81
     }
81
 
82
 
83
+    tasks.withType(FindBugs) {
84
+        reports {
85
+            html.enabled = true
86
+            xml.enabled = false
87
+        }
88
+    }
89
+
90
+    findbugs {
91
+        reportLevel = 'low'
92
+        effort = 'max'
93
+        ignoreFailures = true
94
+    }
95
+
82
     jar {
96
     jar {
83
         from("$buildDir/plugin.config") {
97
         from("$buildDir/plugin.config") {
84
             into 'META-INF'
98
             into 'META-INF'

binární
gradle/wrapper/gradle-wrapper.jar Zobrazit soubor


+ 2
- 2
gradle/wrapper/gradle-wrapper.properties Zobrazit soubor

1
-#Sun Sep 14 12:37:42 BST 2014
1
+#Tue Sep 16 15:02:24 BST 2014
2
 distributionBase=GRADLE_USER_HOME
2
 distributionBase=GRADLE_USER_HOME
3
 distributionPath=wrapper/dists
3
 distributionPath=wrapper/dists
4
 zipStoreBase=GRADLE_USER_HOME
4
 zipStoreBase=GRADLE_USER_HOME
5
 zipStorePath=wrapper/dists
5
 zipStorePath=wrapper/dists
6
-distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-bin.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-bin.zip

Načítá se…
Zrušit
Uložit