1412 Commits

Author SHA1 Message Date
Juan Martín Sotuyo Dodero
303f05d8d3 [java] Resolve StackOverflow in JavaTypeDefinitionSimple.toString()
- Resolves #831
2018-01-13 20:43:01 -03:00
Andreas Dangel
9bc7074fb9 Merge branch 'pr-821' 2018-01-11 17:30:40 +01:00
Andreas Dangel
b6fc30964e Add unit test, refs #817 2018-01-11 17:29:34 +01:00
Andreas Dangel
17ea5a89a0 Merge branch 'pr-820' 2018-01-11 17:16:04 +01:00
Clément Fournier
4b43bbcb19 Merge branch 'pr-822' 2018-01-08 00:33:17 +01:00
Juan Martín Sotuyo Dodero
4ce6a019e1 Add test scenario 2018-01-07 17:33:33 -03:00
Juan Martín Sotuyo Dodero
2059eac54b [java] Fix concurrency issue on metrics' framework
- Resolves #812
2017-12-31 01:36:56 -03:00
Juan Martín Sotuyo Dodero
c64f6af157 [java] Avoid NPE in ForLoopCanBeForeachRule
- Take the chance to make this rule use the rulechain
 - This partially fixes #800, but the FN is still unhandled
2017-12-31 01:20:04 -03:00
Juan Martín Sotuyo Dodero
83496c0e59 [java] Fix NPE on UnnecessaryModifierRule
- Fixes #817
2017-12-31 01:01:30 -03:00
Juan Martín Sotuyo Dodero
729d77614f Handle more kinds of errors
- Handle equally incomplete classpath, having a classpath which
   requires a different JRE version than the one used to run PMD and
   others.
 - Fixes #814
2017-12-31 00:48:23 -03:00
Andreas Dangel
4700692e29 [java] Rewrite GuardLogStatementRule without XPath
- uses now a Java only implementions
- Fixes #783
2017-12-24 11:51:29 +01:00
Andreas Dangel
0ce2939c6b Change version to 6.0.1-SNAPSHOT 2017-12-23 09:54:03 +01:00
Juan Martín Sotuyo Dodero
19cda30527 Merge branch 'pr-798' 2017-12-23 00:57:09 -03:00
Andreas Dangel
109f458dbf Fixes #793 [java] Parser error with private method in nested classes in interfaces
*   Remember old state to allow nesting
*   Fix ASTMethodDeclaration.isInterfaceMember
*   Extended tests
2017-12-22 12:03:20 +01:00
Andreas Dangel
64b862eef9 Fixes #793 [java] Parser error with private method in nested classes in interfaces 2017-12-20 22:42:34 +01:00
Clément Fournier
c5ddb2fa3c Remove code ref 2017-12-18 12:50:45 +01:00
Clément Fournier
42deb3791c Fix #785: NPE with metrics on empty declarations 2017-12-17 12:59:49 +01:00
Andreas Dangel
a975048655 [maven-release-plugin] prepare for next development iteration 2017-12-15 16:01:22 +01:00
Andreas Dangel
9b6fe90225 [maven-release-plugin] prepare release pmd_releases/6.0.0 2017-12-15 16:01:14 +01:00
Andreas Dangel
998cad8595 [java] fix PMDCoverageTest ruleset 2017-12-15 11:13:35 +01:00
Andreas Dangel
c8645440f2 Update release notes with new rules 2017-12-09 10:24:30 +01:00
Juan Martín Sotuyo Dodero
83c15e2e45 Merge branch 'pr-774' 2017-12-08 00:59:32 -03:00
Juan Martín Sotuyo Dodero
3817dc2782 Improve docs 2017-12-08 00:42:56 -03:00
Juan Martín Sotuyo Dodero
b32644c744 Merge branch 'pr-775' 2017-12-07 22:48:36 -03:00
Juan Martín Sotuyo Dodero
dc75904de6 Make sure we only recomend this to "modern" JVMs 2017-12-07 22:48:08 -03:00
Andreas Dangel
07cb937d6e [java] Update OptimizableToArrayCall rule for current JVMs
See https://sourceforge.net/p/pmd/bugs/1454/
and https://shipilev.net/blog/2016/arrays-wisdom-ancients/
2017-12-01 11:41:23 +01:00
Chas Honton
ac36d678bb Updates per suggestions; merge four rules into one 2017-11-30 21:53:48 -08:00
Chas Honton
51241368b3 Avoid using FileInput/Output - see JDK-8080225 2017-11-30 20:10:04 -08:00
Andreas Dangel
5e3b4504d8 [java] Remove old rules GuardDebugLogging and GuardLogStatementJavaUtil 2017-11-30 22:48:01 +01:00
Andreas Dangel
1447ac8a4a [java] Merge GuardDebugLogging and GuardLogStatementJavaUtil into
the rule GuardLogStatement
2017-11-30 22:38:14 +01:00
Andreas Dangel
8eb5170b31 Merge branch 'pr-736' 2017-11-27 20:47:27 +01:00
Andreas Dangel
456432ad6f Resolve deprecated usages 2017-11-24 20:48:02 +01:00
Andreas Dangel
fa1e16fcf8 [java] Remove FUTURE comment from AccessNode 2017-11-24 20:15:58 +01:00
Andreas Dangel
c49ae6b769 Merge branch 'pr-742' 2017-11-24 11:51:18 +01:00
Andreas Dangel
6c14880afa Merge branch 'pr-741' 2017-11-24 11:45:10 +01:00
Andreas Dangel
3bad361e2f [java] Change MoreThanOneLoggerRule to avoid classloader issues
refs #732
2017-11-24 11:43:23 +01:00
Andreas Dangel
8b77f6769e Merge branch 'pr-748' 2017-11-23 21:27:41 +01:00
Andreas Dangel
31725ae241 Merge branch 'pr-747' 2017-11-23 21:25:36 +01:00
Andreas Dangel
6136de2d28 Fix Metrics ruleset name 2017-11-23 20:30:32 +01:00
Juan Martin Sotuyo Dodero
b4e0cd3649 [java] EmptyCatchBlock ignore expected by default
- We chnge the default to ignore exceptions named `ignore` or
   `expected`, users can still override this behaviour.
