Clément Fournier
e4b9befd44
Fix issue 1158
2018-05-30 22:41:06 +02:00
Juan Martín Sotuyo Dodero
a788d4b586
[maven-release-plugin] prepare for next development iteration
2018-05-29 13:58:54 -03:00
Juan Martín Sotuyo Dodero
e9d78ede3c
[maven-release-plugin] prepare release pmd_releases/6.4.0
2018-05-29 13:58:44 -03:00
Juan Martín Sotuyo Dodero
5359f4d89d
Minor review improvements
2018-05-29 13:19:58 -03:00
Andreas Dangel
3c6a292407
Merge branch 'master' into java10-basic-support
2018-05-28 21:28:12 +02:00
Andreas Dangel
a46288547d
Rework "var" support for java10 using void production for LocalVariableType
2018-05-28 21:18:59 +02:00
Andreas Dangel
0b0479d7c0
Prevent using "var" as type name, annotation name or enum with Java 10
2018-05-28 20:07:10 +02:00
Andreas Dangel
4b096b4f96
Don't return "var" as typeImage for inferred variable types
2018-05-28 19:38:16 +02:00
Clément Fournier
a6062bd5a4
Merge branch 'pr-1148'
2018-05-27 18:05:28 +02:00
Clément Fournier
3aa703e7d0
Improve doc
2018-05-27 17:58:04 +02:00
Andreas Dangel
879727b653
Merge branch 'pr-1149'
2018-05-27 10:27:55 +02:00
Juan Martín Sotuyo Dodero
456bd44c62
[java] Fix doc for CommentDefaultAccessModifierRule
...
- We now create docs from the properties registered on the class, so
the default was undocumented. Therefore, I moved the default from XML to
code
- I take the chance to convert the property to a RegexProperty as it's
most apropriate
- I take the chance to allow `/* package */` as valid too by default
2018-05-27 04:21:31 -03:00
Andreas Dangel
932517bb79
Merge branch 'pr-1133', fixes #1131
2018-05-27 08:59:33 +02:00
Juan Martín Sotuyo Dodero
989126ba9b
Use ClassUtils to load classes
2018-05-26 20:12:09 -03:00
Juan Martín Sotuyo Dodero
15c2eb928b
Merge pull request #1117 from oowekyala/issue1108-refactor-premature-declaration
...
[java] Refactor PrematureDeclaration
2018-05-26 19:23:45 -03:00
Juan Martín Sotuyo Dodero
6fa5a45e62
Improvements for consistency
2018-05-26 18:05:37 -03:00
Juan Martín Sotuyo Dodero
dd6ef52289
Remove usage of deprecated methods
2018-05-26 18:00:48 -03:00
Andreas Dangel
ba55164b2f
Merge branch 'pr-1141'
2018-05-26 22:37:04 +02:00
Clément Fournier
929c2dfba2
Corrections for PR #1141
2018-05-26 21:54:39 +02:00
Juan Martín Sotuyo Dodero
0e44b279f7
Fix AvoidThrowingRawExceptionTypes
2018-05-26 14:48:26 -03:00
Juan Martín Sotuyo Dodero
7572a49d35
[java] Deprecate the old typeof function
...
- Have new functions typeIs() and typeIsExactly() with simpler syntaxes
- Nag about the deprecated usage of the old method
- Replace all internal usages with the new one
- Have the functions use the TypeHelper to avoid multiple separate
implementations of the same behavior
- Tidy up a little the TypeHelper
2018-05-26 06:01:56 -03:00
Juan Martín Sotuyo Dodero
56e4605eae
Merge branch 'pr-1134'
2018-05-24 11:24:59 -03:00
Clément Fournier
cf0eb9a9bd
Checkstyle
2018-05-24 03:58:29 +02:00
Clément Fournier
463c1c03cd
Fix #1114 - Star import overwritten by explicit import is not correctly handled
2018-05-24 01:33:01 +02:00
Clément Fournier
fbd58c14d5
Make tests more readable
2018-05-24 01:25:34 +02:00
Clément Fournier
f463038327
Cleanup UnnecessaryFQN
2018-05-24 01:25:31 +02:00
Clément Fournier
3e159310d2
Document ASTImportDeclaration
2018-05-24 01:10:20 +02:00
Clément Fournier
c80cfd6113
Corrections for PR #1134
2018-05-23 21:25:22 +02:00
Clément Fournier
0fa74aacfb
Improve test readability
2018-05-23 19:41:04 +02:00
Clément Fournier
9cc8068881
Whitelist lambda parameters
2018-05-23 19:38:06 +02:00
Clément Fournier
5ecf60b73c
Refactor ShortVariable
...
No change in functionality, but less wasted tests
2018-05-23 19:32:22 +02:00
Clément Fournier
89bc6c94c8
Whitelist main classes with private static fields
2018-05-23 17:13:44 +02:00
Clément Fournier
8e1ff80573
Allow Helper as a suffix
2018-05-23 17:06:58 +02:00
Clément Fournier
f5a0750557
Ignore main method when detecting utility classes
2018-05-22 16:17:10 +02:00
Clément Fournier
1140c1ec56
Allow Utils as suffix
2018-05-22 16:06:19 +02:00
Clément Fournier
fe8752bf67
update tests
2018-05-22 15:49:43 +02:00
Clément Fournier
ce0f151c66
Update codestyle.xml
2018-05-22 15:46:32 +02:00
Clément Fournier
56339f6793
Update rule desc
2018-05-22 15:45:34 +02:00
Clément Fournier
9e7aceed56
Allow numbers in utility class names by default
...
Refs #1065
2018-05-22 15:41:26 +02:00
Juan Martín Sotuyo Dodero
c3dcb70e9c
Further improvements
2018-05-22 01:45:13 -03:00
Karl-Philipp Richter
16ad6904bd
Adjust InefficientEmptyStringCheck documentation
...
InefficientEmptyStringCheckRule.java and the corresponding section
both contain information which the other doesn't. The class Javadoc and
the description section in performance.xml has thus been adjusted.
2018-05-22 06:40:25 +02:00
Juan Martín Sotuyo Dodero
aa2f8b70f1
[java] improve how we deal with broken classes
2018-05-22 01:34:37 -03:00
Juan Martín Sotuyo Dodero
c417d68191
Merge branch 'pr-1126'
2018-05-21 17:00:10 -03:00
Andreas Dangel
4138cdc018
Merge branch 'pr-966'
2018-05-21 14:57:34 +02:00
Andreas Dangel
43f9237e63
Update release notes, fixes #955 , refs #966
2018-05-21 14:55:16 +02:00
Andreas Dangel
af7a8b3eb6
Merge branch 'pr-1123'
2018-05-21 13:45:20 +02:00
Andreas Dangel
c95428d27a
Merge branch 'pr-1046'
2018-05-21 13:12:24 +02:00
Andreas Dangel
b3460f6951
whitespaces, javadoc
2018-05-21 12:53:51 +02:00
Andreas Dangel
f14fbd02b5
Rework InsecureCryptoIvRule to use RuleChain on AllocationExpression
...
No need for Util. Use Symbol Table instead.
2018-05-21 12:46:29 +02:00
Andreas Dangel
e9f6668c9b
Rework HardCodedCryptoKeyRule to use RuleChain on AllocationExpression and symbol table
2018-05-21 12:40:34 +02:00