002ecb7783
Fix test dependencies with junit5/kotlin/junit4 combination
...
When using kotlin test, which brings in the JUnit5 platform,
additionally the junit-vintage-engine needs to be added to
the test classpath, so that surefire will execute all tests
(junit5/kotlin test + junit4 tests).
2019-03-10 19:32:20 +01:00
4bb1d9327d
[maven-release-plugin] prepare for next development iteration
2019-02-24 08:57:18 +01:00
41e77bc34b
[maven-release-plugin] prepare release pmd_releases/6.12.0
2019-02-24 08:57:10 +01:00
b74527cb8e
Merge branch 'pr-1598'
2019-02-17 16:33:33 -03:00
4835b29f88
Merge branch 'pr-1538'
2019-02-17 14:37:52 -03:00
4938fa8272
The rule will be part of 6.12.0
2019-02-17 14:33:41 -03:00
544238244b
[java] Rename UseDiamondOperator -> UseDiamondOperatorTest
2019-02-10 09:42:41 +01:00
189c5990f4
Split test cases for granularity
2019-02-09 13:11:16 -03:00
74d45a90f0
New test case added
2019-02-09 16:31:09 +05:30
5bb24d96cf
XPATH for UseDiamondOperator Rule Updated
2019-02-08 17:26:35 +05:30
50f64f5fb1
Update UseDiamondOperator.xml
2019-02-07 10:46:06 +05:30
1d321d9a0a
Removed var from getting checked by UseDiamondOperatorRule
...
Also includes Minor Correction in one test case.
2019-02-06 16:51:46 +05:30
2165fb056c
Remove TryStatement from parent blocks
...
- We should treat appends over the try edge as consecutive, it's only
catch / finally that maye break the linear execution flow
2019-02-05 22:50:11 -03:00
58b52a4fd8
Add more test cases
2019-02-05 22:49:53 -03:00
709f9ed4ea
Catch and Finally Statements added
2019-02-05 12:58:39 +05:30
86c72a87b4
Try Statement added to list of block parents
...
ASTTryStatement added to BLOCK_PARENTS.
2019-02-04 15:29:23 +05:30
db2348baec
Merge branch 'pr-1637'
2019-02-02 13:58:39 -03:00
422f44cf1a
Add todo for follow up improvements
2019-02-02 13:56:29 -03:00
1e1d6aafae
code review changes
2019-02-02 20:38:23 +05:30
f0830eb973
Update instead of override classHasLombokAnnotation flag
...
Fixes issues where inner classes would override this flag.
2019-02-01 22:59:04 +01:00
23ce8435e4
all compile time constants are avoided by AccessorMethodGenerationRule
2019-02-01 19:36:51 +05:30
7a5ed78a73
constants initialized by literals avoided by AccessorMethodGenerationRule
...
Compile time constants with literals only expression avoiding AccessorMethodGenerationRule.
2019-01-31 15:40:22 +05:30
e2a4b744fd
Merge branch 'pr-1634'
2019-01-30 12:27:17 -03:00
0547897934
Reviewed code updated
2019-01-30 19:43:09 +05:30
cb0c70f1ac
Review changes implemented
2019-01-30 18:58:47 +05:30
d1c75ccff4
Unused Formatter need not be checked for synchronization.
2019-01-30 14:57:39 +05:30
149f85a7e4
#1633 [java] UnsynchronizedStaticFormatter reports commons lang FastDateFormat
...
Thread safe formatter org.apache.commons.lang3.time.FastDateFormat can not avoid UnsynchronizedStaticFormatterRule.
2019-01-30 14:02:17 +05:30
9532552eaa
BeanMembersShouldSerializeRule aware of lombok accessors
...
Extended AbstractLombokAwareRule to make BeanMembersShouldSerializeRule aware of lombok annotations. Checking if class or any of the variables have lombok annotations and avoid BeanMembersShouldSerializeRule on these variables.
2019-01-30 11:09:44 +05:30
8a7913a30d
Merge branch 'pr-1628'
2019-01-29 00:04:40 -03:00
add4a78b57
Merge branch 'pr-1625'
2019-01-29 00:00:11 -03:00
081ee17349
Simplify test
2019-01-28 23:59:19 -03:00
6f2cd5fe29
Test cases added
...
Updated testcases.
2019-01-28 23:02:59 +05:30
746dc4e602
Code review changes
...
All overridden methods are ignored now.
2019-01-28 20:51:06 +05:30
1b9e63b4f4
#1543 [java] LinguisticNaming should ignore overriden methods
...
Overriden methods are ignored from LinguisticNamingRule.
2019-01-28 16:50:51 +05:30
189bb46ea1
UnusedImports false positive for method parameter type in @see Javadoc
...
Updated SEE_PATTERN regex pattern.
2019-01-28 14:39:08 +05:30
ea022f0e68
[java] Fix lombok.AllArgsConstructor support
2019-01-27 10:55:45 -05:00
63cd6d0f5c
[maven-release-plugin] prepare for next development iteration
2019-01-27 13:25:00 +01:00
ea2776f70c
[maven-release-plugin] prepare release pmd_releases/6.11.0
2019-01-27 13:24:51 +01:00
89c8f47b2b
Move JavaCCTokenizer to internal package
2019-01-26 19:19:46 +01:00
8609aa314f
Merge branch 'pr-1558'
2019-01-26 18:45:06 +01:00
2465e5395c
Update pmd-java/src/main/resources/category/java/bestpractices.xml
...
Co-Authored-By: adangel <andreas.dangel@adangel.org >
2019-01-26 13:02:40 +01:00
f499927486
Merge remote-tracking branch 'origin/master' into use-try-with-resources
2019-01-26 12:27:00 +01:00
ac1ea34c4c
[java] UseTryWithResources: fix false positive with no autocloseable
2019-01-26 12:16:19 +01:00
99d63cd261
[java] UseTryWithResources: Fix false negative
2019-01-26 11:59:04 +01:00
08b7dd49dd
[core] Add a generic JavaCCTokenizer for CPD
2019-01-26 11:24:32 +01:00
b521126130
Merge branch 'pr-1550'
2019-01-14 18:50:17 +01:00
f218518089
Merge pull request #1535 from adangel/unsynchronizedstaticformatter
...
[java] New rule: UnsynchronizedStaticFormatter
2019-01-13 00:44:41 -03:00
5f34190851
[java] Private field is detected as public inside nested classes in interfaces
...
Fixes #1578
2019-01-11 17:14:47 +01:00
c8c5708b70
Merge branch 'master' into unsynchronizedstaticformatter
2019-01-10 17:27:55 -03:00
38cff531c4
Add missing constructor call
2019-01-10 20:59:39 +01:00