5228 Commits

Author SHA1 Message Date
Clément Fournier
bf60cd1e5b Merge branch 'master' into 7.0.x 2021-01-18 17:08:38 +01:00
Andreas Dangel
9b3fc1da8d Merge pull request #3060 from oowekyala:issue2960-threading-issue
[java] Fix threading issue in MethodNamingConventionsRule #3060
2021-01-17 17:46:04 +01:00
Andreas Dangel
e614e256e0 Fix unit tests 2021-01-16 11:49:44 +01:00
Andreas Dangel
f0f2286f98 Merge branch 'master' into pmd/7.0.x 2021-01-16 10:37:27 +01:00
Andreas Dangel
cad02c775a Merge branch 'master' into reproducible-jjtree 2021-01-15 18:26:21 +01:00
Clément Fournier
e8a0ba9815 Make map not static in MethodNamingConventionsRule
Fix #2960
2021-01-15 18:22:33 +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
Clément Fournier
b0e0358287 Make sure #755 is fixed 2020-12-15 13:36:07 +01:00
Clément Fournier
053c439a43 Escape special chars correctly in test output 2020-12-14 13:12:17 +01:00
Clément Fournier
56fc980e22 Cleanup tests
Replace a duplicated function
2020-12-14 12:58:48 +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
384d32ddd0 Merge branch 'master' into pmd/7.0.x 2020-12-11 19:48:54 +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
Clément Fournier
10a2b40731 Fix last references 2020-12-11 17:44:01 +01:00
Clément Fournier
823f78c425 Merge branch 'master' into 7.0.x
Refs #2864
2020-12-11 10:11:40 +01:00
Clément Fournier
524eb85cd3 Make MapFunction abstract
the apply implementation is dead code
2020-12-11 09:49:17 +01:00
Clément Fournier
593fa9010c Add some tests for lub 2020-12-11 07:47:05 +01:00
Clément Fournier
ce85132d5b Cleanup captured type var 2020-12-11 07:25:57 +01:00
Clément Fournier
a77908c16a Remove some dead code in GLB
This was needed at some point, but now
dead, can most likely be removed.
2020-12-11 07:25:46 +01:00
Clément Fournier
952a96735c Add tests for GLB 2020-12-11 06:19:22 +01:00
Clément Fournier
0b6f3cb991 [java] Remove deprecated rules PositionLiteralFirstInCaseInsensitiveComparsons, PositionLiteralsFirstInComparisons
Refs #2493, #2701, #2022
2020-12-10 20:56:56 +01:00
Clément Fournier
0a2279aef3 Merge branch '7.0.x' into java-rule-bulk-update 2020-12-05 16:59:01 +01:00
Andreas Dangel
fde558fe45 Merge branch 'master' into pmd/7.0.x 2020-12-05 15:40:44 +01:00
Andreas Dangel
7f299c4f6c [java] CompareObjectsWithEquals: only allow this with equals (#2934) 2020-12-04 18:21:11 +01:00
Clément Fournier
c47a0dc51a Update CompareObjectsWithEquals for #2934 2020-11-28 15:47:38 +01:00
Clément Fournier
2170c7c464 Merge branch '7.0.x' into java-rule-bulk-update 2020-11-28 15:30:06 +01:00
Clément Fournier
13009e78b2 Merge branch 'master' into 7.0.x 2020-11-28 15:24:10 +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
dd625ed18d Remove unused class 2020-11-25 23:30:32 +01:00
Clément Fournier
f2c53375d5 Merge branch '7.0.x' into java-rule-bulk-update 2020-11-25 22:52:13 +01:00
Clément Fournier
ee59732ec5 [java-xpath] Cleanups after #2917
* Improve docs
* Add missing tests for XPath functions
* TypeIsFunction has been replaced with BaseContextNodeTestFun,
so this deletes the file

getCommentOn is still untested. I wonder whether we really need it,
also, it's inefficient and not specified at all (because it's unused).
2020-11-25 18:39:19 +01:00
Andreas Dangel
9d51879088 Small fixes (since=7.0.0, unused ExpectedExeption) 2020-11-25 15:58:35 +01:00
Clément Fournier
37c2c505f3 Merge branch 'master' into ruleset-factory-builder 2020-11-24 12:49:18 +01:00
Clément Fournier
2080800366 Merge branch 'java-new-xpath-functions' into java-rule-bulk-update 2020-11-24 12:41:56 +01:00
Andreas Dangel
3651e66c12 Merge branch 'pmd/7.0.x' into pr-2917 2020-11-24 09:11:08 +01:00
Andreas Dangel
346e67b3f0 Merge branch 'master' into pmd/7.0.x 2020-11-23 16:00:01 +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