Skip to content

Commit

Permalink
#1097 findbugs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 1, 2021
1 parent c5b4c24 commit 0477ff0
Show file tree
Hide file tree
Showing 89 changed files with 385 additions and 1,973 deletions.
1 change: 0 additions & 1 deletion est/001.est
Expand Up @@ -6,7 +6,6 @@ scope:
2: Define interfaces and architecture
3: Integrate Checkstyle
4: Integrate PMD
5: Integrate Findbugs
6: Integrate Codenarc
7: Add custom checks/rules
8: Add dependency analyser
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Expand Up @@ -43,7 +43,6 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<modules>
<module>qulice-ant</module>
<module>qulice-checkstyle</module>
<module>qulice-findbugs</module>
<module>qulice-maven-plugin</module>
<module>qulice-pmd</module>
<module>qulice-spi</module>
Expand Down
13 changes: 1 addition & 12 deletions qulice-ant/pom.xml
Expand Up @@ -68,11 +68,6 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.qulice</groupId>
<artifactId>qulice-findbugs</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.qulice</groupId>
<artifactId>qulice-spi</artifactId>
Expand Down Expand Up @@ -112,11 +107,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<configuration combine.children="append">
<mergeUserSettings>false</mergeUserSettings>
<pomIncludes>
<pomInclude>findbugs-violations/pom.xml</pomInclude>
<pomInclude>violations/pom.xml</pomInclude>
</pomIncludes>
<extraArtifacts>
<extraArtifact>${project.groupId}:qulice-checkstyle:${project.version}:jar</extraArtifact>
<extraArtifact>${project.groupId}:qulice-findbugs:${project.version}:jar</extraArtifact>
<extraArtifact>${project.groupId}:qulice-pmd:${project.version}:jar</extraArtifact>
<extraArtifact>${project.groupId}:qulice-spi:${project.version}:jar</extraArtifact>
</extraArtifacts>
Expand All @@ -127,11 +121,6 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<artifactId>qulice-checkstyle</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>qulice-findbugs</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>qulice-pmd</artifactId>
Expand Down
36 changes: 0 additions & 36 deletions qulice-ant/src/it/findbugs-violations/verify.groovy

This file was deleted.

File renamed without changes.
File renamed without changes.
Expand Up @@ -36,10 +36,10 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<version>0.54.1</version>
</parent>
<groupId>com.qulice.plugin</groupId>
<artifactId>findbugs-violations</artifactId>
<artifactId>violations</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>findbugs-violations</name>
<name>violations</name>
<build>
<plugins>
<plugin>
Expand Down
Expand Up @@ -48,7 +48,7 @@ public final class Main {
* Test something.
*/
public Main() {
this.list = new HashSet<URL>();
this.list = new HashSet<URL>(500);
}

/**
Expand Down
Expand Up @@ -33,4 +33,4 @@
*/

def log = new File(basedir, 'build.log')
assert log.text.contains('com.qulice.foo.Main.list is or uses a map or set of URLs, which can be a performance hog')
assert log.text.contains('MagicNumberCheck')
22 changes: 12 additions & 10 deletions qulice-ant/src/main/java/com/qulice/ant/QuliceTask.java
Expand Up @@ -31,7 +31,6 @@

import com.jcabi.log.Logger;
import com.qulice.checkstyle.CheckstyleValidator;
import com.qulice.findbugs.FindBugsValidator;
import com.qulice.pmd.PmdValidator;
import com.qulice.spi.Environment;
import com.qulice.spi.ResourceValidator;
Expand Down Expand Up @@ -97,21 +96,21 @@ public void setClasspath(final Path clsspth) {
public void execute() {
super.execute();
final Environment env = this.environment();
final long start = System.nanoTime();
try {
final long start = System.nanoTime();
QuliceTask.validate(env);
Logger.info(
this,
"Qulice quality check completed in %[nano]s",
System.nanoTime() - start
);
} catch (final ValidationException ex) {
Logger.info(
this,
"Read our quality policy: http://www.qulice.com/quality.html"
);
throw new BuildException("Failure", ex);
}
Logger.info(
this,
"Qulice quality check completed in %[nano]s, no errors",
System.nanoTime() - start
);
}

/**
Expand Down Expand Up @@ -166,16 +165,19 @@ private static void validate(final Environment env)
for (final Validator validator : QuliceTask.validators()) {
validator.validate(env);
}
if (!results.isEmpty()) {
throw new ValidationException(
String.format("%d violations, see log above", results.size())
);
}
}

/**
* Create collection of validators.
* @return Collection of validators.
*/
private static Collection<Validator> validators() {
return Arrays.<Validator>asList(
new FindBugsValidator()
);
return Arrays.asList();
}

/**
Expand Down
220 changes: 0 additions & 220 deletions qulice-findbugs/pom.xml

This file was deleted.

0 comments on commit 0477ff0

Please sign in to comment.