590f1871fe
simulate_local_edits.py
2024-11-22 15:29:08 +05:00
a73f81aec4
a lot of random changes
2024-11-22 14:59:02 +05:00
0fdeb67010
a lot of random changes
2024-11-22 14:57:15 +05:00
f02c057b4f
Simulate big commit with random edits
2024-11-22 14:52:44 +05:00
Andreas Dangel
4f766035a4
[java] Fix #5263 - UnnecessaryFullyQualifiedName FP with forward references ( #5353 )
...
Merge pull request #5353 from oowekyala:issue5263-ufqn-forward-ref
2024-11-22 09:48:25 +01:00
Andreas Dangel
9da17877ac
[doc] Update release notes ( #5263 , #5353 )
2024-11-22 09:47:53 +01:00
Andreas Dangel
3e9e128aa7
[java] UnnecessaryFullyQualifiedName - improve test case
2024-11-22 09:46:35 +01:00
Clément Fournier
918684c154
Fix static methods being whitelisted
2024-11-21 16:51:24 +01:00
Clément Fournier
e63edf358e
[java] Fix #5263 - UnnecessaryFullyQualifiedName FP with forward reference.
2024-11-21 15:26:54 +01:00
Clément Fournier
0d11f151bd
[java] Add more details to parse failures in signatures
2024-11-21 14:55:51 +01:00
Juan Martín Sotuyo Dodero
28b4139cd4
Bump rouge from 4.5.0 to 4.5.1 in the all-gems group across 1 directory ( #5348 )
2024-11-18 15:44:10 -03:00
Juan Martín Sotuyo Dodero
d61f691559
Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 ( #5350 )
2024-11-18 15:43:55 -03:00
Clément Fournier
12f7f98803
Fix junit 5 warning
...
return type of factory method must be a collection
or array or stream
2024-11-18 11:43:51 +01:00
dependabot[bot]
2e4f16d516
Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0
...
Bumps org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 04:05:13 +00:00
dependabot[bot]
46ef55c9a9
Bump rouge from 4.5.0 to 4.5.1 in the all-gems group across 1 directory
...
Bumps the all-gems group with 1 update in the / directory: [rouge](https://github.com/rouge-ruby/rouge ).
Updates `rouge` from 4.5.0 to 4.5.1
- [Release notes](https://github.com/rouge-ruby/rouge/releases )
- [Changelog](https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rouge-ruby/rouge/compare/v4.5.0...v4.5.1 )
---
updated-dependencies:
- dependency-name: rouge
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 03:46:56 +00:00
Andreas Dangel
79c0ce0415
[julia] Ignore generated code in Julia module ( #5342 )
...
Merge pull request #5342 from Monits:fix-generated-code-julia
2024-11-17 16:16:51 +01:00
Andreas Dangel
8fdfd369b0
[doc] Update release notes ( #5342 )
2024-11-17 16:15:55 +01:00
Andreas Dangel
80b8bc47df
[gherkin] Remove generated gherkin code from coverage report ( #5336 )
...
Merge pull request #5336 from Monits:fix-generated-code-gherkin
2024-11-17 16:13:13 +01:00
Andreas Dangel
a9b6c946b4
[doc] Update release notes ( #5336 )
2024-11-17 16:12:46 +01:00
Andreas Dangel
2910ab0403
[kotlin] Prevent auxiliary grammars from generating lexers ( #5335 )
...
Merge pull request #5335 from Monits:fix-generated-code-kotlin
2024-11-17 15:58:54 +01:00
Andreas Dangel
5a0220da2e
[doc] Update release notes ( #5335 )
2024-11-17 15:58:05 +01:00
Andreas Dangel
bc4a49deac
[doc] Update docs/pages/pmd/projectdocs/credits.md [skip ci]
2024-11-17 15:49:32 +01:00
Andreas Dangel
a40c30c8c1
[apex] New Rule: Queueable Should Attach Finalizer ( #5303 )
...
Merge pull request #5303 from mitchspano:Require_Finalizer
2024-11-17 15:46:05 +01:00
Andreas Dangel
44c15aae6d
[doc] Update release notes ( #5303 , #5302 )
2024-11-17 15:30:59 +01:00
Andreas Dangel
85aeebbab0
Merge branch 'main' into pr-5303
2024-11-17 15:25:24 +01:00
Andreas Dangel
a5925eb5ea
[doc] Fix typo in release notes
2024-11-17 15:24:49 +01:00
mitchspano
c456396931
Reset credits.md to pmd main HEAD.
2024-11-15 22:14:20 +00:00
mitchspano
1ee0f53608
Update @mitchspano as a contributor
2024-11-15 22:07:44 +00:00
Juan Martín Sotuyo Dodero
e60f460e02
Merge branch 'pr-5340'
2024-11-15 18:40:37 -03:00
Juan Martín Sotuyo Dodero
ee1ab976bc
update changelog, refs #5097
2024-11-15 18:39:39 -03:00
Juan Martín Sotuyo Dodero
15cab177d2
Remove added test
2024-11-15 18:30:03 -03:00
Juan Martín Sotuyo Dodero
b6f45ed618
Ensure types don't match
2024-11-15 17:55:07 -03:00
Juan Martín Sotuyo Dodero
1ceae38880
[java] TooFewBranchesForSwitch - allow list of case constants ( #5289 )
2024-11-15 13:48:50 -06:00
Juan Martín Sotuyo Dodero
f7de8d3e7e
Merge branch 'pr-5331'
2024-11-15 16:47:09 -03:00
Juan Martín Sotuyo Dodero
59864a7c6c
Merge branch 'pr-5341'
2024-11-15 16:15:19 -03:00
Juan Martín Sotuyo Dodero
a6746fcffa
Update changelog, refs #5083
2024-11-15 16:14:53 -03:00
Juan Martín Sotuyo Dodero
aad8e93a2f
Add test case ensuring we don't incur in FNs
2024-11-15 16:13:44 -03:00
Juan Martín Sotuyo Dodero
3bb943e0e5
Add deprecated code for backwards compatibility
2024-11-15 16:01:45 -03:00
Juan Martín Sotuyo Dodero
3356dd949d
Ignore generated code in Julia module
2024-11-15 15:42:35 -03:00
Clément Fournier
b264fa14e1
Fix #5083 - mref without target type but with exact method
...
has compile time decl
2024-11-15 16:36:52 +01:00
Clément Fournier
c1aa4e0381
Merge branch 'main' into typeres-problem-with-unchecked-conversion
2024-11-15 16:18:22 +01:00
Clément Fournier
a72ac5845b
Add test for #5113
2024-11-15 16:16:08 +01:00
Juan Martín Sotuyo Dodero
4e1f4be009
Merge branch 'main' into issue-5287
2024-11-15 08:51:52 -06:00
Juan Martín Sotuyo Dodero
c73e5cb8b1
[html] Test for a closing tag when determining node positions ( #5328 )
2024-11-15 08:50:53 -06:00
Clément Fournier
5931b6601c
[java] Fix #5097 - problem with unchecked conversion
2024-11-15 15:27:55 +01:00
Juan Martín Sotuyo Dodero
9d15c900db
Pass linters in generated code
2024-11-15 11:27:07 -03:00
mitchspano
69a24126f7
Fix formatting and static code analysis findings.
2024-11-14 23:29:44 +00:00
Juan Martín Sotuyo Dodero
ef3a4cc15e
Remove generated gherkin code from coverage report
...
- Take the chance to remove / deprecate autogenerated classes that are
not needed and were not used.
2024-11-14 18:10:59 -03:00
Juan Martín Sotuyo Dodero
4ef8fb21a9
Merge branch 'main' into issue-5322
2024-11-14 14:38:45 -06:00
Juan Martín Sotuyo Dodero
f803aa36dc
[java] InsufficientStringBufferDeclaration: Fix CCE for Character ( #5332 )
2024-11-14 13:57:49 -06:00
Juan Martín Sotuyo Dodero
0cf8f2c18b
Suppress style warnings on generated file
2024-11-14 16:55:55 -03:00
Juan Martín Sotuyo Dodero
178f9541e2
Add since to deprecation notice
2024-11-14 16:51:04 -03:00
Juan Martín Sotuyo Dodero
79026f98c9
Add licence header
2024-11-14 16:49:45 -03:00
Juan Martín Sotuyo Dodero
0e0f347f51
Rename parser before annotating to ensure files are found
2024-11-14 16:47:20 -03:00
Juan Martín Sotuyo Dodero
0d606a7122
Prevent auxiliary grammars from generating lexers
...
- A misconfiguration of Antlr4 produced an auxiliary gramma
(UnicodeClasses), that was imported into the main kotlin grammar,
to produce it's own Lexer, which was never used.
- We no longer produce that Lexer, properly moving imports to the
standard directory for that.
- We manually copy a generated version for API compatibility, flagging
it as both Generated and Deprecated for removal in PMD 8
2024-11-14 16:39:09 -03:00
Andreas Dangel
d60b234a47
Merge branch 'main' into issue-5314
2024-11-14 19:47:41 +01:00
Andreas Dangel
b050ce353e
[java] Propagate unknown type better when mref is unresolved ( #5330 )
...
Merge pull request #5330 from oowekyala:typeres-fix-inference-issue-mref
2024-11-14 19:18:43 +01:00
Andreas Dangel
32f55e22e3
[doc] Update release notes ( #5329 , #5330 )
2024-11-14 19:18:11 +01:00
Andreas Dangel
206ed8bbd3
[apex] Use case-insensitive input stream to avoid choking on Unicode escape sequences ( #5284 )
...
Merge pull request #5284 from wahajenius:main
2024-11-14 18:23:26 +01:00
Andreas Dangel
e1d4f27e19
Add @wahajenius as a contributor
2024-11-14 18:18:06 +01:00
Andreas Dangel
093683bc59
[doc] Update release notes ( #5284 , #5333 )
2024-11-14 18:17:49 +01:00
Andreas Dangel
509452577d
[apex] Add test case for #5333
2024-11-14 18:16:06 +01:00
Andreas Dangel
991bc2c41d
[apex] Report LexException when extracting comments
2024-11-14 18:12:13 +01:00
Andreas Dangel
8c58a0b3f5
Merge branch 'main' into pr-5284
2024-11-14 18:01:56 +01:00
Andreas Dangel
01b8ca765b
Add @chenguangqi as a contributor
2024-11-14 17:48:26 +01:00
Andreas Dangel
3fdbf7d6cb
[java] InsufficientStringBufferDeclaration: Fix CCE for Character
...
Fixes #5314
2024-11-14 17:48:08 +01:00
Andreas Dangel
bb729e02f4
Add @VitaliiIevtushenko as a contributor
2024-11-14 17:39:32 +01:00
Clément Fournier
bf388d7fd0
Propagate unknown type better when mref is unresolved
2024-11-14 17:39:31 +01:00
Andreas Dangel
61eb116833
[java] PreserveStackTrace - consider instance type patterns
...
Fixes #5318
2024-11-14 17:39:07 +01:00
Andreas Dangel
634a525286
[html] Test for a closing tag when determining node positions
...
Fixes #5322
2024-11-14 17:07:37 +01:00
Clément Fournier
2df68ed168
Disable type inf logging by default
2024-11-14 16:32:09 +01:00
Clément Fournier
04dfb782f0
Merge branch 'typeres-fix-inference-issue'
2024-11-14 16:14:50 +01:00
Clément Fournier
a79d3e6557
Add unit tests
2024-11-14 16:13:30 +01:00
Andreas Dangel
bb2782241e
[java] Fix inference dependency issue with nested lambdas ( #5325 )
...
Merge pull request #5325 from oowekyala:typeres-fix-inference-issue
2024-11-14 15:51:08 +01:00
Andreas Dangel
2340168421
[doc] Update release notes ( #5324 )
2024-11-14 15:50:35 +01:00
Andreas Dangel
e5a1236981
Update pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/UnusedPrivateMethod.xml
2024-11-14 15:48:47 +01:00
dependabot[bot]
ed5e862aa3
Bump rouge from 4.4.0 to 4.5.0 in the all-gems group across 1 directory ( #5316 )
...
Bumps the all-gems group with 1 update in the / directory: [rouge](https://github.com/rouge-ruby/rouge ).
Updates `rouge` from 4.4.0 to 4.5.0
- [Release notes](https://github.com/rouge-ruby/rouge/releases )
- [Changelog](https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rouge-ruby/rouge/compare/v4.4.0...v4.5.0 )
---
updated-dependencies:
- dependency-name: rouge
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-14 15:14:44 +01:00
Clément Fournier
529693c916
[java] fix inference dependency issue
...
Reported in #5324
I improved the verbose logging output a bit so
some of the changes are not directly relevant.
2024-11-13 22:39:34 +01:00
mitchspano
1a9e721fb6
Implements the RuleChain
within the QueueableWithoutFinalizerRule
.
...
Implements the [`RuleChain`](https://docs.pmd-code.org/latest/pmd_userdocs_extending_writing_java_rules.html#economic-traversal-the-rulechain ) to traverse all classes within the file.
2024-11-12 21:59:02 +00:00
mitchspano
4e4ca6bb70
Incorporate code review feedback.
...
- Renames the rule to `QueueableWithoutFinalizer` to be more neutral.
- Provides a more robust description.
- Provides a more succinct error message.
- Provides a positive sample for the documentation .
2024-11-12 19:46:58 +00:00
Juan Martín Sotuyo Dodero
3659a2cb7d
Bump org.apache.commons:commons-compress from 1.26.0 to 1.27.1 ( #5317 )
2024-11-10 22:55:15 -06:00
dependabot[bot]
07de5559bc
Bump org.apache.commons:commons-compress from 1.26.0 to 1.27.1
...
Bumps org.apache.commons:commons-compress from 1.26.0 to 1.27.1.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-compress
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 03:35:46 +00:00
Andreas Dangel
b05b8240a7
Merge branch 'main' into issue-5287
2024-11-07 19:51:00 +01:00
Andreas Dangel
ee7d6fed3e
[java] TooFewBranchesForSwitch - add test case from comment on #5311
2024-11-07 19:50:29 +01:00
Juan Martín Sotuyo Dodero
fe88498ee8
[java] Fix #5293 : Parse number of type parameters eagerly ( #5309 )
2024-11-07 06:19:16 -06:00
Juan Martín Sotuyo Dodero
944e1e8f7a
Bump maven-pmd-plugin from 3.24.0 to 3.26.0 ( #5312 )
2024-11-07 06:17:30 -06:00
Andreas Dangel
ca208d2241
Bump maven-pmd-plugin from 3.24.0 to 3.26.0
2024-11-07 12:40:18 +01:00
Andreas Dangel
9dcb697f13
Improve DeadlockTest
2024-11-07 12:38:11 +01:00
Andreas Dangel
733ac4bba0
[doc] Update release notes ( #5293 )
2024-11-04 11:23:49 +01:00
Andreas Dangel
1ee6494429
[java] Fix #5293 : Parse number of type parameters eagerly
...
When creating a LazyClassSignature or LazyMethodType, make sure
to parse the number of type parameters eagerly, so that AstDisambiguationPass
can get this number without triggering additional parsing.
2024-11-04 11:23:49 +01:00
Andreas Dangel
a1996554d8
[java] Add DeadlockTest for verifying #5293
...
- Improve logging for Parselock
Refs #5293
2024-11-04 11:23:48 +01:00
dependabot[bot]
e15c05721e
Bump webrick from 1.8.2 to 1.9.0 in /docs in the all-gems group across 1 directory ( #5308 )
...
Bump webrick in /docs in the all-gems group across 1 directory
Bumps the all-gems group with 1 update in the /docs directory: [webrick](https://github.com/ruby/webrick ).
Updates `webrick` from 1.8.2 to 1.9.0
- [Release notes](https://github.com/ruby/webrick/releases )
- [Commits](https://github.com/ruby/webrick/compare/v1.8.2...v1.9.0 )
---
updated-dependencies:
- dependency-name: webrick
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-04 09:23:58 +01:00
Juan Martín Sotuyo Dodero
f0daed5874
Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.2 to 3.4.0 ( #5307 )
2024-11-03 21:54:00 -06:00
dependabot[bot]
36dfcf8211
Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.2 to 3.4.0
...
Bumps [org.apache.maven.plugins:maven-clean-plugin](https://github.com/apache/maven-clean-plugin ) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/apache/maven-clean-plugin/releases )
- [Commits](https://github.com/apache/maven-clean-plugin/compare/maven-clean-plugin-3.3.2...maven-clean-plugin-3.4.0 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-clean-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-11-04 03:08:41 +00:00
mitchspano
83d8ca0169
Fix bestPractices.xml
formatting and priority definition.
2024-11-01 21:59:13 +00:00
mitchspano
be3c34fe1a
Add priority definition.
2024-11-01 21:29:30 +00:00
mitchspano
52fb6c814b
Queueable Should Attach Finalizer
2024-11-01 21:17:53 +00:00
mitchspano
93929deef6
Update @mitchspano as a contributor
2024-11-01 17:09:51 +00:00
Andreas Dangel
3ed370f61d
Bump gems and bundler ( #5301 )
...
- Bump bundler from 2.5.3 to 2.5.22
- Bump activesupport from 7.2.1 to 7.2.2
- Bump execjs from 2.9.1 to 2.10.0
- Bump faraday from 2.11.0 to 2.12.0
- Bump i18n from 1.14.5 to 1.14.6
- Bump json from 2.7.2 to 2.7.5
- Bump logger from 1.6.0 to 1.6.1
- Bump rexml from 3.3.6/3.3.8 to 3.3.9
- Bump rufus-scheduler from 3.9.2 to 3.9.2
- Fixes https://github.com/pmd/pmd/security/dependabot/69
- Fixes https://github.com/pmd/pmd/security/dependabot/70
2024-10-31 15:07:25 +01:00
Andreas Dangel
5eaefd2841
[doc] Update release notes ( #1860 )
2024-10-31 15:06:32 +01:00
Andreas Dangel
a709be1dcb
[xml] Have pmd-xml Lexer in line with other antlr grammars ( #5296 )
...
Merge pull request #5296 from Monits:align-xml-antlr
2024-10-31 12:27:11 +01:00
Andreas Dangel
c079d8c544
[doc] Update release notes ( #5296 )
2024-10-31 12:25:59 +01:00
Andreas Dangel
7bfa581511
Merge branch 'main' into pr-5296
2024-10-31 12:17:57 +01:00
Andreas Dangel
6ae7404941
[xml] XMLLexer - Update deprecation notice
2024-10-31 12:17:27 +01:00
Juan Martín Sotuyo Dodero
94095df872
Fix style issues
2024-10-29 17:21:24 -03:00
Juan Martín Sotuyo Dodero
7119424d96
Add license header
2024-10-29 16:56:30 -03:00
Juan Martín Sotuyo Dodero
69a92de52d
Have pmd-xml Lexer in line with other antlr grammars
...
- The package is no longer antlr4, but ast, as is in all other modules
- We keep a deprecated proxy for backwards compatibility
- We annotate the generated classes as such to ignore them from
coverage reports
2024-10-28 22:10:21 -03:00
Juan Martín Sotuyo Dodero
73dbc7a67f
Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.1 ( #5290 )
2024-10-28 14:06:52 -03:00
dependabot[bot]
c81cd1d520
Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.1
...
Bumps [org.apache.maven.plugins:maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin ) from 3.6.0 to 3.7.1.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases )
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.6.0...maven-assembly-plugin-3.7.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-assembly-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 03:31:36 +00:00
Juan Martín Sotuyo Dodero
4473aa6667
[ant] Formatter: avoid reflective access to determine console encoding ( #5286 )
2024-10-27 15:40:04 -03:00
Juan Martín Sotuyo Dodero
97d68e331c
Bump asm from 9.7 to 9.7.1 ( #5288 )
2024-10-27 12:38:42 -03:00
Andreas Dangel
16eafc89c2
[java] TooFewBranchesForSwitch - allow list of case constants
...
Fixes #5287
2024-10-27 16:24:05 +01:00
Andreas Dangel
d68d6c57ef
Bump asm from 9.7 to 9.7.1
...
This enables support for Java 24
Refs #5154
2024-10-27 15:53:00 +01:00
Andreas Dangel
9c098b2531
Bump pmd from 7.5.0 to 7.7.0 ( #5285 )
...
* Bump pmd from 7.5.0 to 7.7.0
* Bump build-tools from 27 to 28-SNAPSHOT
Needed to remove deprecation warnings
about old rule names
2024-10-27 15:20:28 +01:00
Andreas Dangel
3f697aff35
[ant] Formatter: avoid reflective access to determine console encoding
...
- for java 17+, there is public API to get the console encoding
-> no problem
- for older java versions, try to use system property
sun.jnu.encoding if it exists
- only then use the fall-backs with illegal reflective access
to private fields/methods on java.io.Console
- Also avoid using reflection utils from apache commons, instead
use reflection directly. The illegal access warnings are then
properly reported against our class
net.sourceforge.pmd.ant.Formatter.
Fixes #1860
2024-10-25 18:33:36 +02:00
Andreas Dangel
74ec6f45ee
[doc] Fix release notes for 7.7.0
...
Old rule name was actually DefaultLabelNotLastInSwitchStmt
2024-10-25 10:35:02 +02:00
Andreas Dangel
c179834288
[release] Prepare next development version [skip ci]
2024-10-25 09:28:54 +02:00
Andreas Dangel
7739f2b840
[release] prepare release pmd_releases/7.7.0
2024-10-25 09:07:54 +02:00
Andreas Dangel
919e73f6b0
Prepare pmd release 7.7.0
2024-10-25 08:47:38 +02:00
Andreas Dangel
e2d59c0e64
Fix #5244 : [java] UselessOperationOnImmutable: consider java.time.* types ( #5279 )
...
Merge pull request #5279 from adangel:issue-5244
2024-10-24 14:24:16 +02:00
Andreas Dangel
8f2d47dfb7
Fix #5270 : [apex] AvoidNonRestrictiveQueries: Fix regex for detecting LIMIT clause ( #5273 )
...
Merge pull request #5273 from adangel:issue-5270
2024-10-24 14:22:25 +02:00
Andreas Dangel
e6097d6090
[java] Rename rule SwitchStmtsShouldHaveDefault to NonExhaustiveSwitch ( #5267 )
...
Merge pull request #5267 from adangel:issue-4286
2024-10-24 14:21:04 +02:00
Andreas Dangel
5e83246469
[doc] Update release notes ( #5267 )
2024-10-24 14:16:43 +02:00
Andreas Dangel
62c2858f70
Fix #5257 : [java] NonCaseLabelInSwitch - support switch expressions ( #5256 )
...
Merge pull request #5256 from adangel:rename-nocaselabelswitch
2024-10-24 14:15:06 +02:00
Andreas Dangel
0d8878d58e
[java] Rename rule DefaultLabelNotLastInSwitch ( #5255 )
...
Merge pull request #5255 from adangel:rename-defaultlabelswitch
2024-10-24 14:10:16 +02:00
Andreas Dangel
4b23718aac
Fix #4813 : [java] SwitchStmtsShouldHaveDefault false positive with pattern matching ( #5252 )
...
Merge pull request #5252 from adangel:issue-4813
2024-10-24 14:08:12 +02:00
Andreas Dangel
3a501a0f6b
Fix #5249 and #5250 : [java] TooFewBranchesForSwitch ignore pattern matching and support switch expressions ( #5251 )
...
Merge pull request #5251 from adangel:issue-5249-5250
2024-10-24 14:06:03 +02:00
Andreas Dangel
36654ed52e
[java] UselessOperationOnImmutable: false positive on void results
2024-10-24 13:08:09 +02:00
Andreas Dangel
45b1217485
[java] TooFewBranchesForSwitch: don't report empty switch
...
Empty switch statements are already reported
by EmptyControlStatement
2024-10-24 12:51:42 +02:00
Andreas Dangel
662759755d
[java] SwitchStmtsShouldHaveDefault.xml: don't report empty switch
...
Empty switch statements are already reported
by EmptyControlStatement
2024-10-24 12:47:53 +02:00
Andreas Dangel
d9d6b57f2a
[java] TooFewBranchesForSwitch: report empty switch
...
This fixes a false negative
2024-10-24 12:38:45 +02:00
Andreas Dangel
6c35c73919
[java] SwitchStmtsShouldHaveDefault: use new PatternLabel attribute
2024-10-24 11:29:40 +02:00
Andreas Dangel
e37f82b62d
Merge branch 'main' into issue-4813
2024-10-24 11:24:17 +02:00
Andreas Dangel
6f5af6e585
[java] TooFewBranchesForSwitch: use new PatternLabel attribute
2024-10-24 11:22:47 +02:00
Andreas Dangel
66d879f707
Merge branch 'main' into issue-5249-5250
2024-10-24 11:20:39 +02:00
Andreas Dangel
93f6279ea7
Fix #3362 : [java] ImplicitSwitchFallThrough should consider switch expressions ( #5248 )
2024-10-24 10:46:59 +02:00
Andreas Dangel
156f293ef3
Fix #5030 : [java] SwitchDensity false positive with pattern matching ( #5247 )
2024-10-24 10:45:56 +02:00
Andreas Dangel
40ed4590be
[java] Improve UnitTestShouldUse{After,Before}Annotation rules to support JUnit5 and TestNG ( #5245 )
2024-10-24 10:43:48 +02:00
Andreas Dangel
7358289bbe
[cpp] Ignore literals and ignore identifiers capability to C++ CPD ( #5040 )
...
Merge pull request #5040 from jdupak:master
2024-10-24 10:18:39 +02:00
Andreas Dangel
a180258033
[doc] Update release notes ( #5040 )
2024-10-24 10:17:51 +02:00
Andreas Dangel
63675eaa18
[doc] Update release notes ( #5279 )
2024-10-22 21:03:22 +02:00
Andreas Dangel
49f2c15b83
[doc] Update release notes ( #5273 )
2024-10-22 21:01:42 +02:00
Andreas Dangel
15520211b5
Merge branch 'main' into issue-5270
2024-10-22 21:01:00 +02:00
Andreas Dangel
c4b8f18a36
[doc] Update release notes ( #5252 )
2024-10-22 20:58:37 +02:00
Andreas Dangel
c95817a75d
Merge branch 'main' into issue-4813
2024-10-22 20:55:38 +02:00
Andreas Dangel
09b0864eff
Apply suggestions from code review
...
Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
2024-10-22 20:50:10 +02:00
dependabot[bot]
1517a18956
Bump org.scala-lang:scala-reflect from 2.13.13 to 2.13.15 ( #5281 )
...
Bumps [org.scala-lang:scala-reflect](https://github.com/scala/scala ) from 2.13.13 to 2.13.15.
- [Release notes](https://github.com/scala/scala/releases )
- [Commits](https://github.com/scala/scala/compare/v2.13.13...v2.13.15 )
---
updated-dependencies:
- dependency-name: org.scala-lang:scala-reflect
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 20:23:50 +02:00
Willem Hajenius
61b1c372cd
[apex] Must use case-insensitive input stream to avoid choking on Unicode escape sequences
2024-10-22 12:27:28 +02:00
Juan Martín Sotuyo Dodero
97fe389dcc
Bump danger from 9.5.0 to 9.5.1 in the all-gems group across 1 directory ( #5280 )
2024-10-21 11:28:12 -03:00
dependabot[bot]
7df70ea7c1
Bump danger from 9.5.0 to 9.5.1 in the all-gems group across 1 directory
...
Bumps the all-gems group with 1 update in the / directory: [danger](https://github.com/danger/danger ).
Updates `danger` from 9.5.0 to 9.5.1
- [Release notes](https://github.com/danger/danger/releases )
- [Changelog](https://github.com/danger/danger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/danger/danger/compare/v9.5.0...v9.5.1 )
---
updated-dependencies:
- dependency-name: danger
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-21 03:18:38 +00:00
Jakub Dupak
7ad4e0f0fc
Add @jdupak as a contributor
2024-10-20 21:57:48 +02:00
Jakub Dupak
c47f5a6062
[cpd] Add ignore literals and identifiers capability to C++
2024-10-20 21:57:48 +02:00
Andreas Dangel
6d55f6f053
[java] UselessOperationOnImmutable: consider java.time.* types
...
Fixes #5244
2024-10-18 17:42:44 +02:00
dependabot[bot]
b60b4d8a68
Bump com.google.protobuf:protobuf-java from 3.25.3 to 4.28.2 ( #5234 )
...
* Bump com.google.protobuf:protobuf-java from 3.25.3 to 4.28.2
Bumps [com.google.protobuf:protobuf-java](https://github.com/protocolbuffers/protobuf ) from 3.25.3 to 4.28.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl )
- [Commits](https://github.com/protocolbuffers/protobuf/commits )
---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Cleanup comment about protobuf dependency
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Dangel <andreas.dangel@pmd-code.org>
2024-10-18 16:42:52 +02:00
Andreas Dangel
5df7dccfb6
[doc] Update release notes ( #5255 )
2024-10-18 16:40:27 +02:00
Andreas Dangel
f4941433ce
Merge branch 'main' into rename-defaultlabelswitch
2024-10-18 16:39:12 +02:00
Andreas Dangel
665504decc
[doc] Update release notes ( #5251 )
2024-10-18 16:30:41 +02:00
Andreas Dangel
ef0db9a166
Merge branch 'main' into issue-5249-5250
2024-10-18 16:30:01 +02:00
Andreas Dangel
fd8fcd67d6
[doc] Update release notes ( #5248 )
2024-10-18 16:23:17 +02:00
Andreas Dangel
dafdc964a5
Merge branch 'main' into issue-3362
2024-10-18 16:22:17 +02:00
Andreas Dangel
81429a4628
[doc] Update release notes ( #5247 )
2024-10-18 16:21:02 +02:00
Andreas Dangel
fb94e2493c
Merge branch 'main' into issue-5030
2024-10-18 16:20:11 +02:00
Andreas Dangel
a0d4b38b53
[doc] Update release notes ( #5245 )
2024-10-18 16:16:54 +02:00
Andreas Dangel
f317e8bee5
Merge branch 'main' into java-unit-test-rules
2024-10-18 16:15:51 +02:00
dependabot[bot]
99f4c9c044
Bump org.checkerframework:checker-qual from 2.11.1 to 3.48.1 ( #5276 )
...
Bumps [org.checkerframework:checker-qual](https://github.com/typetools/checker-framework ) from 2.11.1 to 3.48.1.
- [Release notes](https://github.com/typetools/checker-framework/releases )
- [Changelog](https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/typetools/checker-framework/compare/checker-framework-2.11.1...checker-framework-3.48.1 )
---
updated-dependencies:
- dependency-name: org.checkerframework:checker-qual
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-18 16:04:35 +02:00
Andreas Dangel
656b9052ad
[java] CouplingBetweenObjects: improve violation message ( #5278 )
...
Merge pull request #5278 from adangel:coupling-between-objects-message
2024-10-18 15:40:54 +02:00
Andreas Dangel
f0375d61dd
[doc] Update release notes ( #5278 )
2024-10-18 15:39:52 +02:00
Andreas Dangel
a24c8aa002
[doc] Update release notes
2024-10-18 15:36:28 +02:00
Andreas Dangel
5ffb953191
[java] CouplingBetweenObjects: improve violation message
...
When we add the actual count to the message,
we can more easily verify that the rule works
as expected.
2024-10-18 10:42:42 +02:00
Juan Martín Sotuyo Dodero
d5faa1c74a
Merge pull request #5275 from adangel/javacc-wrapper-improvement
...
Use plugin-classpath to simplify javacc-wrapper.xml
2024-10-13 23:54:54 -03:00
Andreas Dangel
867b142ee4
Use plugin-classpath to simplify javacc-wrapper.xml
...
javacc is on the antrun plugin's classpath.
The javacc jar file doesn't need to be copied
explicitly.
2024-10-13 12:28:16 +02:00
Andreas Dangel
0ea42b94e0
Ignore generated antlr classes in coverage reports ( #5258 )
...
Merge pull request #5258 from Monits:ignore-generated-antlr
2024-10-13 12:27:30 +02:00
Andreas Dangel
f834b8744d
[doc] Update release notes ( #5258 )
2024-10-13 12:26:31 +02:00
Juan Martín Sotuyo Dodero
ab1976382a
Remove ant.contrib.jar property
2024-10-12 17:28:18 -03:00
Andreas Dangel
08bcf29190
[java] Fix #5253 : Support Boolean wrapper class for BooleanGetMethodName rule ( #5269 )
...
Merge pull request #5269 from Aryant-Tripathi:5253/feature/support-boolean-wrapper-in-get-method-rule
2024-10-12 18:04:14 +02:00
Andreas Dangel
85e0695ca6
Add @Aryant-Tripathi as a contributor
2024-10-12 18:02:07 +02:00
Andreas Dangel
47a59b1810
Add @phansys as a contributor
2024-10-12 18:01:45 +02:00
Andreas Dangel
e50234563e
[doc] Update release notes ( #5253 , #5269 )
2024-10-12 18:01:21 +02:00
Aryant Tripathi
9a123bff94
Support wrapper class in BooleanGetMethodName rule ( #5253 )\n \n - Updated XPath rule to include both primitive and wrapper class:\n (PrimitiveType[@Kind = 'boolean'] or ClassType[pmd-java:typeIs('java.lang.Boolean')])\n - Added test cases to ensure that methods returning are also flagged correctly.\n - Ensured the rule enforces consistent method naming for both primitive and wrapper types.
2024-10-11 22:37:01 +05:30
Aryant Tripathi
9077c6a71f
Support wrapper class in BooleanGetMethodName rule ( #5253 )\n \n - Updated XPath rule to include both primitive and wrapper class:\n (PrimitiveType[@Kind = 'boolean'] or ClassType[pmd-java:typeIs('java.lang.Boolean')])\n - Added test cases to ensure that methods returning are also flagged correctly.\n - Ensured the rule enforces consistent method naming for both primitive and wrapper types.
2024-10-11 22:34:07 +05:30
Aryant Tripathi
36f713b4c7
Merge branch 'pmd:main' into 5253/feature/support-boolean-wrapper-in-get-method-rule
2024-10-11 22:30:29 +05:30
Aryant Tripathi
ed6312e3ba
Support wrapper class in BooleanGetMethodName rule ( #5253 )\n \n - Updated XPath rule to include both primitive and wrapper class:\n (PrimitiveType[@Kind = 'boolean'] or ClassType[pmd-java:typeIs('java.lang.Boolean')])\n - Added test cases to ensure that methods returning are also flagged correctly.\n - Ensured the rule enforces consistent method naming for both primitive and wrapper types.
2024-10-11 22:29:42 +05:30
Andreas Dangel
8ac55e7ad7
Bump org.junit from 5.8.2 to 5.11.2 ( #5274 )
...
Also update junit-platform from 1.10.2 to 1.11.2
- Supersedes and closes #5260
- Supersedes and closes #5259
2024-10-11 16:42:42 +02:00
Andreas Dangel
6bd7a9db8e
[java] Fix NPE with empty pattern list ( #5264 )
...
Merge pull request #5264 from oowekyala:issue5261-npe-record-empty-components
2024-10-11 12:36:26 +02:00
Andreas Dangel
7655cfc63b
Add @gudzpoz as a contributor
2024-10-11 12:35:45 +02:00
Andreas Dangel
fbde9b967f
[doc] Update release notes ( #5261 , #5264 )
2024-10-11 12:35:19 +02:00
Andreas Dangel
7ae3155325
Add @thesunlover as a contributor
2024-10-11 11:57:39 +02:00
Andreas Dangel
c595fea83f
[apex] AvoidNonRestrictiveQueries: Fix regex for detecting LIMIT clause
...
Fixes #5270
2024-10-11 11:57:10 +02:00
Aryant Tripathi
8b2af2db8a
Support wrapper class in BooleanGetMethodName rule ( #5253 )
...
- Updated XPath rule to include both primitive and wrapper class:
(PrimitiveType[@Kind = 'boolean'] or ClassType[pmd-java:typeIs('java.lang.Boolean')])
- Added test cases to ensure that methods returning are also flagged correctly.
- Ensured the rule enforces consistent method naming for both primitive and wrapper types.
2024-10-10 20:44:06 +05:30
Aryant Tripathi
54dfabea9b
Support Boolean wrapper class for BooleanGetMethodName rule ( #5253 )
2024-10-09 10:00:02 +05:30
Andreas Dangel
07840cace2
[java] Rename rule SwitchStmtsShouldHaveDefault to NonExhaustiveSwitch
...
Fixes #4286
2024-10-08 17:33:32 +02:00
Andreas Dangel
ff1b9b2cdd
[java] SwitchStmtsShouldHaveDefault - test for multiple case constants
2024-10-08 17:15:18 +02:00
Clément Fournier
b724b4dd33
Fix DataflowPassTest
2024-10-07 18:18:32 +02:00
Clément Fournier
2c1a7f026e
Fix NPE with empty pattern list
2024-10-07 16:51:50 +02:00
Juan Martín Sotuyo Dodero
f68130eaf9
Annotate Antlr generated classes for PMD languages
2024-10-06 20:07:47 -03:00
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
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
Andreas Dangel
74f9d75897
[apex] Support convertCurrency() in SOQL/SOSL
...
Fixes #5228
2024-09-26 18:49:24 +02:00
Andreas Dangel
a2b5ae64a7
Bump build-tools from 27-SNAPSHOT to 27
2024-09-26 17:01:00 +02:00
dependabot[bot]
242b45a180
Bump webrick from 1.8.1 to 1.8.2 in /docs ( #5233 )
...
Bumps [webrick](https://github.com/ruby/webrick ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/ruby/webrick/releases )
- [Commits](https://github.com/ruby/webrick/compare/v1.8.1...v1.8.2 )
---
updated-dependencies:
- dependency-name: webrick
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 16:36:16 +02:00
dependabot[bot]
083e296c1e
Bump com.google.protobuf:protobuf-java from 3.25.3 to 3.25.5 ( #5232 )
...
Bumps [com.google.protobuf:protobuf-java](https://github.com/protocolbuffers/protobuf ) from 3.25.3 to 3.25.5.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl )
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.25.3...v3.25.5 )
---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 16:36:02 +02:00
Andreas Dangel
e4107ccaaa
[doc] README: Fix PMD logo
2024-09-26 16:26:26 +02:00
Andreas Dangel
028444453d
Change branch master to main ( #5211 )
...
Merge pull request #5211 from adangel:switch-to-main-branch
2024-09-26 15:54:55 +02:00
Andreas Dangel
29ed91795b
[doc] README: Fix build status badge
2024-09-26 15:54:08 +02:00
Andreas Dangel
4930e98706
[java] Fix #5046 - FPs in LocalVariableCouldBeFinal ( #5191 )
...
Merge pull request #5191 from oowekyala:issue5046-localVariableCouldBeFinal-fp-catch
2024-09-26 15:21:51 +02:00
Andreas Dangel
7b5ef10093
[doc] Update release notes ( #5046 , #5191 )
2024-09-26 15:20:28 +02:00
dependabot[bot]
1acaedc158
Bump com.google.code.gson:gson from 2.10.1 to 2.11.0 ( #5227 )
...
Bumps [com.google.code.gson:gson](https://github.com/google/gson ) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/google/gson/releases )
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/gson/compare/gson-parent-2.10.1...gson-parent-2.11.0 )
---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 12:10:04 +02:00
dependabot[bot]
b03a46fa8c
Bump rouge from 4.3.0 to 4.4.0 in the all-gems group across 1 directory ( #5226 )
...
Bumps the all-gems group with 1 update in the / directory: [rouge](https://github.com/rouge-ruby/rouge ).
Updates `rouge` from 4.3.0 to 4.4.0
- [Release notes](https://github.com/rouge-ruby/rouge/releases )
- [Changelog](https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rouge-ruby/rouge/compare/v4.3.0...v4.4.0 )
---
updated-dependencies:
- dependency-name: rouge
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-26 12:08:39 +02:00
Andreas Dangel
ae080786bd
[java] Fix #5068 : Class incorrectly identified as non-instantiatable ( #5224 )
...
Merge pull request #5224 from lukasgraef:issue5068
2024-09-22 14:53:33 +02:00
Andreas Dangel
687f7f89e4
[doc] Update release notes ( #5068 , #5224 )
2024-09-22 14:53:00 +02:00
Andreas Dangel
cd50d392d1
Add @SaschaRiemer as a contributor
2024-09-22 14:51:26 +02:00
Andreas Dangel
2bdeadb094
Add @lukasgraef as a contributor
2024-09-22 14:51:07 +02:00
lukasgraef
ddb1eb8dd8
[java] Fix #5067 : CloseResource: False positive for FileSystems.getDefault()
2024-09-21 16:03:36 +02:00
lukasgraef
8ea3f32f5f
[java] Fix #5068 : Class incorrectly identified as non-instantiatable
2024-09-21 14:12:12 +02:00
Juan Martín Sotuyo Dodero
2c48dc0644
Merge pull request #5223 from adangel/issue-5222-overridden-property-values
...
[core] Fix RuleReference / RuleSetWriter handling of properties
2024-09-20 11:45:24 -03:00
Andreas Dangel
df1a6797c6
[core] RuleSetWriter - write property value as attribute
2024-09-20 16:10:51 +02:00
Andreas Dangel
802decbbcf
[core] Fix RuleReference / RuleSetWriter handling of properties
...
RuleReference#getOverriddenPropertyDescriptors should behave
consistent to #getOverriddenPropertiesByPropertyDescriptor.
RuleSetWriter needs to make sure to
export only the values for properties
of rule references.
Fixes #5222
2024-09-20 15:14:06 +02:00
Andreas Dangel
9490dc0043
Add @imax-erik as a contributor
2024-09-19 17:27:19 +02:00
Andreas Dangel
909e86ca99
[apex] Verify nested subqueries work ( #5218 )
...
Fixes #5218
2024-09-19 17:27:13 +02:00
Andreas Dangel
36c1738135
[core] Sarif format: refer to schemastore.org ( #5202 )
...
Merge pull request #5202 from dschach:master
2024-09-19 17:19:53 +02:00
Andreas Dangel
d2d9ddff4a
[doc] Update release notes ( #5201 , #5202 )
2024-09-19 16:47:12 +02:00
Andreas Dangel
ac2e476e4c
[doc] Update Sarif Json Schema location
2024-09-19 16:47:12 +02:00
Andreas Dangel
6e65c2b3ab
Update @dschach as a contributor
2024-09-19 16:47:12 +02:00
David Schach
dd6e64a94d
fix(sarif): refer to existent $schema location
2024-09-19 16:46:08 +02:00
Andreas Dangel
dff06c9b4d
Update release notes
2024-09-19 11:22:43 +02:00
Juan Martín Sotuyo Dodero
cae71e7a5e
Be consistent in how we replace tokens
2024-09-17 17:09:29 -03:00
Juan Martín Sotuyo Dodero
029130a478
Use a custom annotation to ignore javacc generated code
2024-09-17 17:00:42 -03:00
Juan Martín Sotuyo Dodero
e18336a581
Merge pull request #5216 from pmd/dependabot/maven/com.github.siom79.japicmp-japicmp-maven-plugin-0.23.0
...
Bump com.github.siom79.japicmp:japicmp-maven-plugin from 0.20.0 to 0.23.0
2024-09-17 15:40:31 -03:00
dependabot[bot]
4ab926209e
Bump com.github.siom79.japicmp:japicmp-maven-plugin
...
Bumps [com.github.siom79.japicmp:japicmp-maven-plugin](https://github.com/siom79/japicmp ) from 0.20.0 to 0.23.0.
- [Release notes](https://github.com/siom79/japicmp/releases )
- [Changelog](https://github.com/siom79/japicmp/blob/master/release.py )
- [Commits](https://github.com/siom79/japicmp/compare/japicmp-base-0.20.0...japicmp-base-0.23.0 )
---
updated-dependencies:
- dependency-name: com.github.siom79.japicmp:japicmp-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 03:56:04 +00:00
Juan Martín Sotuyo Dodero
5f42a45bbe
Merge pull request #5212 from Monits/issue-5207
...
[java] Adjust signature matching in CheckSkipResultRule
2024-09-14 14:31:26 -03:00
Juan Martín Sotuyo Dodero
0253b9d3cd
Ignore generated-sources in coverage reports
...
- We don't test it directly, nor is it our job
- A bad grammar won't be processed, or fail in subtle ways only
detectable in specific tests on the AST (which is included)
2024-09-14 01:33:20 -03:00
Juan Martín Sotuyo Dodero
8a9aec831d
Update changelog, refs #5207
2024-09-14 00:35:38 -03:00
Juan Martín Sotuyo Dodero
59c88e9bb0
Adjust skip signature to fix #5207
2024-09-14 00:34:23 -03:00
Juan Martín Sotuyo Dodero
31efceae4d
Add failing test case for #5207
2024-09-14 00:34:10 -03:00
Andreas Dangel
0889e3d9dc
Fix release notes
2024-09-13 10:37:51 +02:00
Andreas Dangel
47f204cb19
Fix unit test
2024-09-13 10:37:37 +02:00
Andreas Dangel
91f17838d4
Change branch master to main
...
- Update documentation
- Update release scripts
- Update rule doc generation
GitHub Action is only triggered from "main" branch now.
2024-09-13 09:59:51 +02:00
Juan Martín Sotuyo Dodero
77b763e321
Merge pull request #5210 from adangel/issue-5059-core-xml-cdata
...
[core] Fix PMD's XMLRenderer to escape CDATA
2024-09-12 09:42:57 -03:00
Andreas Dangel
469b2a67ae
[doc] Added Codety to "Tools / Integrations" ( #5208 )
...
Merge pull request #5208 from random1223:patch-1
2024-09-12 10:31:13 +02:00
Andreas Dangel
b410199992
[doc] Update release notes ( #5208 )
2024-09-12 10:30:04 +02:00
Andreas Dangel
537148c90a
[doc] Reformatting tools.md and ci.md
2024-09-12 10:29:51 +02:00
Andreas Dangel
341e089a47
Add @random1223 as a contributor
2024-09-12 10:19:14 +02:00
Andreas Dangel
6d1fb3e4cd
[core] Fix PMD's XMLRenderer to escape CDATA
...
Processing errors might contain inside their details
message a CDATA section. This is output itself as
a CDATA section, but XMLStreamWriter#writeCData doesn't
escape it automatically - it just outputs the string
as is. This results in invalid XML.
Fixes #5059
2024-09-12 09:44:54 +02:00
Tony
aae54f4b33
Added Codety into the tool list.
...
Added Codety into the tool list, Codety Scanner uses PMD as Java code analyzer.
Demo:
GitHub issue review example: https://github.com/codetyio/codety-scanner/actions/runs/10786005219/job/29912188828
GitHub Pull Request automation example: https://github.com/codetyio/codety-scanner/pull/15#issuecomment-2320351633
2024-09-11 21:38:45 -07:00
Juan Martín Sotuyo Dodero
48c2e325dc
Remove NBSP
2024-09-11 19:01:33 -03:00
dependabot[bot]
efa875727d
Bump org.apache.maven.plugins:maven-deploy-plugin from 3.1.1 to 3.1.3 ( #5199 )
...
Bumps [org.apache.maven.plugins:maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin ) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases )
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.1.1...maven-deploy-plugin-3.1.3 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 20:39:54 +02:00
Andreas Dangel
04b3361dec
[java] Fix #5190 - NPE in type inference caused by null type ( #5192 )
...
Merge pull request #5192 from oowekyala:issue5190-npe-infer
2024-09-09 20:38:36 +02:00
Andreas Dangel
e6346ab6b9
Add @vedantchokshi as a contributor
2024-09-09 20:38:19 +02:00
Andreas Dangel
402eed5073
[doc] Update release notes ( #5190 , #5192 )
2024-09-09 20:12:12 +02:00
Juan Martín Sotuyo Dodero
6fddf06b49
Merge pull request #5195 from adangel/apex/trigger-fixes-5138
...
[apex] Fix various FNs when using triggers
2024-09-06 18:08:48 -03:00
Andreas Dangel
2cfbac30b1
[doc] Update release notes ( #5138 )
2024-09-06 20:09:53 +02:00
Andreas Dangel
5f1b13cadd
[apex] Verify StdCyclomaticComplexity with triggers
2024-09-06 19:51:52 +02:00
Andreas Dangel
1038eaa283
[apex] Verify EmptyIfStmt and EmptyStatementBlock with triggers
2024-09-06 19:43:07 +02:00
Andreas Dangel
fe0d05d8d5
[apex] Fix parsing of method decl. inside triggers
2024-09-06 18:42:52 +02:00
Andreas Dangel
97fe106724
[apex] Verify OperationWithLimitsInLoop for triggers
2024-09-06 18:42:22 +02:00
Andreas Dangel
9810bfc3cc
[apex] Verify CognitiveComplexity for triggers
2024-09-06 18:42:03 +02:00
Andreas Dangel
6b0a2a1ffa
[apex] Fix ApexCRUDViolation for triggers
2024-09-06 18:41:25 +02:00
Andreas Dangel
92bab6a38f
[apex] Fix AvoidDeeplyNestedIfStmts for triggers
2024-09-06 18:40:43 +02:00
Clément Fournier
9ecc8897be
Fix #5190 - NPE caused by null type
2024-09-04 13:39:41 +02:00
Clément Fournier
68820a4c77
Fix #5046 - FPs in LocalVariableCouldBeFinal
...
This adds FNs to UnusedAssignment
2024-09-03 11:35:33 +02:00
Clément Fournier
9d925b513d
Add test case for #5190
2024-09-03 11:16:56 +02:00
Juan Martín Sotuyo Dodero
7ba88e9eba
Merge pull request #5188 from adangel/bump-apex-parser
...
[apex] Use new apex-parser 4.2.0
2024-09-02 15:41:51 -03:00
Andreas Dangel
07ae01b4ea
[apex] Use new apex-parser 4.2.0
...
Verify that #5163 and #5182 are fixed.
2024-09-02 19:42:20 +02:00
Juan Martín Sotuyo Dodero
c46fe6e6aa
Merge pull request #5187 from pmd/dependabot/maven/org.apache.maven.plugins-maven-install-plugin-3.1.3
...
Bump org.apache.maven.plugins:maven-install-plugin from 3.1.1 to 3.1.3
2024-09-02 11:27:06 -03:00
dependabot[bot]
eee22e0c17
Bump org.apache.maven.plugins:maven-install-plugin from 3.1.1 to 3.1.3
...
Bumps [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin ) from 3.1.1 to 3.1.3.
- [Release notes](https://github.com/apache/maven-install-plugin/releases )
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.1.1...maven-install-plugin-3.1.3 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-install-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 03:08:01 +00:00
Juan Martín Sotuyo Dodero
aa9a38de0e
Merge pull request #5186 from oowekyala/implicit-class-cleanup
...
[java] Cleanup things about implicit classes
2024-09-01 17:49:57 -03:00
Clément Fournier
fe341cf400
Cleanup things with implicit classes
2024-09-01 21:35:50 +02:00
Andreas Dangel
73d3c59205
Bump checkstyle from 10.14.0 to 10.18.1 ( #5185 )
...
Merge pull request #5185 from adangel/bump-checkstyle-10.18.1
2024-08-30 18:31:42 +02:00
Andreas Dangel
88596a2f5a
Bump build-tools from 26 to 27-SNAPSHOT
2024-08-30 17:42:08 +02:00
Andreas Dangel
025356dadc
Bump checkstyle from 10.14.0 to 10.18.1
...
Also bump maven-checkstyle-plugin from 3.4.0 to 3.5.0
2024-08-30 17:13:21 +02:00
Andreas Dangel
52c66e4dad
Use PMD 7.5.0 for checks
2024-08-30 11:21:01 +02:00
Andreas Dangel
2ed25964b8
[release] Prepare next development version [skip ci]
2024-08-30 10:52:17 +02:00
Andreas Dangel
74ada426af
[release] prepare release pmd_releases/7.5.0
2024-08-30 10:31:09 +02:00
Andreas Dangel
453f6690b0
Prepare pmd release 7.5.0
2024-08-30 10:10:53 +02:00
Andreas Dangel
bff14449b2
[doc] Update pmd_sidebar.yml
2024-08-29 18:08:08 +02:00
Andreas Dangel
8b44d2f374
[javascript] New rule AvoidConsoleStatements ( #5126 )
...
Merge pull request #5126 from adangel:js-rule-avoidconsolestatements
2024-08-29 17:42:24 +02:00
Andreas Dangel
537dab95e4
[java] Support Java 23 ( #5112 )
...
Merge pull request #5112 from issue-5062-support-java-23
2024-08-29 17:39:04 +02:00
Andreas Dangel
819b6bc5fb
[java] Fix #5084 - crash in LUB with raw types ( #5179 )
...
Merge pull request #5179 from oowekyala:issue5084-lub-crash
2024-08-29 17:32:49 +02:00
Andreas Dangel
ada303de83
[doc] Document new java language prop xStrictTypeRes
2024-08-29 17:30:45 +02:00
Andreas Dangel
a44a5ca4ef
[doc] Update release notes ( #5048 )
2024-08-29 16:58:57 +02:00
Andreas Dangel
c6ef54326c
Add @AB-xdev as a contributor
2024-08-29 16:58:42 +02:00
Andreas Dangel
488807ff90
[java] Add testcase for #5048
2024-08-29 16:58:16 +02:00
Andreas Dangel
20b667d7e4
Merge branch 'master' into pr-5179
2024-08-29 16:55:38 +02:00
Andreas Dangel
773f792dd6
[java] Fix #5162 SingularField FP with synchronized block ( #5178 )
...
Merge pull request #5178 from oowekyala:issue5162-singularfield-synchronized
2024-08-29 13:05:50 +02:00
Andreas Dangel
d7f564782a
[doc] Update release notes ( #5162 , #5178 )
2024-08-29 13:04:41 +02:00
Andreas Dangel
610f937bc4
[java] Update AvoidSynchronizedAtMethodLevel message to mention ReentrantLock, new rule AvoidSynchronizedStatement ( #5175 )
...
Merge pull request #5175 from chonton:ReentrantLock
2024-08-29 12:50:13 +02:00
Andreas Dangel
3c3be3c81d
[doc] Update release notes ( #5175 )
2024-08-29 12:48:14 +02:00
Andreas Dangel
a4cac6b74f
Update @chonton as a contributor
2024-08-29 12:46:30 +02:00
Andreas Dangel
93db59bea5
Apply suggestions from code review
2024-08-29 12:41:02 +02:00
dependabot[bot]
8f74060ff1
Bump net.sf.saxon:Saxon-HE from 12.4 to 12.5 ( #5180 )
...
Bumps net.sf.saxon:Saxon-HE from 12.4 to 12.5.
---
updated-dependencies:
- dependency-name: net.sf.saxon:Saxon-HE
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-29 10:23:42 +02:00
Andreas Dangel
879240f97d
[plsql] Improve merge statement (order of merge insert/update flexible, allow prefixes in column names) ( #5125 )
...
Merge pull request #5125 from duursma:merge-fix-3
2024-08-29 10:15:36 +02:00
Andreas Dangel
d4779a135e
[doc] Update release notes ( #5125 )
2024-08-29 10:14:53 +02:00
Andreas Dangel
60a29f08a5
Merge branch 'master' into pr-5125
2024-08-29 10:10:35 +02:00
Andreas Dangel
753dcca877
[doc] Update contributors
...
- Add @jbisotti as a contributor
- Add @soloturn as a contributor
- Add @schosin as a contributor
2024-08-29 09:58:16 +02:00
Andreas Dangel
af1929318b
[doc] Update release notes
2024-08-29 09:30:40 +02:00
Andreas Dangel
40688ae06d
[java] Revamp GuardLogStatementRule to allow var, field and array accesses ( #5169 )
...
Merge pull request #5169 from Monits:issue-5151
2024-08-29 09:25:59 +02:00
Clément Fournier
672fd635c9
Improve error handling of semantic exceptions
2024-08-28 13:23:43 +02:00
Andreas Dangel
93bfe7df0f
Merge branch 'master' into issue-5062-support-java-23
2024-08-27 20:09:09 +02:00
Andreas Dangel
d7d8c9cb29
[java] Rename ASTImportDeclaration#isModuleImport
2024-08-27 19:58:07 +02:00
Andreas Dangel
cd33eb621e
Update gems
...
Fixes https://github.com/pmd/pmd/security/dependabot/64
Fixes CVE-2024-43380
Fixes https://github.com/advisories/GHSA-2m96-52r3-2f3g
Fixes https://github.com/pmd/pmd/security/dependabot/65
Fixes https://github.com/pmd/pmd/security/dependabot/66
Fixes CVE-2024-43398
Fixes https://github.com/advisories/GHSA-vmwr-mc7x-5vc3
2024-08-27 19:16:38 +02:00
Andreas Dangel
77bf2b1616
[doc] Update release notes ( #5167 )
2024-08-27 19:13:56 +02:00
Clément Fournier
9c0c7f28e2
Throw typeres failures instead of catching them
...
They will be surfaced as processing errors
2024-08-26 13:21:41 +02:00
Clément Fournier
e597e21eda
Update pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/SemanticErrorReporter.java
2024-08-25 22:07:43 +02:00
Clément Fournier
60e0109bbb
Update pmd-java/src/test/kotlin/net/sourceforge/pmd/lang/java/types/LubTest.kt
2024-08-25 19:48:40 +02:00
Clément Fournier
d7a15d1854
Report typeres errors more transparently
2024-08-25 19:46:01 +02:00
Clément Fournier
08b68d7dd0
Fix #5084 - crash in LUB with raw types
2024-08-25 19:28:16 +02:00
Juan Martín Sotuyo Dodero
2f118d0d46
Update changelog, refs #4731
2024-08-24 23:46:33 -03:00
Juan Martín Sotuyo Dodero
91bb6f0b34
Improve docs further
2024-08-24 23:44:22 -03:00
Clément Fournier
d6736903f0
Fix #5162 SingularField FP with synchronized block
2024-08-25 00:46:45 +02:00
Juan Martín Sotuyo Dodero
45618c0e13
Merge branch 'master' into issue-5151
2024-08-24 18:20:38 -03:00
Juan Martín Sotuyo Dodero
6f505b965c
Merge branch 'pr-5177'
2024-08-24 18:19:03 -03:00
Juan Martín Sotuyo Dodero
be47aab265
Update changelog, refs #5167
2024-08-24 18:18:38 -03:00
Clément Fournier
da864aeccd
Fix #5167 - issue with type projection
2024-08-24 16:48:37 +02:00
Juan Martín Sotuyo Dodero
c9c0558e2b
Suppress PMD warning
...
- "Simplifying" the return here would simply make it harder to read
2024-08-24 01:02:06 -03:00
Juan Martín Sotuyo Dodero
1c274fdda0
Update changelog, refs #3602
2024-08-24 00:51:15 -03:00
Juan Martín Sotuyo Dodero
980eaacd13
Unify compile-time constant detection
...
- Improving the constant folder allows other rules to work better
- Fixes #3602
- Curiously, InefficientStringBuffering has been broken since PMD 7.0.0
(regression introduced in #3113 )
2024-08-24 00:48:53 -03:00
Juan Martín Sotuyo Dodero
8ecc21c06f
Merge branch 'master' into issue-5151
2024-08-24 00:14:55 -03:00
Juan Martín Sotuyo Dodero
96f60e9b0e
Handle computed array access keys
...
- Tidy up the code, the fact the `getLogLevelName` was cheating and
returning null when it considered a log to be safe was making the
code harder to think about
2024-08-24 00:11:43 -03:00
Juan Martín Sotuyo Dodero
dcee6e6900
Merge branch 'pr-5176'
2024-08-23 14:36:36 -03:00
Juan Martín Sotuyo Dodero
218222524f
Update changelog, refs #5145
2024-08-23 14:36:12 -03:00
Clément Fournier
43112078a5
Fix issue #5145 - problem with inference of conditional exprs
...
Also finally fixes the bug that we swept under the rug in 24c1093b.
2024-08-23 18:23:43 +02:00
Charles Honton
8a39917fa2
added unit test
2024-08-22 13:54:17 -07:00
Charles Honton
3dd47a3b94
update AvoidSynchronizedAtMethodLevel message to mention ReentrantLock
...
see https://openjdk.org/jeps/8337395
2024-08-22 08:20:06 -07:00
Juan Martín Sotuyo Dodero
4033315c7d
Properly handle all qualifiable expressions
...
- Up date the documentation to better show what is being flagged
2024-08-21 23:40:04 -03:00
Juan Martín Sotuyo Dodero
07f96e79ad
Merge pull request #5171 from pmd/dependabot/maven/net.bytebuddy-byte-buddy-agent-1.14.19
...
Bump net.bytebuddy:byte-buddy-agent from 1.14.12 to 1.14.19
2024-08-19 01:47:04 -03:00
Juan Martín Sotuyo Dodero
90ebac893f
Fix whitespace
2024-08-19 01:45:37 -03:00
dependabot[bot]
42468d769a
Bump net.bytebuddy:byte-buddy-agent from 1.14.12 to 1.14.19
...
Bumps [net.bytebuddy:byte-buddy-agent](https://github.com/raphw/byte-buddy ) from 1.14.12 to 1.14.19.
- [Release notes](https://github.com/raphw/byte-buddy/releases )
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md )
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.14.12...byte-buddy-1.14.19 )
---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy-agent
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 03:50:15 +00:00
Juan Martín Sotuyo Dodero
15b006a52f
Update changelog, refs #5153
2024-08-18 19:41:56 -03:00
Juan Martín Sotuyo Dodero
9ef927067e
Fix tests regarding array accesses
2024-08-18 19:41:06 -03:00
Juan Martín Sotuyo Dodero
4352b53aec
Add tests regarding array accesses
2024-08-18 19:40:51 -03:00
Juan Martín Sotuyo Dodero
33e7e71bfa
Update changelog, refs #5152
2024-08-18 19:30:34 -03:00
Juan Martín Sotuyo Dodero
abcc20e655
Fix #5152
2024-08-18 19:29:48 -03:00
Juan Martín Sotuyo Dodero
176fae39d2
Add test for #5152
2024-08-18 19:29:39 -03:00
Juan Martín Sotuyo Dodero
0837be674e
Update changelog, refs #5151
2024-08-18 19:24:46 -03:00
Juan Martín Sotuyo Dodero
792d91e062
Fix GuardLogStatementRule for field accesses
2024-08-18 19:23:25 -03:00
Juan Martín Sotuyo Dodero
ca34c3edd3
Add minimal failing case for #5151
2024-08-18 19:22:09 -03:00
dependabot[bot]
2192256b5a
Bump jekyll and github-pages ( #5165 )
...
Bumps the all-gems group with 1 update in the /docs directory: [jekyll](https://github.com/jekyll/jekyll ).
Updates `jekyll` from 3.9.5 to 3.10.0
- [Release notes](https://github.com/jekyll/jekyll/releases )
- [Changelog](https://github.com/jekyll/jekyll/blob/master/History.markdown )
- [Commits](https://github.com/jekyll/jekyll/compare/v3.9.5...v3.10.0 )
Updates `github-pages` from 231 to 232
- [Release notes](https://github.com/github/pages-gem/releases )
- [Commits](https://github.com/github/pages-gem/compare/v231...v232 )
---
updated-dependencies:
- dependency-name: jekyll
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-gems
- dependency-name: github-pages
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-13 12:54:41 +02:00
dependabot[bot]
623de394ec
Bump org.apache.maven.plugins:maven-site-plugin from 4.0.0-M13 to 4.0.0-M16 ( #5149 )
...
Bumps [org.apache.maven.plugins:maven-site-plugin](https://github.com/apache/maven-site-plugin ) from 4.0.0-M13 to 4.0.0-M16.
- [Commits](https://github.com/apache/maven-site-plugin/compare/maven-site-plugin-4.0.0-M13...maven-site-plugin-4.0.0-M16 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-site-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-13 12:53:15 +02:00
Andreas Dangel
b51be09795
[core] Cache moduleName to URLs in ClasspathClassLoader
2024-08-13 11:46:31 +01:00
Andreas Dangel
13b8556bf6
Fixup from review ( #5112 )
...
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2024-08-13 11:22:43 +01:00
Juan Martín Sotuyo Dodero
aa64ec3894
Merge pull request #5164 from pmd/dependabot/maven/org.apache.maven.plugins-maven-dependency-plugin-3.7.1
...
Bump org.apache.maven.plugins:maven-dependency-plugin from 3.6.1 to 3.7.1
2024-08-12 10:28:54 -03:00
dependabot[bot]
cc5fc196c5
Bump org.apache.maven.plugins:maven-dependency-plugin
...
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.6.1 to 3.7.1.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases )
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.6.1...maven-dependency-plugin-3.7.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 03:37:24 +00:00
Juan Martín Sotuyo Dodero
3b105ca70b
Merge pull request #5161 from pmd/dependabot/bundler/all-gems-d2126d6a76
...
Bump danger from 9.4.3 to 9.5.0 in the all-gems group across 1 directory
2024-08-05 06:21:42 -03:00
Juan Martín Sotuyo Dodero
913c44b3e4
Merge pull request #5160 from pmd/dependabot/maven/org.pcollections-pcollections-4.0.2
...
Bump org.pcollections:pcollections from 3.2.0 to 4.0.2
2024-08-05 06:20:41 -03:00
dependabot[bot]
c5de5d67a0
Bump danger from 9.4.3 to 9.5.0 in the all-gems group across 1 directory
...
Bumps the all-gems group with 1 update in the / directory: [danger](https://github.com/danger/danger ).
Updates `danger` from 9.4.3 to 9.5.0
- [Release notes](https://github.com/danger/danger/releases )
- [Changelog](https://github.com/danger/danger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/danger/danger/commits )
---
updated-dependencies:
- dependency-name: danger
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all-gems
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 03:57:58 +00:00
dependabot[bot]
49cfe186ae
Bump org.pcollections:pcollections from 3.2.0 to 4.0.2
...
Bumps [org.pcollections:pcollections](https://github.com/hrldcpr/pcollections ) from 3.2.0 to 4.0.2.
- [Changelog](https://github.com/hrldcpr/pcollections/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hrldcpr/pcollections/compare/v3.2.0...v4.0.2 )
---
updated-dependencies:
- dependency-name: org.pcollections:pcollections
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 03:18:42 +00:00
Andreas Dangel
21d499d5ef
[doc] Release Notes for Java 23 Support ( #5062 )
...
Also add some @since tags to new API methods
2024-08-01 11:53:04 +02:00
Andreas Dangel
17a4a487a6
[java] CommentRequired - add test for markdown comments
2024-08-01 11:53:04 +02:00
Andreas Dangel
c53462b3b6
Improve RuleTst performance
...
Reuse the classloader for auxclasspath
instead of creating a new one for every
single rule test case.
2024-08-01 11:46:45 +02:00
Andreas Dangel
d171bcbdb3
[java] Default Imports for simple compilation unit
...
Import by default module java.base
and java.io.IO.*
2024-08-01 11:46:45 +02:00
Andreas Dangel
cbc475ede3
[java] Add ImplicitClassDeclaration
...
JEP 477: Implicitly Declared Classes and Instance Main Methods
(Third Preview)
2024-08-01 11:46:41 +02:00
Andreas Dangel
55d57acc63
[java] Remove String Template Preview feature for Java 23
2024-08-01 11:44:46 +02:00
Andreas Dangel
0823c88cba
[java] Support primitive types in instanceof (Java 23 Preview)
...
Allow to use primitive types in patterns, instanceof, and
switch. This is a Java 23 Preview feature.
See JEP 455.
2024-08-01 11:44:45 +02:00
Andreas Dangel
47470b5d0c
[java] Support module import declarations (JEP 476)
...
- new JModuleSymbol
- UnnecessaryImportRule also supports module imports
- module-info.class can be loaded by ClasspathClassLoader
- Support annotations on modules
- Verify that exported packages are loaded
2024-08-01 11:44:37 +02:00
Andreas Dangel
176e522721
[java] UnnecessaryImportRule: Support Markdown comments
2024-08-01 10:28:31 +02:00
Andreas Dangel
7a6662fcda
[java] Support "Markdown documentation comments" (JEP 467)
2024-08-01 10:28:31 +02:00
Andreas Dangel
bb40b754a2
[java] Update impl for "Flexible Constructor Bodies"
2024-08-01 10:28:30 +02:00
Andreas Dangel
20750f9591
[java] Update implementation for "Implicitly Declared Classes...
...
... and Instance Main Methods" (JEP 477)
- language feature is renamed
- update symbol table resolver
2024-08-01 10:28:30 +02:00
Andreas Dangel
a7eab294b4
[java] Make UNNAMED_VARIABLES_AND_PATTERNS a regular language feature
...
This is now possible, since java 21 preview is gone.
2024-08-01 10:28:30 +02:00
Andreas Dangel
10681cd6a8
[java] Remove version 21-preview
2024-08-01 10:28:29 +02:00
Andreas Dangel
f13e886757
[java] Allow to build PMD with Java 23
2024-08-01 10:28:29 +02:00
Andreas Dangel
2a04d9858a
[java] Bump asm from 9.6 to 9.7
2024-08-01 10:15:09 +02:00
Andreas Dangel
568314bb89
[java] Add new language version 23 and 23-preview
2024-08-01 10:15:09 +02:00
Juan Martín Sotuyo Dodero
10add3f0f7
Merge pull request #5148 from pmd/dependabot/maven/org.apache.commons-commons-text-1.12.0
...
Bump org.apache.commons:commons-text from 1.11.0 to 1.12.0
2024-07-29 09:08:18 -03:00
dependabot[bot]
65b6d5e796
Bump org.apache.commons:commons-text from 1.11.0 to 1.12.0
...
Bumps org.apache.commons:commons-text from 1.11.0 to 1.12.0.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 03:54:56 +00:00
Juan Martín Sotuyo Dodero
9ea10ecbe3
Merge pull request #5146 from adangel/issue-5139-apex-operationwithhighcostinloop
...
[apex] Fix parsing of triggers with declarations
2024-07-27 16:25:03 -03:00
Andreas Dangel
3735fd145b
[apex] Fix parsing of triggers with declarations
...
Only the grandchildren of a trigger block were ending up in the tree,
but the direct children of triggerBlock were missing, e.g.
ForLoopStatement. This caused OperationWithHighCostInLoop to not
find the loop anymore in triggers.
This will probably fix other false negatives in triggers in
other rules as well.
Fixes #5139
2024-07-27 20:17:25 +02:00
dependabot[bot]
d2fbe14afa
Bump org.codehaus.mojo:versions-maven-plugin from 2.16.2 to 2.17.1 ( #5144 )
...
Bumps [org.codehaus.mojo:versions-maven-plugin](https://github.com/mojohaus/versions ) from 2.16.2 to 2.17.1.
- [Release notes](https://github.com/mojohaus/versions/releases )
- [Changelog](https://github.com/mojohaus/versions/blob/master/ReleaseNotes.md )
- [Commits](https://github.com/mojohaus/versions/compare/2.16.2...2.17.1 )
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:versions-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-26 18:06:14 +02:00
dependabot[bot]
b7d9eaaa97
Bump org.apache.maven.plugins:maven-compiler-plugin from 3.12.1 to 3.13.0 ( #5142 )
...
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin ) from 3.12.1 to 3.13.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases )
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.12.1...maven-compiler-plugin-3.13.0 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-26 17:46:08 +02:00
dependabot[bot]
dacc8b114b
Bump org.apache.maven.plugins:maven-checkstyle-plugin from 3.3.1 to 3.4.0 ( #5141 )
...
Bumps [org.apache.maven.plugins:maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin ) from 3.3.1 to 3.4.0.
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.3.1...maven-checkstyle-plugin-3.4.0 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-26 17:36:58 +02:00
Juan Martín Sotuyo Dodero
98e20a0feb
Merge pull request #5135 from adangel/issue-5132-plsql-tomkytesdespair
...
[plsql] Fix TomKytesDespair for more complex exception handlers
2024-07-26 08:11:15 -03:00
Juan Martín Sotuyo Dodero
590ae705c3
Merge pull request #5100 from adangel/enable-dependabot
...
Enable Dependabot
2024-07-26 08:10:15 -03:00
Juan Martín Sotuyo Dodero
cb7f923c66
Merge pull request #5136 from adangel/deprecate-parser-impl
...
Deprecate generated parser implementations
2024-07-26 08:09:34 -03:00
Juan Martín Sotuyo Dodero
f7b5398a04
Update pmd-javascript/src/main/resources/category/ecmascript/performance.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-26 08:08:12 -03:00
Andreas Dangel
f1f376d248
Deprecate generated parser implementations
2024-07-26 12:02:31 +02:00
Andreas Dangel
44d25c41e1
[plsql] Fix TomKytesDespair for more complex exception handlers
...
Fixes #5132
2024-07-26 12:01:21 +02:00
Andreas Dangel
dbe5624a9e
[javascript] Simplify AvoidConsoleStatements
...
Now any usage of console is flagged.
2024-07-26 11:55:02 +02:00
Andreas Dangel
8b1da5d651
Add @dschach as a contributor
2024-07-26 11:53:27 +02:00
Andreas Dangel
838705c8da
[javascript] New rule AvoidConsoleStatements
...
Fixes #5105
2024-07-26 11:51:44 +02:00
Andreas Dangel
210e3e59ae
Enable dependabot
...
- dependabot runs weekly
- github-action and bundler are creating
a single PR for updating
- also integrate automatic release notes
generation
2024-07-26 11:48:20 +02:00
Andreas Dangel
39750cf158
Use PMD 7.4.0 for checks
2024-07-26 11:08:05 +02:00
Andreas Dangel
ee800d326f
[release] Prepare next development version [skip ci]
2024-07-26 10:11:46 +02:00
Andreas Dangel
db5fa2dbce
[release] prepare release pmd_releases/7.4.0
2024-07-26 09:03:38 +02:00
Andreas Dangel
5992a2d53f
Prepare pmd release 7.4.0
2024-07-26 08:43:05 +02:00
Arjen Duursma
aea5db9b50
Make parsing more flexible and avoid breaking API change build error.
2024-07-25 22:27:50 +02:00
Juan Martín Sotuyo Dodero
727279977d
Merge pull request #5134 from adangel/issue-5133-plsql-parse-error
...
[plsql] Fix ScalarDataTypeName and CollectionTypeName parsing
2024-07-25 14:36:16 -03:00
Juan Martín Sotuyo Dodero
3ffb3ec210
Merge pull request #5137 from adangel/issue-5106-AccessorClassGeneration
...
[java] AccessorClassGeneration - handle default ctors
2024-07-25 12:49:27 -03:00
Andreas Dangel
c194d3ed0d
Add @rbri as a contributor
2024-07-25 13:06:14 +02:00
Andreas Dangel
41393d4637
[java] AccessorClassGeneration - handle default ctors
...
Fixes #5106
2024-07-25 13:05:47 +02:00
Andreas Dangel
6a242f019d
[plsql] Fix CollectionTypeName parsing
2024-07-25 11:42:22 +02:00
Andreas Dangel
87b0c4f851
[plsql] Fix ScalarDataTypeName parsing
...
Fixes #5133
2024-07-25 11:17:49 +02:00
Andreas Dangel
5d39923c2f
[core] Don't log warning about skipLexicalErrors twice ( #5102 )
...
Merge pull request #5102 from adangel:issue-5091-skipLexicalErrors
2024-07-25 10:28:22 +02:00
Andreas Dangel
a3f9d4af59
[java] Simplify UnusedPrivateMethodRule
...
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2024-07-25 09:57:20 +02:00
Andreas Dangel
1464cbca38
[java] Fix UnusedPrivateMethod for @lombok.Builder.ObtainVia ( #5111 )
...
Merge pull request #5111 from kdebski85:issue-5110-lombok-obtain-via
2024-07-23 20:11:23 +02:00
Andreas Dangel
597f3f37dc
[doc] Update release notes ( #5110 , #5111 )
2024-07-23 20:09:50 +02:00
Andreas Dangel
e8bfc0d01c
[java] UnusedPrivateMethodRule - fixups from PR review
2024-07-23 20:05:11 +02:00
Andreas Dangel
607684c6cb
Update gems
...
Fixes https://github.com/pmd/pmd/security/dependabot/58
Fixes https://github.com/pmd/pmd/security/dependabot/59
Fixes CVE-2024-39908
Fixes https://github.com/advisories/GHSA-4xqq-m2hx-25v8
2024-07-23 19:36:53 +02:00
Krzysztof Debski
57e8954556
[java] Simplify processing of MethodSource annotation
2024-07-22 17:33:45 +02:00
Arjen Duursma
f6ad0d4b9b
Make order of merge insert/update flexible. Allow prfixes in merge insert column names.
2024-07-22 15:01:54 +02:00
Krzysztof Debski
121cdba3a4
[java] Make 'ASTAnnotation#flatValue' method static
2024-07-22 13:27:04 +02:00
Krzysztof Debski
9006dd1a89
[java] Generalize annotation handling in UnusedPrivateMethodRule
2024-07-22 13:22:24 +02:00
Juan Martín Sotuyo Dodero
b8a5793c26
Merge pull request #5127 from adangel/issue-2367-js-rename-inaccuratenumericliteral
...
[javascript] Rename rule InaccurateNumericLiteral
2024-07-19 12:16:51 -03:00
Andreas Dangel
bb08255aab
[plsql] Fixed issue with missing optional table alias in MERGE usage ( #5121 )
...
Merge pull request #5121 from duursma:merge-fix
2024-07-19 16:23:36 +02:00
Andreas Dangel
f689822d19
[doc] Update release notes ( #5121 )
...
Refs #5086
2024-07-19 16:22:30 +02:00
Andreas Dangel
5fce65dbe1
[javascript] Rename rule InaccurateNumericLiteral
...
Fixes #2367
2024-07-19 15:54:28 +02:00
Andreas Dangel
01755015b7
Merge remote-tracking branch 'origin/master'
2024-07-19 15:17:39 +02:00
Juan Martín Sotuyo Dodero
edab792478
Merge pull request #5124 from adangel/issue-4716-js-inaccuratenumber
...
[javascript] Correctly determine double inaccuracy
2024-07-19 10:14:40 -03:00
Andreas Dangel
ba6f55073c
Bump maven-pmd-plugin from 3.23.0 to 3.24.0
2024-07-19 14:49:53 +02:00
Andreas Dangel
4d2034ef0f
[java] FP for UnusedPrivateMethod with Jakarta @PostConstruct/PreDestroy annotations ( #5118 )
...
Merge pull request #5118 from kdebski85:issue-5117-unused-private-method-jakarta
2024-07-19 14:48:03 +02:00
Andreas Dangel
f128bd7162
[doc] Update release notes ( #5118 , #5117 )
2024-07-19 14:46:11 +02:00
Andreas Dangel
98710abade
[java] Exclude constructor with lombok.Builder for MissingStaticMethodInNonInstantiatableClass ( #5109 )
...
Merge pull request #5109 from kdebski85:issue-5108-lombok-builder
2024-07-19 14:40:50 +02:00
Andreas Dangel
8462c75077
[doc] Update release notes ( #5109 , #1488 )
2024-07-19 14:39:17 +02:00
Andreas Dangel
abe6a5fe4b
Add @tomasvts as a contributor
2024-07-19 14:05:39 +02:00
Andreas Dangel
b176ca72c1
[javascript] Correctly determine double inaccuracy
...
Fixes #4716
2024-07-19 14:05:32 +02:00
Juan Martín Sotuyo Dodero
18c1ffc165
Merge pull request #5123 from adangel/bump-rhino-1.7.15
...
[javascript] Bump rhino from 1.7.14 to 1.7.15
2024-07-19 08:05:12 -03:00
Juan Martín Sotuyo Dodero
f28a3e6922
Merge pull request #5122 from adangel/issue-5120-cli-designer
...
[cli] Fix pmd.bat for Windows when starting designer with JAVAFX_HOME
2024-07-19 08:00:51 -03:00
Andreas Dangel
533979d60e
[javascript] Bump rhino from 1.7.14 to 1.7.15
2024-07-19 11:31:34 +02:00
Andreas Dangel
8c7a5d0664
[cli] Fix pmd.bat for Windows when starting designer with JAVAFX_HOME
...
Fixes #5120
2024-07-19 10:17:27 +02:00
Arjen Duursma
0d6bb74756
Redo fix for merge without alias in table specification
2024-07-18 18:53:25 +02:00
Andreas Dangel
14238ee93e
[doc] Fix release notes
2024-07-18 16:00:48 +02:00
Andreas Dangel
404a2ea77f
[doc] Fix release notes
2024-07-18 12:37:32 +02:00
Andreas Dangel
d21d8a6286
Fix tests after merge
2024-07-18 12:17:05 +02:00
Andreas Dangel
669f883a99
[apex] Consider VariableDeclarationGroup in ApexTreeBuilder ( #5099 )
...
Merge pull request #5099 from adangel:apex-issue-5094
2024-07-18 12:10:21 +02:00
Andreas Dangel
6e8ce46f6c
[apex] AvoidNonRestrictiveQueries: use new AnnotationParameter.hasName
2024-07-18 12:07:37 +02:00
Andreas Dangel
090bd1208b
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue: case-insensitive check ( #5098 )
...
Merge pull request #5098 from adangel:apex-issue-5095
2024-07-18 12:06:20 +02:00
Andreas Dangel
cf4df4bf13
[apex] New Rule: AvoidNonRestrictiveQueries ( #5089 )
...
Merge pull request #5089 from adangel:apex-issue-635-avoid-non-restrictive-queries
2024-07-18 12:02:21 +02:00
Andreas Dangel
ec92b39cf4
[apex] AvoidNonRestrictiveQueries fix FP with multiline queries
2024-07-18 11:47:31 +02:00
Andreas Dangel
2bfde98a53
[apex] Added Inner Classes to Apex Class Naming Conventions Rule ( #5048 )
...
Merge pull request #5048 from sgnl-labs:discreet-inner-class-name-check
2024-07-18 11:38:24 +02:00
Andreas Dangel
4ec05d0aa4
[doc] Update release notes ( #5048 , #4800 )
2024-07-18 11:29:41 +02:00
Andreas Dangel
96b1e890e1
Add @justinstroudbah as a contributor
2024-07-18 11:26:06 +02:00
Andreas Dangel
bd4d8970b6
Fix tests after merge
2024-07-18 10:43:46 +02:00
Andreas Dangel
83d6a264f1
Merge branch 'master' into pr-5048
2024-07-18 10:29:42 +02:00
Andreas Dangel
f6cb537238
[apex] Add ASTUserClassOrInterface.isNested()
2024-07-18 10:14:43 +02:00
Andreas Dangel
909603d7e0
[apex] ClassNamingConventions - Improve tests for inner interfaces
...
Refs #5048
2024-07-18 10:04:03 +02:00
Andreas Dangel
7023ea3d27
Fix checkstyle
2024-07-18 10:03:13 +02:00
Krzysztof Debski
cb1d1963a4
[java] Ignore unused private methods referenced by any field annotation attribute
2024-07-17 10:18:31 +02:00
Krzysztof Debski
9d0719201d
[java] Do not report UnusedPrivateMethod for method annotated with @jakarta.annotation.PostConstruct/PreDestroy
2024-07-15 16:31:58 +02:00
sgnl-labs
f0a5930a40
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:37:01 -07:00
sgnl-labs
5f669fca31
Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:44 -07:00
sgnl-labs
1be5242c8c
Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:35 -07:00
sgnl-labs
2da3ac2cc8
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:28 -07:00
Andreas Dangel
fb6638c40d
[doc] Update release notes ( #635 )
...
Fixes #635
2024-07-12 09:44:25 +02:00
Andreas Dangel
3ba3eb4245
[apex] AvoidNonRestrictiveQueriesRule - support SOSL
2024-07-12 09:44:11 +02:00
Andreas Dangel
ccb0e2e228
[apex] AvoidNonRestrictiveQueriesRule - reuse SEE_ALL_DATA
...
This is already defined in ASTAnnotationParameter
2024-07-12 09:36:45 +02:00
Andreas Dangel
4044abca91
[apex] AvoidNonRestrictiveQueries: Support @isTest
2024-07-12 09:36:45 +02:00
Andreas Dangel
99f8bf826b
[apex] AvoidNonRestrictiveQueries: ignore sub-queries
2024-07-12 09:36:45 +02:00
Andreas Dangel
41ca259503
[apex] AvoidNonRestrictiveQueries - handle sub-queries separately
2024-07-12 09:36:44 +02:00
Andreas Dangel
abdb57535a
[apex] New Rule: AvoidNonRestrictiveQueries
...
Fixes #635
Refs old PR #663
Co-authored-by: Jan Aertgeerts <2192516+JAertgeerts@users.noreply.github.com>
2024-07-12 09:36:44 +02:00
Krzysztof Debski
45d68cf455
[java] Imports order fix
2024-07-11 17:33:39 +02:00
Krzysztof Debski
3609034bf7
[java] Do not report MissingStaticMethodInNonInstantiatableClass for class with @lombok.Builder
2024-07-11 17:24:38 +02:00
Krzysztof Debski
c053f00fb5
[java] Do not report UnusedPrivateMethod for method referenced by @lombok.Builder.ObtainVia
2024-07-11 17:00:01 +02:00
Krzysztof Debski
3a66d50ac2
[java] Do not report MissingStaticMethodInNonInstantiatableClass for private constructor with @lombok.Builder
2024-07-11 15:30:01 +02:00
Andreas Dangel
f62d038a8d
[doc] Update maven.md - Typo fixed for maven target ( #5107 )
...
Merge pull request #5107 from karthikaiyasamy:patch-1
2024-07-11 11:05:15 +02:00
Andreas Dangel
f574b0d6fe
[doc] Update release notes ( #5107 )
2024-07-11 11:03:25 +02:00
Andreas Dangel
a3bcb47068
Add @karthikaiyasamy as a contributor
2024-07-11 11:03:15 +02:00
Andreas Dangel
adfb9568b7
[plsql] Add support for 'DEFAULT' clause on the arguments of some oracle functions ( #5088 )
...
Merge pull request #5088 from duursma:DEFAULT_ARGUMENT
2024-07-11 10:33:18 +02:00
Andreas Dangel
8feb1ef80d
[doc] Update release notes ( #5088 )
2024-07-11 10:32:42 +02:00
Andreas Dangel
d59de6c550
[plsql] DEFAULT for Argument - fixups from #5088
2024-07-11 10:32:29 +02:00
Andreas Dangel
d3daf5e90e
Merge branch 'master' into pr-5088
2024-07-11 10:22:26 +02:00
Andreas Dangel
c059ca34f3
[plsql] Add support for SQL_MACRO ( #5087 )
...
Merge pull request #5087 from duursma:SQL_MACRO
2024-07-11 10:20:24 +02:00
Andreas Dangel
a2a10b4403
[doc] Update release notes ( #5087 )
2024-07-11 10:16:47 +02:00
Andreas Dangel
7b172acc7c
[plsql] SQL_MACRO - fixups from #5087
2024-07-11 10:15:58 +02:00
Andreas Dangel
3579f3f079
Merge branch 'master' into pr-5087
2024-07-11 09:49:04 +02:00
Andreas Dangel
cbcb5a1cb6
[plsql] Fixed issue with missing optional table alias in MERGE usage ( #5086 )
...
Merge pull request #5086 from duursma:master
2024-07-11 09:17:33 +02:00
Andreas Dangel
dcb56dc04f
[doc] Update release notes ( #5086 )
2024-07-11 09:16:46 +02:00
Andreas Dangel
b5127b3c7b
Add @duursma as a contributor
2024-07-11 09:16:19 +02:00
Andreas Dangel
8208e20844
Merge branch 'master' into pr-5086
2024-07-11 09:13:34 +02:00
karthikaiyasamy
dab088ba68
Update maven.md - Typo fixed for maven target
...
It should be "mvn compile" not "mvn complile".
2024-07-10 09:16:31 -07:00
Andreas Dangel
9bf476ac4f
[core] Don't log warning about skipLexicalErrors twice
...
Fixes #5091
2024-07-05 12:07:28 +02:00
Andreas Dangel
fc128c18dd
[java] Fix example of JUnitStaticSuite
...
A method can be declared only once, so
split the example into two examples.
2024-07-05 09:16:42 +02:00
Andreas Dangel
6714c8bef2
Add @ethan-sargent as a contributor
2024-07-04 12:36:27 +02:00
Andreas Dangel
dfdb63ba5b
[apex] Consider VariableDeclarationGroup in ApexTreeBuilder
...
- Throw parse exception, when a node is not handled
- Use ApexTreeDumpTest for SwitchStatements.cls
Fixes #5094
2024-07-04 12:36:05 +02:00
Andreas Dangel
68300298ef
Add @gearsethenry as a contributor
2024-07-04 12:13:13 +02:00
Andreas Dangel
d0928cc185
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue: case-insensitive check
...
The annotation parameter name "seeAllData" is now compared
case-insensitive.
Fixes #5095
2024-07-04 11:48:11 +02:00
Justin Stroud
a395bd78c8
Small fix, removed duplicate unit test (accodentally created by me.)
2024-06-28 17:51:11 -07:00
Justin Stroud
33dde29264
Per @adangel, added a couple of unit tests that validate inner class naming logic. Uncovered some bugs, fixed those bugs.
2024-06-28 17:47:49 -07:00
Andreas Dangel
e6397d5d5c
Bump maven from 3.9.6 to 3.9.8
2024-06-28 12:58:29 +02:00
Andreas Dangel
0d18146f05
[ci] Improve release and build scripts
...
- clarification for instructions
- twitter -> x
- try to avoid build failures due to missing
dependencies
2024-06-28 12:57:07 +02:00
Andreas Dangel
e8c16bb683
Bump pmd from 7.1.0 to 7.3.0
2024-06-28 12:09:02 +02:00
Andreas Dangel
88483cd989
Bump maven-pmd-plugin from 3.22.0 to 3.23.0
2024-06-28 12:08:45 +02:00
Andreas Dangel
d952a10790
[release] Prepare next development version [skip ci]
2024-06-28 11:27:41 +02:00
Arjen Duursma
c4ef2d9d44
Added missing newline at end of file
2024-06-27 15:37:35 +02:00
Arjen Duursma
45b75c5ca0
Add support for DEFAULT_ARGUMENT as extension to arguments (eg. TO_NUMBER)
2024-06-27 15:28:38 +02:00
Arjen Duursma
68584ebf0a
Removed unplanned empty line
2024-06-27 14:27:03 +02:00
Arjen Duursma
7955d635f3
Revert non relevant chagne
2024-06-27 14:25:18 +02:00
Arjen Duursma
44ecb87c43
Add support for SQL_MACRO
2024-06-27 14:18:30 +02:00
Arjen Duursma
f994ae0e6f
Fixed issue with missing optional table alias in MERGE usage
2024-06-27 13:33:00 +02:00
Justin M. Stroud
0f4a59c07d
Added inner interfaces.
2024-06-03 03:17:13 -07:00
Justin M. Stroud
af38000d8a
Moved inner class check to top.
2024-06-03 03:11:52 -07:00
Justin M. Stroud
9844cfae22
Moved inner class check to top.
2024-06-03 03:10:07 -07:00
Justin M. Stroud
ac5d1135aa
Added inner classes to ClassNamingConventionsRule, and added property to support name checking for inner classes.
2024-06-03 02:54:18 -07:00
Juan Martín Sotuyo Dodero
f24635b55c
Merge branch 'master' into issue-4532
2024-04-28 05:15:50 +02:00
Juan Martín Sotuyo Dodero
5b42381061
Reintroduce old class names
...
- Don't break API compatibility, and set everything for removal in PMD 8
2024-04-27 22:11:39 -03:00
Juan Martín Sotuyo Dodero
61a7459247
Update changelog
2024-04-17 17:00:05 -03:00
Juan Martín Sotuyo Dodero
bd89f9185b
Typo
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
7725897373
Rename JUnit4TestShouldUseTestAnnotation
...
- The rule is now called UnitTestShouldUseTestAnnotation as it applies
to both JUnit and TestNG.
- The doc is further improved to reflect this.
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
9f1ab89d31
Rename JUnitTestsShouldIncludeAssertRule
...
- It's now called UnitTestsShouldIncludeAssertRule as it applies to
JUnit and TestNG
- The doc is updated to reflect this
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
ffec30f392
Rename JUnitTestContainsTooManyAssertsRule
...
- The rule is now called UnitTestContainsTooManyAssertsRule as it
checks for JUnit and TestNG.
- This is further cleared up in the documentation.
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
5301a8e852
Rename JUnitAssertionsShouldIncludeMessageRule
...
- The rule is now called UnitTestAssertionsShouldIncludeMessageRule as
it applies to JUnit and TestNG.
- The doc is updated to reflect this.
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
691731cdd4
Rename JUnit4TestShouldUseAfterAnnotation
...
- Call it JUnitTestShouldUseAfterAnnotation instead as it not only
applies to JUnit4
- Improve the doc to further clarify it's usages
2024-04-17 16:42:37 -03:00
Juan Martín Sotuyo Dodero
55686dbef4
Rename JUnit4TestShouldUseBeforeAnnotation
...
- Call it JUnitTestShouldUseBeforeAnnotation as it applies to JUnit 4
and 5.
- Improve the doc to clarify it's intended use.
2024-04-17 16:42:37 -03:00