2017-11-21 18:30:50 -03:00
Juan Martin Sotuyo Dodero
4e29faa3eb [java] Merge EmptyStaticInitializer into EmptyInitializer 2017-11-21 17:51:59 -03:00
Juan Martín Sotuyo Dodero
a9ce410845 Merge branch 'master' into api-ruleset-compatibility 2017-11-21 14:53:42 -03:00
Juan Martin Sotuyo Dodero
8edd3ed091 Merge branch 'pr-733' 2017-11-21 12:34:06 -03:00
Clément Fournier
5a978cb7b0 Make CommentRequirement private 2017-11-21 11:45:09 +01:00
Juan Martin Sotuyo Dodero
6028e77e62 [core] Improve classloaders
- Avoid a race condition that could produce multiple threads loading
   the same class at the same time.
 - Fixed a broken check on PMDASMClassLoader that would always return
   false.
2017-11-21 00:16:20 -03:00
Juan Martin Sotuyo Dodero
3ca4b71f72 [java] Don't expect to load classes from execution classpath
- We can't assume the classes needed for analysis will be available
in the execution classpath, we need to make sure to load them from the
same classloader / auxclaspath used during analysis.
 - Resolves #732
2017-11-21 00:12:52 -03:00
Juan Martin Sotuyo Dodero
d8fdbde68d Merge branch 'pr-727' 2017-11-20 17:29:41 -03:00
Juan Martin Sotuyo Dodero
73df7d048a Merge branch 'pr-729' 2017-11-20 16:37:12 -03:00
Andreas Dangel
98ac510443 Merge branch 'pr-734' 2017-11-19 13:47:02 +01:00
Andreas Dangel
fd0cdb9514 Mark property "reportLevel" of CyclomaticComplexityRule as deprecated 2017-11-19 13:39:21 +01:00