17301 Commits

Author SHA1 Message Date
Andreas Dangel
7a1e3caba0 Add deprecations for antlr lexers that will be moved with PMD 7
Refs pmd/pmd#2753
2020-09-13 11:28:07 +02:00
Andreas Dangel
04592c8038 [core] Deprecate RuleReference#getOverriddenLanguage() and #setLanguage()
Refs #2742
2020-09-13 09:18:34 +02:00
Andreas Dangel
dacfff1abf Merge branch 'pr-2758' into master
[cpd] Improve AnyTokenizer #2758
2020-09-12 19:25:47 +02:00
Andreas Dangel
d261f44696 [doc] Update release notes, refs #2758, fixes #2760 2020-09-12 19:24:34 +02:00
Andreas Dangel
3f69e9188b [core] AnyTokenizer: add TODO for PMD7 2020-09-12 19:14:00 +02:00
Andreas Dangel
5192fdc0f9 [core] AnyTokenizer: Add testcase to verify #2760 is fixed 2020-09-12 19:13:43 +02:00
Andreas Dangel
53f3759ede Merge branch 'pr-2776' into master
Bump actions/setup-java from v1.4.0 to v1.4.2 #2776
2020-09-12 18:42:24 +02:00
dependabot[bot]
72f9d0f90a Bump actions/setup-java from v1.4.0 to v1.4.2
Bumps [actions/setup-java](https://github.com/actions/setup-java) from v1.4.0 to v1.4.2.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v1.4.0...8bb50d97d6b4d316daf284fdf8eafbfc988421fc)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 10:46:46 +00:00
Andreas Dangel
352760c09c [ci] Fix dependabot schedule interval 2020-09-12 12:45:52 +02:00
Andreas Dangel
516fa5e01a Merge branch 'pr-2735' into master
[ci] Add github actions for a fast view of pr succeed/not #2735
2020-09-12 12:14:37 +02:00
Andreas Dangel
c3b5e1a5c1 [doc] Update release notes, refs #2735 2020-09-12 12:13:44 +02:00
Andreas Dangel
b247d616d9 [ci] github actions: Build on push and pull requests 2020-09-12 12:13:28 +02:00
Andreas Dangel
2093f6c82a [ci] dependabot: don't open PRs for maven dependencies
We might enable this for PMD 7 later
2020-09-12 12:13:04 +02:00
Andreas Dangel
66a97f6686 Merge branch 'pr-2741' into master
[core] Deprecate ruleviolation comparator #2741
2020-09-12 11:51:19 +02:00
Andreas Dangel
d039605747 [doc] Mention replacement for deprecated RuleViolationComparator 2020-09-12 11:51:11 +02:00
Andreas Dangel
606d25de82 Merge branch 'pr-2761' into master
[java] Fix #2759, UnusedAssignment false positive #2761
2020-09-12 11:37:09 +02:00
Andreas Dangel
20d48caa65 [doc] Update release notes, fixes #2759 2020-09-12 11:36:20 +02:00
Andreas Dangel
9ed79f46fd Merge branch 'pr-2770' into master
[java] Fix #2767, PMD cannot parse a local var with final in instance initializer #2770
2020-09-11 17:52:25 +02:00
Andreas Dangel
a13f88de5f [doc] Update release notes, fixes #2767 2020-09-11 17:51:36 +02:00
Andreas Dangel
6af4f1ecea Merge branch 'pr-2771' into master
[java] Fix #2756, NPE in TypeTestUtil #2771
2020-09-11 17:40:43 +02:00
Andreas Dangel
4f53b77045 [doc] Update release notes, fixes #2756 2020-09-11 17:40:04 +02:00
Andreas Dangel
d752b2c424 Merge branch 'pr-2773' into master
[java] issue-2738: Adding null check to avoid npe when switch case is default #2773
2020-09-11 17:15:03 +02:00
Andreas Dangel
7cea1d684c [doc] Update release notes, fixes #2738, refs #2773 2020-09-11 17:02:40 +02:00
Andreas Dangel
2d0d098d2c [java] Add test case for #2738 2020-09-11 16:59:16 +02:00
Nimit
fedea535b5 issue-2738: Adding null check to avoid npe when switch case is default 2020-09-10 19:19:43 -07:00
Clément Fournier
46933e666d Fix #2756, NPE in TypeTestUtil 2020-09-10 12:49:45 +02:00
Clément Fournier
fc759db5ca Fix #2767
Problem was the stack is empty if the local var declaration
is the first node of the compilation unit to be pushed.
2020-09-10 12:24:03 +02:00
Clément Fournier
d6ba977bb8 Merge branch 'ollieabbey-master' into master
Refs #2747
2020-09-06 18:32:56 +02:00
Clément Fournier
bcb04df160 Merge branch 'master' into ollieabbey-master 2020-09-05 18:38:44 +02:00
Clément Fournier
dddbaf0a6a Merge branch 'master' into deprecate-rv-comparator 2020-09-03 12:17:05 +02:00
Clément Fournier
b0f924495b Fix bug
Problem was, isInTryBlock didn't ask for parent
states, even though abruptCompletionByThrow does.
2020-09-03 12:13:37 +02:00
Clément Fournier
a43dea916d Fix JS tests
Rewrite assertions for better error messages
The difference is 32 tokens instead of 30;
this is because previously, AnyTokenizer
tokenized `window.alert` as a single token. Now
it tokenizes it a `window`, `.`, `alert`.
2020-09-03 11:40:03 +02:00
Clément Fournier
3a33092d22 Add test case 2020-09-02 16:45:19 +02:00
Clément Fournier
24f3017109 Update release notes 2020-09-01 18:23:47 +02:00
Clément Fournier
10b205b5e2 REVERT ME Make end column inclusive
This is for consistency with PMD 6, on pmd 7 this commit
may be reverted
2020-09-01 18:11:08 +02:00
Clément Fournier
dd440eb14a Fix tests 2020-09-01 18:11:05 +02:00
Clément Fournier
251a217a59 Checkout StringUtils parts from 7.0.x branch 2020-09-01 17:53:33 +02:00
Clément Fournier
21aeabdf45 Deprecate AbstractTokenizer 2020-09-01 17:50:39 +02:00
Clément Fournier
9af59c503b Fix linenos with multiline strings 2020-09-01 17:50:31 +02:00
Clément Fournier
5f4d489ec8 Fix tests 2020-09-01 17:50:31 +02:00
Clément Fournier
5331be392b Add perl tests 2020-09-01 17:50:31 +02:00
Clément Fournier
bc4b008b6e Same for Fortran 2020-09-01 17:50:29 +02:00
Clément Fournier
bc0d9c781d Use it to replace RubyTokenizer 2020-09-01 17:50:21 +02:00
Clément Fournier
b27ab97684 Improve AnyTokenizer 2020-09-01 17:50:06 +02:00
Andreas Dangel
3ce68f4977 dogfood - update PMD to 6.27.0 2020-09-01 14:18:07 +02:00
Ollie Abbey
b3e0c54a80 Fixed a typo 2020-09-01 09:03:28 +01:00
Ollie Abbey
85754378f7 Added test for multiple VariableDecoratorIds 2020-09-01 09:02:48 +01:00
Ollie Abbey
776c0c154f Addressed review comments 2020-09-01 08:55:52 +01:00
Ollie Abbey
ba5c2f4288 Merge pull request #1 from pmd/master
Update with changes
2020-09-01 08:52:34 +01:00
Andreas Dangel
6d69bdb386 Prepare next development version 2020-08-31 18:32:02 +02:00