Michał Kordas
c037e6419d
Integrate Gitter with Checkstyle, issue #864
2015-03-30 13:41:25 -07:00
Michal Kordas
9923fd6778
Resolve some problems in Javadoc reported by Java 8, issue #291
...
It is not possible to nest block-level elements, such as `<pre>`, inside `<p>`.
2015-03-30 13:33:22 -07:00
Michal Kordas
d92c4c19ca
Add more rulesets to PMD configuration, issue #744
2015-03-30 13:30:02 -07:00
Michal Kordas
26e72b35ca
Disable Findbugs for 'grammars' package, issue #778
...
Package `com.puppycrawl.tools.checkstyle.grammars` contains only autogenerated code, so it should be excluded from Findbugs analysis.
2015-03-29 18:33:56 +02:00
Michał Kordas
9db050a5ff
Update Maven Compiler Plugin to 3.3, issue #867
2015-03-28 15:24:53 -07:00
Michał Kordas
97447d9cb9
Update FindBugs Maven Plugin to 3.0.1, issue #865
2015-03-28 23:00:41 +01:00
Roman Ivanov
afda7d0632
[maven-release-plugin] prepare for next development iteration
2015-03-28 11:07:24 -07:00
Roman Ivanov
983a77a3ca
[maven-release-plugin] prepare release checkstyle-6.5
2015-03-28 11:07:23 -07:00
Roman Ivanov
827651af91
release notes 6.5, after content update from Michal Kordas
2015-03-28 08:47:14 -07:00
Roman Ivanov
c09360f8e8
release notes 6.5
2015-03-28 08:11:34 -07:00
Damian Szczepanik
97f0829897
Added test method for Utils.isPatternValid method
...
Pull #861
2015-03-27 15:34:34 -07:00
Roman Ivanov
b20532ed18
pmd:check is assigned to verify phase of build, issue #744
2015-03-27 18:27:32 -04:00
Damian Szczepanik
ebd4afdebe
Deleted cache from Utils class + unified setters with patterns
...
Issue #845
2015-03-27 22:39:02 +01:00
Danil Lopatin
c2c34c8408
Token WILDCARD_TYPE was added to WhitespaceAroundCheck, issue #853
2015-03-27 17:39:31 +03:00
Roman Ivanov
09ea9591e2
unused profiles are removed from POM : release, release-sign-artifacts
2015-03-26 15:47:29 -07:00
Roman Ivanov
a924f59914
pmd report should always be generated even it is empty
2015-03-26 15:43:15 -07:00
Michal Kordas
b771841de7
Remove deprecated getLines() methods from Utils, issue #854
2015-03-26 22:15:10 +01:00
Michal Kordas
8a24026433
Add unit tests for class base name util to improve coverage
2015-03-26 20:36:15 +01:00
Michal Kordas
6e6d912013
Add logging to empty catch blocks to fix PMD violations, issue #744
...
All violations of PMD rule [EmptyCatchBlock](http://pmd.sourceforge.net/pmd-5.2.3/pmd-java/rules/java/empty.html#EmptyCatchBlock ) are fixed by logging exceptions.
2015-03-26 20:35:25 +01:00
Michal Kordas
06865630aa
Use Guava Closeables to manage closing exceptions
...
>While it's not safe in the general case to ignore exceptions that are thrown when closing an I/O resource, it should generally be safe in the case of a resource that's being used only for reading, such as a Reader. Unlike with writable resources, there's no chance that a failure that occurs when closing the reader indicates a meaningful problem such as a failure to flush all bytes to the underlying resource.
`Reader` and `InputStream` instances are closed using `Closeables.closeQuietly()`, while `RandomAccessFile` is closed with `Closeables.close()` that throws `IOException` and needs to be handled.
From Javadoc:
>```java
public static void close(@Nullable
Closeable closeable,
boolean swallowIOException)
throws IOException
```
>Closes a Closeable, with control over whether an IOException may be thrown. This is primarily useful in a finally block, where a thrown exception needs to be logged but not propagated (otherwise the original exception will be lost).
If swallowIOException is true then we never throw IOException but merely log it.
>Example:
```java
public void useStreamNicely() throws IOException {
SomeStream stream = new SomeStream("foo");
boolean threw = true;
try {
// ... code which does something with the stream ...
threw = false;
} finally {
// If an exception occurs, rethrow it only if threw==false:
Closeables.close(stream, threw);
}
}
```
Moreover, `Closeables.close()` and `Flushables.flush()` are used to flush and close `OutputStream`.
2015-03-26 20:35:17 +01:00
Michal Kordas
cbfe72383b
CustomImportOrder checks import sorting according to ASCII order, fixes #847
...
Previously used 'ignoreCase' order is different than required ASCII order.
2015-03-25 21:00:55 -07:00
Michal Kordas
fb8c630359
Update org.apache.ant:ant-nodeps to 1.8.1, issue #790
2015-03-25 07:51:47 -07:00
Damian Szczepanik
1dacd5303b
Merged catch blocks into one where possible
...
Pull #825
2015-03-24 14:48:26 -07:00
Michal Kordas
290ae38a14
Remove useless parentheses to fix PMD violations, issue #744
...
Additional fix for [UselessParentheses](http://pmd.sourceforge.net/pmd-5.2.3/pmd-java/rules/java/unnecessary.html#UselessParentheses ) rule.
2015-03-24 12:58:35 -07:00
Michal Kordas
b59542ba03
Rename method haastrailComment to hasTrailComment
2015-03-24 12:58:35 -07:00
Michal Kordas
b69e47845e
Combine nested if statements, issue #744
...
Additional fixes for PMD rule [CollapsibleIfStatements](http://pmd.sourceforge.net/pmd-5.2.3/pmd-java/rules/java/basic.html#CollapsibleIfStatements ).
2015-03-24 12:58:35 -07:00
Michal Kordas
5b4a81a4e1
Invoke private constructors to increase coverage, issue #840
2015-03-24 06:25:58 -07:00
Michal Kordas
17a8f553a2
Update wagon-ssh to 2.8, issue #790
2015-03-24 06:20:35 -07:00
Michal Kordas
7138d731ce
Remove null checks on previously dereferenced values, issue #778
...
Violations of Findbugs rule [RCN: Nullcheck of value previously dereferenced](http://findbugs.sourceforge.net/bugDescriptions.html#RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE ) in class `BlockParentHandler` are fixed.
2015-03-23 17:56:11 -07:00
Roman Ivanov
6cd514c9ac
note about 100% coverage was added to contributing page
2015-03-23 16:40:29 -07:00
Michal Kordas
14e0b0ea52
Remove unwritten field, issue #778
...
All violations of Findbugs rule [UwF: Unwritten field](http://findbugs.sourceforge.net/bugDescriptions.html#UWF_UNWRITTEN_FIELD ) are fixed.
2015-03-23 16:00:09 -07:00
Michal Kordas
fa102b60fa
Use value of putIfAbsent to fix Findbugs violation, issue #778
...
Previously there was slight risk that returned value is not the one that is associated with the key in the map. This could happen if another thread inserted value to map between calls to `get` and `putIfAbsent`.
All violations of Findbugs rule [RV: Return value of putIfAbsent ignored, value passed to putIfAbsent reused](http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED ) are fixed.
2015-03-23 14:03:38 -07:00
Michele Mauro
d613c3fe74
removed duplicate section 'UniqueProperties'
2015-03-23 14:08:00 +01:00
Roman Ivanov
dc3111cb1a
tidy plugin is disabled, as it conflicting with linkcheck plugin, issue #821 and #751
2015-03-21 23:25:02 -07:00
Michal Kordas
23e8b1b43f
Disable additional invocation of site plugin, issue #821
...
By default property [forceSite](https://maven.apache.org/plugins/maven-linkcheck-plugin/linkcheck-mojo.html#forceSite ) is `true` and Linkcheck plugin unnecessarily tries to invoke `mvn site` to freshly generate all resources needed for link checking. Not all plugins are ready to support such invocation in different context, e.g. tidy-maven-plugin. Without this additional invocation everything works fine and site generation is faster.
2015-03-21 21:47:22 -07:00
Michal Kordas
fd1fb82acb
Remove duplicated Linkcheck plugin declaration, issue #751
2015-03-21 21:47:22 -07:00
Michal Kordas
89b6af6a05
Remove unused constructor parameter to fix PMD violation, issue #744
...
Fix for [UnusedFormalParameter](http://pmd.sourceforge.net/pmd-5.2.3/pmd-java/rules/java/unusedcode.html#UnusedFormalParameter ) rule.
2015-03-21 21:46:08 -07:00
Michal Kordas
04ceb4b91f
Remove empty if statements to fix PMD violations, issue #744
...
Violations of PMD rule [EmptyIfStmt](http://pmd.sourceforge.net/pmd-5.2.3/pmd-java/rules/java/empty.html#EmptyIfStmt ) are fixed. All transformations were done by IDE automatically.
2015-03-21 21:45:08 -07:00
Damian Szczepanik
1c8180d74f
Added Utils.isPatternValid method to hide try-catch blocks when parsing is used only for validation
...
Pull #835
2015-03-21 15:38:13 -07:00
Damian Szczepanik
91d979ef8e
Reduce complexity in indentation/HandlerFactory class by grouping catch blocks
...
Pull #833
2015-03-21 15:35:38 -07:00
Michal Kordas
9d3d08837a
Use Cobertura instead of JaCoCo for Coveralls, fixes #806
...
Changes done according to [coveralls-maven-plugin guide](https://github.com/trautonen/coveralls-maven-plugin#cobertura ). Profile `travis` was deleted, as it is unnecessary when Cobertura is used.
2015-03-21 08:46:43 -07:00
Michal Kordas
48eee721d9
Remove final from try-with-resources, fixes #805
...
This is temporary fix. Proper solution is to update cobertura-maven-plugin to 2.7.
2015-03-21 08:17:25 -07:00
Michal Kordas
734c516bd9
Resolve some of Javadoc problems, issue #291
2015-03-20 23:40:25 +01:00
Roman Ivanov
8efe1af92b
additional fix for #823
2015-03-20 13:58:09 -07:00
Damian Szczepanik
9f2bf96b20
Delete ///CLOVER comments
...
Issue #823
2015-03-20 20:57:07 +01:00
Michał Kordas
59d1b6ad1f
Update Maven Javadoc Plugin to 2.10.2, issue #816
2015-03-19 07:02:31 +01:00
ychulovskyy
d347f55756
Issue #26 SuppressionCommentFilter does not suppress StrictDuplicateCode Warnings
2015-03-18 22:30:23 -07:00
Michał Kordas
1cc3442fac
Add VersionEye badge to README.md
2015-03-18 21:56:42 -07:00
Michal Kordas
303d7cc618
Replace FastStack with ArrayDeque where possible, issue #86
2015-03-18 21:54:06 -07:00
Michal Kordas
0a70130d57
Replace FastStack with ArrayDeque and avoid nulls, issue #86
...
`FastStack` allows `null` as element while `ArrayDeque` doesn't. To aviod `NullPointerException` null objects were introduced as initial context.
2015-03-18 21:54:06 -07:00