811 Commits

Author SHA1 Message Date
Juan Martín Sotuyo Dodero
809310cbd2 Improve javadocs 2018-03-23 01:17:05 -03:00
Juan Martín Sotuyo Dodero
a1ea36adc0 Simplify calls where possible 2018-03-23 00:52:54 -03:00
Juan Martín Sotuyo Dodero
8deaf20f4d findDescendantsOfType defaults to not crossing boundaries
- A few places actually need to do so, and some other were simply wrong
 - We can now cross the boundary if searching dowm from it
 - Anonymous inner classes are still somewhat inconsistent
2018-03-12 01:20:00 -03:00
Juan Martín Sotuyo Dodero
f725f1ebfa [java] Honor find boundaries
- This fixes #904
 - `hasDescendantOfType`, `getFirstDescendantOfType` and
`findDescendantsOfType` are now consistent
2018-03-12 01:13:29 -03:00
Andreas Dangel
d27273581f Fix PMD / Checkstyle issues 2018-03-11 10:32:37 +01:00
Andreas Dangel
f4441ce938 Merge branch 'pr-912' 2018-03-11 10:15:28 +01:00
Andreas Dangel
96446f384b Update release notes, new rule MissingOverride, refs #912 2018-03-11 10:07:51 +01:00
Juan Martín Sotuyo Dodero
451815bf0a Merge branch 'pr-954' 2018-03-11 02:23:26 -03:00
Andreas Dangel
d6ccc58f20 Corrections from PR review (#908), make the metrics visitors extendable again 2018-03-10 20:52:11 +01:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Andreas Dangel
c85abd258a Fix PMD dogfood: AvoidPrefixingMethodParameters, UnnecessaryConstructor,
AvoidUsingShortType
2018-03-09 16:04:15 +01:00
Andreas Dangel
cf88117820 Fix PMD dogfood: UnusedFormalParameter, UselessParentheses and UselessOverridingMethod 2018-03-09 12:52:20 +01:00
Andreas Dangel
f452adbf6a Fix PMD dogfood: SimplifiedTernary 2018-03-09 10:26:23 +01:00
Andreas Dangel
5972c32ecf Fix checkstyle 2018-03-09 10:01:00 +01:00
Andreas Dangel
f3a358c419 Fix PMD dogfood: EmptyCatchBlock 2018-03-09 09:58:04 +01:00
Andreas Dangel
4ace14899c Fix PMD dogfood: UnusedPrivateField
Refs #361
2018-03-09 09:57:15 +01:00
Clément Fournier
f8864e9060 Make real Ant test cases 2018-03-05 21:58:05 +01:00
Clément Fournier
5d590a259e Add basic Ant test cases, correct behaviour 2018-03-05 20:52:39 +01:00
Clément Fournier
07a9859ce3 Update Ant task and user docs 2018-03-05 17:15:08 +01:00
Clément Fournier
ff1c90d753 Some corrections for PR #954 2018-03-05 16:47:34 +01:00
Clément Fournier
e2c6f1e467 Add '-no-cache' CLI switch, to disable incremental analysis
- The switch discards the argument provided to '-cache' if any
- Using the switch disables the suggestion to use incremental analysis
- Rule tests use that option to avoid the warning, which clutters build logs
- Refs #946
2018-03-05 13:47:48 +01:00
Juan Martín Sotuyo Dodero
0e4a793dd3 Merge branch 'pr-941' 2018-03-03 17:06:56 -03:00
Andreas Dangel
d6508c1b28 Fix checkstyle 2018-03-02 20:26:36 +01:00
reudismam
e1b954289a Use char notation to represent a character to improve performance. 2018-02-26 19:40:40 -03:00
Juan Martín Sotuyo Dodero
5bf8945f99 Merge branch 'pr-937' 2018-02-25 19:24:52 -03:00
Andreas Dangel
098b0dcac0 [maven-release-plugin] prepare for next development iteration 2018-02-25 09:53:26 +01:00
Andreas Dangel
101b71a13e [maven-release-plugin] prepare release pmd_releases/6.1.0 2018-02-25 09:53:19 +01:00
Andreas Dangel
84e388cdf2 Merge branch 'pr-801' 2018-02-24 22:42:20 +01:00
Andreas Dangel
3c280b8ef2 Use Files.move instead of File.renameTo
This prevents problems when building PMD under Windows
2018-02-24 20:40:38 +01:00
Andreas Dangel
8f6f8e9842 Corrections for PR #931 2018-02-22 08:54:29 +01:00
Andreas Dangel
cc08bd47cf [java] UnusedImports false positive for static import
Fixes #925
2018-02-21 20:43:14 +01:00
Clément Fournier
a6d3c2baa1 Miscellaneous cleanups 2018-02-20 01:24:23 +01:00
Clément Fournier
1c991dd79e Fix property test random crash 2018-02-20 01:24:02 +01:00
Andreas Dangel
9fbaa835ab Fix typo, add removal version for deprecated interfaces/classes 2018-02-18 18:40:25 +01:00
Juan Martín Sotuyo Dodero
21d02f90af Remove unused import 2018-02-18 04:37:44 -03:00
Juan Martín Sotuyo Dodero
1c68248eee Update tests 2018-02-17 21:39:59 -03:00
Juan Martín Sotuyo Dodero
46aa1e2f2a Remove usages of deprecated classes 2018-02-17 21:39:10 -03:00
Juan Martín Sotuyo Dodero
08560add78 Deprecate FileReporter 2018-02-17 21:38:39 -03:00
Juan Martín Sotuyo Dodero
33626e7a2d Implement new renderer for CPD
- Write directly to writers, don't handle strings
2018-02-17 21:37:51 -03:00
Clément Fournier
d25fbcf8c0 Remove unnecessary javadoc 2018-02-16 00:25:06 +01:00
Clément Fournier
8cb7573379 Fix problem with outer enum and annotation types 2018-02-13 12:30:38 +01:00
reudismam
7e380e5d98 Use isEmpty method. 2018-02-02 12:28:25 -03:00
Juan Martín Sotuyo Dodero
b439bb823f Merge branch 'pr-875' 2018-01-25 21:25:18 -03:00
Juan Martín Sotuyo Dodero
41de94776e Properly handle shortnames with comma-separated args
- Also added unit tests to make sure the behavior is as expected
2018-01-25 21:20:13 -03:00
Clément Fournier
91790c387d Merge branch 'pr-870' 2018-01-26 00:22:34 +01:00
Clément Fournier
21650ba85a Move util.documents into n.s.pmd.documents
Fix commit 40ad978 compilation errors
2018-01-26 00:20:38 +01:00
Juan Martín Sotuyo Dodero
c34519431c Merge branch 'pr-828' 2018-01-25 19:55:33 -03:00
Juan Martín Sotuyo Dodero
6a801ee26c Move document classes out of the util package 2018-01-25 19:53:58 -03:00
Juan Martín Sotuyo Dodero
a33958bc63 Merge branch 'pr-882' 2018-01-25 19:49:32 -03:00
Clément Fournier
b7950cca1b Merge branch 'pr-868' 2018-01-25 18:46:03 +01:00