Skip to content

Commit f9289a1

Browse files
committed
update docs
1 parent f302234 commit f9289a1

File tree

8 files changed

+42
-4
lines changed

8 files changed

+42
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ext {
2424
animalsnifferVersion = '1.5.4'
2525
cpdVersion = '3.3'
2626
spotbugsPluginVersion = '4.7.9'
27-
docVersion = '4.6.0'
27+
docVersion = '4.7.0'
2828
}
2929

3030
repositories { mavenLocal(); mavenCentral(); gradlePluginPortal() }

src/doc/docs/about/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Plugin compiled for java 8, compatible with java 11
44

55
Gradle | Version
66
--------|-------
7-
5.6 | 4.6.0
7+
5.6 | 4.7.0
88
5.1 | [4.2.2](http://xvik.github.io/gradle-quality-plugin/4.2.2)
99
4.1 | [3.4.0](http://xvik.github.io/gradle-quality-plugin/3.4.0)
1010
older | [2.4.0](http://xvik.github.io/gradle-quality-plugin/2.4.0)

src/doc/docs/about/history.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
### [4.7.0](http://xvik.github.io/gradle-quality-plugin/4.7.0) (2021-11-10)
2+
* Fix gradle 7 deprecation warnings (#30)
3+
* Update spotbugs plugin 4.7.1 -> 4.7.9
4+
(maven group changed: gradle.plugin.com.github.spotbugs.snom -> com.github.spotbugs.snom)
5+
* Add spotbugsShowStackTraces option with default to false.
6+
Option introduced to change the default for spotbug's showStackTraces option
7+
to avoid additional stacktrace in logs in non-strict mode (when plugin not fails on errors)
8+
* Update spotbugs 4.2.3 -> 4.4.2
9+
* Update spotbugs exclusions:
10+
- Exclude [EI_EXPOSE_REP](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ei-may-expose-internal-representation-by-returning-reference-to-mutable-object-ei-expose-rep)
11+
due to confusing false positives
12+
- Exclude [EI_EXPOSE_REP2](https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ei2-may-expose-internal-representation-by-incorporating-reference-to-mutable-object-ei-expose-rep2)
13+
due to confusing false positives
14+
* Update codenarc 2.1.0 -> 2.2.0
15+
* Update pmd 6.34 -> 6.40 (java 17 support)
16+
* Deprecate quality.pmdIncremental property because incremental analysis is enabled by default
17+
since gradle 6.4 (property only useful for enabling it in gradle 5.6 - 6.3)
18+
* Update checkstyle 8.42 -> 9.1
19+
* Update checkstyle config:
20+
- Add [NoWhitespaceBeforeCaseDefaultColon](https://checkstyle.sourceforge.io/config_whitespace.html#NoWhitespaceBeforeCaseDefaultColon)
21+
122
### [4.6.0](http://xvik.github.io/gradle-quality-plugin/4.6.0) (2021-05-01)
223
* Fix gradle 7 compatibility (for checkstyle plugin)
324
* Fix console output on windows (remove special unicode separator characters, appearing incorrectly)

src/doc/docs/guide/config.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ quality {
3434
* Enable PMD incremental analysis (cache results between builds to speed up processing).
3535
* This is a shortcut for pmd plugin's {@code pmd.incrementalAnalysis } configuration option.
3636
* Option is disabled by default due to possible side effects with build gradle cache or incremental builds.
37+
* @deprecated from gradle 6.4 incremental analysis is enabled by default in pmd plugin! This option will not
38+
* disable it (property is useful only for enabling it in gradle 5.6 - 6.3).
3739
*/
3840
pmdIncremental = false
3941
@@ -46,6 +48,13 @@ quality {
4648
*/
4749
cpdUnifySources = true
4850
51+
/**
52+
* Shortcut for spotbugs.showStackTraces. Original spotbugs property is enabled by default, causing
53+
* not pretty exception logs in non strict mode (when not fails on errors). This option was introduced to change
54+
* the default to false and not show that nasty stacktrace, but still provide an easy way to revert default back.
55+
*/
56+
spotbugsShowStackTraces = false
57+
4958
/**
5059
* The analysis effort level. The value specified should be one of min, default, or max.
5160
* Higher levels increase precision and find more bugs at the expense of running time and

src/doc/docs/tool/codenarc.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,10 @@ To [suppress violation](http://codenarc.sourceforge.net/codenarc-configuring-rul
4242

4343
```java
4444
@SuppressWarnings("ClassJavadoc")
45-
```
45+
```
46+
47+
Since [codenarc 2.2](https://github.com/CodeNarc/CodeNarc/pull/610) `CodeNarc.` prefix could be used to differentiate with pure java suppressions:
48+
49+
```java
50+
@SuppressWarnings("CodeNarc.ClassJavadoc")
51+
```

src/doc/docs/tool/pmd.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Tool config options with defaults:
3535
quality {
3636
pmdVersion = '{{ gradle.pmd }}'
3737
pmd = true // false to disable automatic plugin activation
38+
// @deprecated enabled by default since gradle 6.4 (property only useful for enabling it in gradle 5.6 - 6.3)
3839
pmdIncremental = false // true to enable pmd incremental analysis
3940
}
4041
```

src/doc/docs/tool/spotbugs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Tool config options with defaults:
5858
quality {
5959
spotbugsVersion = '{{ gradle.spotbugs }}'
6060
spotbugs = true // false to disable automatic plugin activation
61+
spotbugsShowStackTraces = false // changes default for spotbugs.showStackTraces
6162
spotbugsEffort = 'max' // min, less, more or max
6263
spotbugsLevel = 'medium' // low, medium, high
6364
spotbugsMaxRank = 20 // 1-4 scariest, 5-9 scary, 10-14 troubling, 15-20 of concern

src/main/groovy/ru/vyarus/gradle/plugin/quality/QualityExtension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class QualityExtension {
105105
/**
106106
* Shortcut for {@code spotbugs.showStackTraces}. Original spotbugs property is enabled by default, causing
107107
* not pretty exception logs in non strict mode (when not fails on errors). This option was introduced to change
108-
* the default to false not not show that nasty stacktrace, but still provide an easy way to revert default back.
108+
* the default to false and not show that nasty stacktrace, but still provide an easy way to revert default back.
109109
*/
110110
boolean spotbugsShowStackTraces = false
111111

0 commit comments

Comments
 (0)