11982 Commits

Author SHA1 Message Date
Alberto Fernandez
2c2c2f4dd9 Checkstyle fixes 2018-01-17 16:06:54 +01:00
Alberto Fernandez
883bed3cf8 Better detection of corner cases
the firts changes checks for a exact level to search AdditiveExpression.

So code like
throw new Exception("something bad:" + (e)); gets undetected.

This change search if part of a AdditiveExpression to the base node.
2018-01-17 15:25:38 +01:00
Alberto Fernandez
a4d5ff683d Fix checkstyle 2018-01-12 23:31:58 +01:00
Alberto Fernandez
4f67d99c9f Fix false negative PreserveStackTrace on string concatenation
PMD should fire PreserveStackTrace in the following code

public void foo(String a) throws Exception {
    try {
        int i = Integer.parseInt(a);
    } catch(Exception e){
        throw new Exception("something bad:" + e);
        // Stack trace is lost, but no violation was reported!
    }
}

Closes pmd/pmd#543
2018-01-12 23:09:17 +01: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
dd0c94a082 Merge branch 'pr-826' 2018-01-07 18:17:31 -03:00
Juan Martín Sotuyo Dodero
4ce6a019e1 Add test scenario 2018-01-07 17:33:33 -03:00
Andreas Dangel
baee671c4a Update release notes, refs #782 2018-01-01 16:33:35 +01:00
Clément Fournier
17dee8d1aa Merge branch 'pr-823' 2017-12-31 18:54:14 +01:00
Juan Martín Sotuyo Dodero
72b22cfa5f Update changelog, refs #812 2017-12-31 01:38:26 -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
99f8a72f27 Update changelog, refs #800 2017-12-31 01:23:13 -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
c10a8c6844 Update changelog, refs #817 2017-12-31 01:03:13 -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
ec7f64fe55 Update changelog, refs #814 2017-12-31 00:49:59 -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
f4577f9e14 [core] Only issue a deprecation warning, if the referenced ruleset is not empty
and all rules have been deprecated.
Fixes #782
2017-12-28 17:17:11 +01:00
Juan Martín Sotuyo Dodero
cd58d15bc2 Merge branch 'pr-806' 2017-12-24 13:35:45 -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
Andreas Dangel
0c46f3b6dc Merge branch 'pr-804' 2017-12-23 09:41:58 +01:00
Juan Martín Sotuyo Dodero
3d75a7fdfd Update changelog, refs #794 2017-12-23 02:03:41 -03:00
Juan Martín Sotuyo Dodero
f1b4674505 Update docs
- Be more clear as to how to enable incremental analysis
 - Fix broken links
2017-12-23 02:02:09 -03:00
Juan Martín Sotuyo Dodero
d5a7edf7ff Log links to the proper PMD version 2017-12-23 02:01:43 -03: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
Juan Martín Sotuyo Dodero
b25e68d907 Merge branch 'pr-799' 2017-12-21 00:35:48 -03:00
Juan Martín Sotuyo Dodero
3f478bc6f3 Update changelog, refs #799 2017-12-21 00:35:05 -03:00
Travis CI (pmd-bot)
ca41530cf3 Update documentation 2017-12-21 02:41:34 +00:00
Juan Martín Sotuyo Dodero
a42203edc4 Merge branch 'pr-786' 2017-12-20 23:32:30 -03:00
Juan Martín Sotuyo Dodero
0d33ba12b2 Update changelog, refs #786 2017-12-20 23:31:54 -03:00
Juan Martín Sotuyo Dodero
481dcc85b3 Merge branch 'pr-789' 2017-12-20 23:27:56 -03:00
Juan Martín Sotuyo Dodero
9788b8a998 Merge branch 'pr-796' 2017-12-20 23:25:04 -03:00
Juan Martín Sotuyo Dodero
91bce046f5 Update change log, refs #796 2017-12-20 23:24:37 -03:00
Robert Sösemann
9304c70084 Fixes #788 [apex] Method chaining breaks ApexCRUDViolation 2017-12-20 23:25:40 +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
Andreas Dangel
ef41c71870 github - Update issue template 2017-12-20 20:39:41 +01:00
Robert Sösemann
f267a8f7c7 Fixed https://github.com/pmd/pmd/issues/792 2017-12-20 15:58:12 +01:00
Clément Fournier
904924a0c5 Update framework impl page 2017-12-19 12:25:29 +01:00
Clément Fournier
4f7786abc9 Update metrics tuto page 2017-12-19 00:40:00 +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
b3161639f8 [doc] Update Ruby/Jekyll/Gems 2017-12-15 18:26:26 +01:00
Andreas Dangel
1e25611991 [doc] next version 2017-12-15 16:50:58 +01:00
Andreas Dangel
342b5c3c1d [ci] fix uploading doc to pmd.github.io during release 2017-12-15 16:46:34 +01:00
Andreas Dangel
05d29f4c9b [doc] fix documentation of rule pom/ProjectVersionAsDependencyVersion 2017-12-15 16:46:34 +01:00