Juan Martín Sotuyo Dodero
31018611c6
Add missing lexer properties
2024-10-06 20:07:37 -03:00
Juan Martín Sotuyo Dodero
e3cd599da2
Add @Generated annotations to cpd Antlr languages
2024-10-06 19:58:43 -03:00
Juan Martín Sotuyo Dodero
ca71d76553
Include up-to-date-check to Antlr4 cpd
...
- Prevent unnecessary re-runs
2024-10-06 19:48:30 -03:00
Juan Martín Sotuyo Dodero
93a019765d
Fix incorrect properties
2024-10-06 17:24:42 -03:00
Juan Martín Sotuyo Dodero
00bf6fe2f7
Fix @since for @Generated
2024-10-06 17:21:30 -03:00
Andreas Dangel
377670f267
[doc] Update release notes ( #5257 )
2024-10-06 18:48:47 +02:00
Andreas Dangel
5ecc29245b
Fix externalInfoUrl after rename
2024-10-05 11:37:45 +02:00
Andreas Dangel
079eb238b9
[java] NonCaseLabelInSwitch - support switch expressions
...
Rename rule from NonCaseLabelInSwitchStatement
- as it applies to both switch statements and switch expressions
- extend the test cases to cover new java syntax
2024-10-05 11:19:53 +02:00
Andreas Dangel
b3157825d8
[java] Rename rule DefaultLabelNotLastInSwitch
...
- as it applies to both switch statements and switch expressions
- extend the test cases to cover new java syntax
Note: For patterns in switch, the java compiler already makes sure, that
default is the last case.
2024-10-05 11:00:13 +02:00
Andreas Dangel
6f081e111a
Update pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/performance/xml/TooFewBranchesForSwitch.xml
2024-10-05 10:41:10 +02:00
Andreas Dangel
59403fc9e1
[java] SwitchStmtsShouldHaveDefault - also ignore record pattern
2024-10-05 10:39:55 +02:00
Andreas Dangel
13cc79af62
[java] TooFewBranchesForSwitch - also ignore record pattern
2024-10-05 10:36:39 +02:00
Andreas Dangel
1f31f771ad
[java] SwitchDensity - more tests with (record) patterns
2024-10-05 10:31:40 +02:00
Andreas Dangel
d9db4dbcab
[java] Rename TooFewBranchesForSwitch in quickstart.xml
2024-10-05 10:19:03 +02:00
Andreas Dangel
855e5175d4
[java] Renamed rule TooFewBranchesForSwitch
...
as it consider Switch Expressions now
additionally to Switch Statements.
2024-10-04 17:48:56 +02:00
Andreas Dangel
b87944a565
[java] TooFewBranchesForSwitch should consider Switch Expressions
...
Fixes #5250
2024-10-04 17:48:49 +02:00
Andreas Dangel
90f436fd28
[java] TooFewBranchesForSwitch should ignore Pattern Matching
...
Fixes #5249
2024-10-04 17:47:21 +02:00
Andreas Dangel
375fb72f3c
[java] Fix tree dump test
...
New SwitchLabel#PatternLabel flag
2024-10-04 17:32:46 +02:00
Andreas Dangel
49deb8d4a0
[java] SwitchDensity false positive with pattern matching
...
Fixes #5030
2024-10-04 17:12:29 +02:00
Andreas Dangel
312d8e46ae
[java] ImplicitSwitchFallThrough should consider switch expressions
...
Fixes #3362
2024-10-04 16:45:29 +02:00
Andreas Dangel
e5ff5532d4
Update @emouty as a contributor
2024-10-04 16:05:46 +02:00
Andreas Dangel
0c858b0a7b
[java] SwitchStmtsShouldHaveDefault should ignore patterns
...
Fixes #4813
2024-10-04 16:05:45 +02:00
Andreas Dangel
a0818d5ab2
[doc] Document renamed/old rule names
2024-10-04 15:54:21 +02:00
Andreas Dangel
5ce4d292fa
[java] Fix #5067 : CloseResource: False positive for FileSystems.getDefault() ( #5225 )
...
Merge pull request #5225 from lukasgraef:issue5067
2024-10-04 10:06:18 +02:00
Andreas Dangel
d2c42d2426
[doc] Update release notes ( #5067 , #5225 )
2024-10-04 10:05:48 +02:00
Andreas Dangel
c6fd064054
Merge branch 'main' into pr-5225
2024-10-04 10:02:40 +02:00
Andreas Dangel
07cd250a74
Fix release_notes.md
2024-10-04 10:00:53 +02:00
Andreas Dangel
c0023dd942
[java] Rename UnitTestShouldIncludeAssert again
...
to make it consistent and always use singular "UnitTest"
Follow-up on #4532 and #4965
2024-10-04 09:32:55 +02:00
Andreas Dangel
9fbaa4fbfb
[java] Update quickstart.xml with renamed UnitTest* rules
2024-10-04 09:25:21 +02:00
Juan Martín Sotuyo Dodero
7d4961f303
Update README.md
...
Point coveralls to main branch
2024-10-03 17:47:01 -03:00
Andreas Dangel
9337e5a7a2
[java] UnitTestShouldUseAfterAnnotation: Consider JUnit 5 and TestNG
2024-10-03 20:55:11 +02:00
Andreas Dangel
33c737718c
[java] UnitTestShouldUseBeforeAnnotation: Consider JUnit 5 and TestNG
2024-10-03 20:55:10 +02:00
Andreas Dangel
b7c4a5e492
Ignore javacc code in coverage report ( #5241 )
...
Merge pull request #5241 from Monits:ignore-javacc-code
2024-10-03 20:30:41 +02:00
Andreas Dangel
d77a63da95
[doc] Update release notes ( #5241 )
2024-10-03 20:29:53 +02:00
Andreas Dangel
463ca964dc
[java] Rename JUnit rules with overly restrictive names ( #4965 )
...
Merge pull request #4965 from Monits:issue-4532
2024-10-03 20:07:50 +02:00
Andreas Dangel
57497738c1
[doc] Update release notes ( #4532 , #4965 )
2024-10-03 20:06:21 +02:00
Andreas Dangel
525435bd68
[java] Keep bestpractices.xml sorted alphabetically
2024-10-03 19:59:29 +02:00
Andreas Dangel
c5246eca46
Renamed JUnit4TestShouldUseAfterAnnotation
...
- call it UnitTest... to be agnostic to the testing framework
2024-10-03 19:52:56 +02:00
Andreas Dangel
4796da0fb2
Renamed JUnit4TestShouldUseBeforeAnnotation
...
- call it UnitTest... to be agnostic to the testing framework
2024-10-03 19:51:13 +02:00
lukasgraef
7dcab3f189
Fix static analysis findings
2024-09-30 20:48:20 +02:00
lukasgraef
39b8bdf171
Review Finding: Check for type java.nio.FileSystems
2024-09-30 20:13:01 +02:00
Andreas Dangel
5fe19b2096
[release] Prepare next development version [skip ci]
2024-09-27 11:43:22 +02:00
Andreas Dangel
d8d4d3d061
[release] prepare release pmd_releases/7.6.0
pmd_releases/7.6.0
2024-09-27 11:08:53 +02:00
Andreas Dangel
6d48907259
Prepare pmd release 7.6.0
2024-09-27 10:49:57 +02:00
Andreas Dangel
5261a6d60e
[doc] Update contributors
...
- Add @kratoon as a contributor
- Add @mattr9124 as a contributor
2024-09-27 09:35:58 +02:00
Andreas Dangel
ac8c873168
[apex] Support convertCurrency() in SOQL/SOSL ( #5237 )
...
Merge pull request #5237 from adangel:issue-5228-apex-convertCurrency
2024-09-27 09:03:32 +02:00
Andreas Dangel
c2445c7bb5
[doc] Documentation update for --show-suppressed flag ( #5230 )
...
Merge pull request #5230 from dschach:master
2024-09-27 09:02:35 +02:00
David Schach
03fba2443a
[doc] Update @dschach as a contributor
2024-09-27 08:58:36 +02:00
David Schach
6f518c8304
[doc] Improve doc for --show-suppressed
...
- it's only supported for specific formats
- currently: xml, html, summaryhtml
Fixes #5229
2024-09-27 08:58:36 +02:00
Andreas Dangel
c84ffb8e0b
[apex] Bump apex-parser from 4.2.0 to 4.3.0
2024-09-26 18:50:00 +02:00