3262 Commits

Author SHA1 Message Date
Andreas Dangel
cad02c775a Merge branch 'master' into reproducible-jjtree 2021-01-15 18:26:21 +01:00
Andreas Dangel
740d832dc1 Change from PR review #2983 2021-01-07 19:51:23 +01:00
Ozan Gulle
49fbb90cb1 Changed naming of the method 2020-12-21 21:37:22 +01:00
Ozan Gulle
2bbf56ec06 Added a new test case 2020-12-21 21:37:09 +01:00
Andreas Dangel
c37f208d3e Call jjtree/javacc with UTF-8 as default encoding
Fixes #2970
2020-12-17 18:31:13 +01:00
Ozan Gulle
129790ddfc Fixed the order of imports 2020-12-16 22:44:33 +01:00
Ozan Gulle
ae12a6db35 Put duplicated code in a separate method 2020-12-16 22:09:11 +01:00
Ozan Gulle
d0fb81de1f LiteralsFirstInComparisonsRule also checks for constants 2020-12-16 21:49:38 +01:00
Andreas Dangel
d284ea9634 [maven-release-plugin] prepare for next development iteration 2020-12-12 09:42:10 +01:00
Andreas Dangel
d2e4fb4ca3 [maven-release-plugin] prepare release pmd_releases/6.30.0 2020-12-12 09:42:02 +01:00
Andreas Dangel
1a4ca95f6c Merge pull request #2635 from oowekyala:ruleset-factory-builder
[core] New RuleSet API and deprecations for PMD's entry point APIs #2635
2020-12-11 19:03:41 +01:00
Andreas Dangel
7f299c4f6c [java] CompareObjectsWithEquals: only allow this with equals (#2934) 2020-12-04 18:21:11 +01:00
Clément Fournier
4f36ac3bd2 Merge branch 'master' into pr/2934 2020-11-28 14:40:09 +01:00
Clément Fournier
7eb530f035 Merge branch 'master' into pr/2940 2020-11-28 14:25:28 +01:00
Clément Fournier
37c2c505f3 Merge branch 'master' into ruleset-factory-builder 2020-11-24 12:49:18 +01:00
Clément Fournier
9aaae814c4 Handle TNPE and LinkageE when loading type params 2020-11-23 14:40:32 +01:00
Clément Fournier
a5bcdb328a Merge branch 'master' into issue-2911-class-leak 2020-11-23 14:37:17 +01:00
Andreas Dangel
1783b1daa1 Update pmd-java/src/main/resources/category/java/bestpractices.xml
Co-authored-by: Igor Moreno <igormoreno@gmail.com>
2020-11-23 13:55:48 +01:00
Andreas Dangel
e701f52d96 [java] Catch additional TypeNotPresentExceptions / LinkageErrors
These exceptions are indications of an incomplete auxclasspath
but should not fail PMD entirely.

Incomplete auxclasspath can still result in invalid violations,
either false positives or false negatives.
2020-11-21 16:38:26 +01:00
Andreas Dangel
02135513c9 [java] CompareObjectsWithEquals: Fix more false positives 2020-11-20 20:39:45 +01:00
Andreas Dangel
cda99a1629 [java] CompareObjectsWithEquals - whitelist java.lang.class and this 2020-11-20 16:41:41 +01:00
Andreas Dangel
2c950641d2 [java] Avoid false positives with literals 2020-11-20 15:50:30 +01:00
Andreas Dangel
a1297dfd09 [java] Consider comparison with null literal as valid 2020-11-20 12:20:25 +01:00
Igor Moreno
ff77650801 Fix typo: "an accessor" not "a" 2020-11-19 22:59:17 +01:00
Andreas Dangel
1e6c79c19f [java] CompareObjectsWithEquals / UseEqualsToCompareStrings - Fix FN
Fixes false negatives in case fields are referenced with this.
Type resolution on PrimaryExpression works well enough to
simply check the type.
2020-11-19 21:08:15 +01:00
abhishek-kumar09
84e6c0997b Correct Annotation Array Initialiation indents from checkstyle #8083 2020-11-16 00:36:30 +05:30
Clément Fournier
51c0df8770 Remove cache entirely 2020-11-14 17:48:14 +01:00
Clément Fournier
3ccdb5597a Make overload without varargs 2020-11-14 17:15:42 +01:00
Clément Fournier
30124fef11 Don't cache enclosing class (pretty rare to hit it) 2020-11-14 16:54:11 +01:00
Clément Fournier
4ee7b7ae02 Load fewer class names 2020-11-14 16:44:27 +01:00
Clément Fournier
307eacd20a Fix errors 2020-11-14 15:37:04 +01:00
Clément Fournier
00d76b03ab Restrict caching to classes loaded by the bootstrap loader 2020-11-14 15:02:15 +01:00
Clément Fournier
4fe3874824 Simplify constructor of JavaTypeDefinitionSimple 2020-11-14 14:57:25 +01:00
Clément Fournier
93c5ef33cf Merge branch 'master' into ruleset-factory-builder 2020-11-13 17:12:27 +01:00
Clément Fournier
dfb5c4e2d2 Merge branch 'finish-905' 2020-11-11 22:18:32 +01:00
Clément Fournier
a5c42ddefc Add test case for #2595 2020-11-11 15:33:38 +01:00
Clément Fournier
56a5ee536b Deprecations for #905 2020-11-10 14:02:02 +01:00
Clément Fournier
08fca9367e Rename RuleSetParser to RuleSetLoader 2020-11-03 14:44:54 +01:00
Clément Fournier
873206e657 Replace usages, update reference files 2020-10-31 15:34:54 +01:00
Clément Fournier
bc9557830a Deprecate ASTPackageDeclaration#getPackageNameImage 2020-10-31 15:18:46 +01:00
Clément Fournier
2b9e3057a7 Deprecate ASTTypeParameter#getParameterName 2020-10-31 15:18:36 +01:00
Andreas Dangel
9f701ee460 Merge branch 'pr-2870' into master
[lang-test] Upgrade Kotlin, Dokka and Kotest #2870
2020-10-28 16:53:53 +01:00
Andreas Dangel
718b72d00a [java] Add tests for UnusedAssignments
Refs #2843
2020-10-28 16:38:48 +01:00
Clément Fournier
cc7bb35e72 Checkstyle 2020-10-27 00:30:31 +01:00
Clément Fournier
8f8af7780e Rename stuff 2020-10-26 21:10:58 +01:00
Clément Fournier
8958609629 Deprecate other APIs 2020-10-26 20:00:19 +01:00
Clément Fournier
6642f5d038 Isolate single rule pattern 2020-10-26 19:31:48 +01:00
Clément Fournier
ac864aa529 Rename 2020-10-26 19:29:19 +01:00
Clément Fournier
412d39f513 Replace createFactory methods with a builder
Deprecate compatibility filter

Deprecate methods in RulesetsFactUtils
2020-10-26 19:26:47 +01:00
Clément Fournier
a95c67c31e Upgrade to kotlin 1.4.1 and kotest 4.3.0 2020-10-26 17:08:08 +01:00