Skip to content

Commit

Permalink
Merge pull request #61 from j-baker/dfe
Browse files Browse the repository at this point in the history
Remove DesignForExtension checkstyle, add Antipatterns FindBugs
  • Loading branch information
uschi2000 authored Jul 6, 2016
2 parents db711b8 + 70858a0 commit 5dbcdae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ The BUG_PATTERN_NAME can be derived from the "Pattern" field in the Eclipse Bug
More complicated filters can be handled via the `.baseline/findbugs/excludeFilter.xml` file; see [FindBugs
documentation](http://findbugs.sourceforge.net/manual/filter.html) for details.

We apply the [antipatterns](https://github.com/palantir/antipatterns) Gradle plugin; if you wish to change
the version of this plugin, please do so by adding

dependencies {
findbugsPlugins "com.palantir.antipatterns:$antipatternsVersion"
}

to your project dependencies.

### Jacoco Coverage Plugin (jacoco-coverage)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="CyclomaticComplexity"/> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
<module name="DesignForExtension"/> <!-- Java Coding Guidelines: Design for extension -->
<module name="JavadocMethod"> <!-- Java Style Guide: Where Javadoc is used -->
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class BaselineFindBugs extends AbstractBaselinePlugin {

private static final String DEFAULT_FINDBUGS_VERSION = '3.0.1'
private static final String DEFAULT_EFFORT = 'max'
private static final String ANTIPATTERNS_ARTIFACT = 'com.palantir.antipatterns:antipatterns:1.0-beta.4'

void apply(Project project) {
this.project = project
Expand Down Expand Up @@ -65,6 +66,10 @@ class BaselineFindBugs extends AbstractBaselinePlugin {
excludeFilter = excludeFilterFile
effort = DEFAULT_EFFORT
}

project.dependencies {
findbugsPlugins ANTIPATTERNS_ARTIFACT
}
}

// Configure checkstyle settings for Eclipse
Expand Down

0 comments on commit 5dbcdae

Please sign in to comment.