Andreas Dangel
c22448eae6
Removed references to removed rules
2024-02-01 17:35:40 +01:00
Andreas Dangel
69a58987a5
[apex] Remove deprecated rules
2024-02-01 16:27:47 +01:00
Andreas Dangel
fae522a002
[core] Unify javadoc for InternalApiBridge classes
...
Refs #4348
2024-02-01 12:09:12 +01:00
Andreas Dangel
7ec2bc4865
[apex] Cleanup InternalApi methods
...
Refs #4348
2024-01-30 20:17:59 +01:00
Andreas Dangel
3290815fff
Merge branch 'master' into experimental-apex-parser
2024-01-26 17:49:50 +01:00
Andreas Dangel
049f2c7c59
[core] XPathRule - remove version property ( #4309 )
2024-01-20 17:40:02 +01:00
Andreas Dangel
7c29f16eac
[core] Move XPathRule into subpackage lang.rule.xpath ( #4309 )
2024-01-19 12:52:51 +01:00
Andreas Dangel
f13cd58c7f
[core] Move classes into n.s.pmd.reporting
...
- Report
- RuleContext
- RuleViolation
- ViolationSuppressor
- ParametricRuleViolation
Fixes #3903
2024-01-18 20:27:34 +01:00
Andreas Dangel
faaec5ed6d
[core] Actually move into correct package lang.rule
2024-01-13 20:57:56 +01:00
Andreas Dangel
9e668c22fc
[core] Move Rule/RuleSet related type into net.sourceforge.pmd.rule
...
Refs #3917
2024-01-12 18:14:04 +01:00
Andreas Dangel
6d955d6b9a
[core] Move Rule into package net.sourceforge.pmd.rule
2024-01-12 11:04:02 +01:00
Andreas Dangel
6163f67b06
[core] Rename Tokenizer to CpdLexer
...
See #4065
2024-01-11 17:04:48 +01:00
Andreas Dangel
9977c0ffeb
Remove old rulesets
...
These were from PMD 5. In PMD 6, these rules
have been moved into categories.
2024-01-11 12:28:30 +01:00
Andreas Dangel
ba602d1978
[core] Remove ruleset compatibility filter (RuleSetFactoryCompatibility) and CLI option --no-ruleset-compatibility
...
Fixes #4314
Closes #4378
2024-01-11 12:05:10 +01:00
Andreas Dangel
60eca92180
[core] Undeprecate Node::getImage() in PMD 7
...
This should be done for 7.x again - see #4787
2024-01-11 09:47:10 +01:00
Andreas Dangel
4595ec11ab
Merge branch 'experimental-apex-parser' into issue-4722-apex-fixes
2024-01-05 15:44:36 +01:00
Andreas Dangel
f9541beb85
Merge branch 'master' into experimental-apex-parser
2024-01-05 15:43:48 +01:00
Andreas Dangel
13673d43fd
[apex] Use summit-ast 2.1.1
2024-01-05 15:43:26 +01:00
Andreas Dangel
4e02a21e3a
[apex] Fix deprecated API usage
2023-12-15 20:23:01 +01:00
Andreas Dangel
49e6777fff
[apex] Remove deprecated rule ref to ApexCSRF
...
This rule has been moved from security to errorprone
since PMD 6.21.0 already
2023-12-07 19:15:34 +01:00
Andreas Dangel
5d72bd8deb
Merge branch 'master' into experimental-apex-parser
2023-11-10 11:55:18 +01:00
Andreas Dangel
bd28fbea5e
Merge branch 'master' into issue-4722-apex-fixes
2023-11-09 11:56:45 +01:00
Andreas Dangel
195d56d8d0
[apex] Verify qualified names for method arguments with generics
...
Note: previously, there was no space between type params, now there is.
Refs #4722
2023-11-09 11:51:13 +01:00
Andreas Dangel
31a1b86769
[apex] Fix formal comment handling for Fields
...
Note: Apex Jorje variant didn't consider comments for fields at all.
Refs #4722
2023-11-09 10:42:46 +01:00
Andreas Dangel
e33fe924e9
[apex] Fix ApexDoc for interface methods
...
Interface methods are implicit public and abstract
Refs #4722
2023-11-09 09:38:21 +01:00
Andreas Dangel
83e6377752
[apex] Fix FieldNamingConventions reporting wrong lines
...
Using now FieldDeclarations instead of Fields for report location.
Refs #4722
2023-11-09 09:15:32 +01:00
Andreas Dangel
d586a3d23e
[apex] Fix FieldDeclarationsShouldBeAtStartRule reporting wrong lines
...
Using now FieldDeclarations instead of Fields for report location.
Refs #4722
2023-11-07 20:05:30 +01:00
Andreas Dangel
3428baec4f
[apex] AvoidDeeplyNestedIfStmts - add test
...
now the reported violations are correct: each if block is reported.
With Apex Jorje, the line numbers of the second if block were wrong and
two violations on the same line were
reported.
2023-11-07 19:52:44 +01:00
Andreas Dangel
cd6712598e
[apex] Fix EmptyStatementBlock false positive with empty catch
...
For empty catch blocks, there is the separate rule EmptyCatchBlock.
EmptyStatementBlock shouldn't report these.
Refs #4722
2023-11-07 19:33:04 +01:00
Andreas Dangel
4574cb251c
[apex] Fix AvoidNonExistentAnnotationsRule for enum values
2023-11-05 21:42:29 +01:00
Andreas Dangel
cf51fa2c45
[apex] Fix AntlrVersionCheckSuppression
...
This must not be called in multiple threads as we otherwise stop logging
to System.err.
2023-11-05 19:28:23 +01:00
Andreas Dangel
5f5c63bab9
[apex] OperationWithHighCostInLoop: add test for SObjectDescribeOptions
2023-10-28 12:25:27 +02:00
Andreas Dangel
8b4f677774
Merge branch 'master' into pr-4677
2023-10-28 12:10:35 +02:00
Andreas Dangel
c7cc050983
[apex] OperationWithHighCostInLoop - support System.Schema... as well
...
And improve test cases
2023-10-28 12:07:23 +02:00
Andreas Dangel
95609960ac
[apex] OperationWithHighCostInLoop - improve rule doc
2023-10-28 11:52:59 +02:00
Andreas Dangel
6d240b2a75
[apex] performance.xml - sort rules alphabetically
2023-10-28 11:24:56 +02:00
Juan Martín Sotuyo Dodero
8e3d60a772
Merge branch 'master' into remove-apexversion
2023-10-19 21:34:35 -03:00
Andreas Dangel
b811d3097e
Merge branch 'master' into update-experimental-apex-parser
2023-10-19 11:07:21 +02:00
Andreas Dangel
0c53b69e82
Merge pull request #4586 from adangel:ruleset-xml
...
Use explicit encoding in ruleset xml files #4586
2023-10-19 09:41:57 +02:00
Thomas Prouvot
f4c3fc02a8
Update pmd-apex/src/main/resources/category/apex/performance.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org >
2023-10-18 15:42:09 +02:00
Thomas Prouvot
f0f05c6e2c
Update pmd-apex/src/main/resources/category/apex/performance.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org >
2023-10-18 15:41:38 +02:00
Andreas Dangel
8528a8ed7d
Merge branch 'master' into experimental-apex-parser
2023-10-02 19:40:59 +02:00
Andreas Dangel
345bb24a25
[release] prepare for next development iteration
2023-09-30 17:15:59 +02:00
Andreas Dangel
720b9a328b
[release] prepare release pmd_releases/7.0.0-rc4
2023-09-30 17:15:54 +02:00
Andreas Dangel
abbee4bb5c
Merge pull request #4610 from adangel:issue-4453-apex-link-arrayoutofbounds
...
[apex] Add rule test for UnusedMethod #4610
2023-09-28 11:16:36 +02:00
Andreas Dangel
4d185d5a76
Merge branch 'master' into pr-4605
2023-09-28 09:26:01 +02:00
Andreas Dangel
3e7e050251
[apex] Remove ApexNode.getApexVersion()
2023-09-22 19:39:42 +02:00
Andreas Dangel
e191bb913a
Fix unused import
2023-09-21 17:31:09 +02:00
Andreas Dangel
3757191d4b
[apex] Refactor AntlrVersionCheckSuppression
2023-09-21 17:20:39 +02:00
Andreas Dangel
b015bda6ce
[apex] Use current languageVersion for ApexVersion property
2023-09-21 17:05:52 +02:00