1661 Commits

Author SHA1 Message Date
Andreas Dangel
7ec2bc4865 [apex] Cleanup InternalApi methods
Refs #4348
2024-01-30 20:17:59 +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
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
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
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
Thomas Prouvot
2d7521401d Add apex new rule OperationWithHighCostInLoop 2023-09-14 10:10:37 +02:00
Andreas Dangel
347d5992d1 Merge pull request #4649 from rcorfieldffdc:defect/4646-apex-soql-injection-sobjecttype-token-variables
[apex] Add SObjectType and SObjectField to list of injectable SOQL variable types #4649
2023-09-09 12:19:10 +02:00
Andreas Dangel
7d0e1f00cc [doc] Update release notes (#4649, #4646) 2023-09-09 12:11:19 +02:00
Andreas Dangel
32afa53f8e All language modules: getInstance()
Use a consistent implementation of getInstance().
Now all modules resolve against the LanguageRegistry.
2023-08-24 16:01:27 +02:00
Andreas Dangel
80856732cc Fix checkstyle 2023-08-24 14:19:36 +02:00
Andreas Dangel
8511c7b0e1 [core] Move PmdCapableLanguage to n.sf.pmd.lang 2023-08-24 11:42:50 +02:00
Andreas Dangel
932ac33d15 Merge branch 'master' into pr-4397 2023-08-24 09:48:28 +02:00
Andreas Dangel
df08d08608 [apex] Remove cpd property CASE_SENSITIVE 2023-08-24 09:10:06 +02:00
Richard Corfield
4151ca13f2 Fix Checkstyle errors by changing tab indentation to spaces
mvnw clean verify - now passes.
2023-08-18 17:53:19 +01:00
Richard Corfield
8f19067535 A neater set instantiation 2023-08-18 17:33:57 +01:00
Richard Corfield
2ab8447654 Remove the tests related to issue 4650
This commit will need to be reverted in 4650's branch.
2023-08-18 17:28:06 +01:00
Richard Corfield
bcbaffcf21 Add unit tests for the behavior I hope to see
Two of these tests are failing. It doesn't recognise constants.
I guess that it never has recognised constants, and this is another
problem in the code. I don't know whether to try to fix this or consider
it a different problem so I can make smaller pull requests.
2023-08-17 10:59:59 +01:00
Richard Corfield
d85a1a7cfe Add SObjectType and SObjectField to list of injectable SOQL variable types 2023-08-17 10:07:51 +01:00
Andreas Dangel
894d9fba84 Merge branch 'master' into pr-4397 2023-08-17 09:31:53 +02:00
Andreas Dangel
b73611f013 Merge branch 'master' into pr-4380 2023-08-10 17:37:36 +02:00
Andreas Dangel
256ae42830 [apex] Fix rule test for UnusedMethod
Refs #4453
2023-06-29 11:52:02 +02:00
Andreas Dangel
670eea4f3b [apex] Add rule test for UnusedMethod
Refs #4453
2023-06-29 09:45:03 +02:00
Andreas Dangel
60dfa53f77 Fix checkstyle 2023-06-26 19:32:07 +02:00
Andreas Dangel
68cc4e7315 Fix test - add workaround for differing antlr versions 2023-06-26 19:27:30 +02:00
Andreas Dangel
79b5904827 Merge branch 'master' into pr-4528 2023-06-26 18:17:29 +02:00
Andreas Dangel
0b9d5ec5e4 [apex] ApexCRUDViolation: Add support for "as user"
Refs #4368
2023-06-24 22:46:17 +02:00
Andreas Dangel
25539e1fc0 Guava is needed for apex at runtime as well - remove default scope test 2023-06-24 22:46:17 +02:00
Andreas Dangel
aeb1504079 [apex] Update jorje to latest version from 2023-06-05
Fixes #3973
2023-06-24 22:46:16 +02:00
Andreas Dangel
03a5b7549e [apex] ExcessivePublicCount: consider properties
Fixes #4596
2023-06-24 16:51:51 +02:00
Andreas Dangel
8a89a4c786 Use explicit encoding in ruleset files 2023-06-01 17:29:24 +02:00
Andreas Dangel
835b625d51 [release] prepare for next development iteration 2023-05-30 20:15:08 +02:00
Andreas Dangel
7d6d303488 [release] prepare release pmd_releases/7.0.0-rc3 2023-05-30 20:15:02 +02:00
Clément Fournier
f2cd5abbab Merge branch 'master' into clem.pmd7-refactor-cpd 2023-05-26 12:21:08 +02:00
Clément Fournier
fd0416c85a Merge branch 'master' into port-properties 2023-05-26 11:42:11 +02:00
Clément Fournier
ac86bb21dc Merge branch 'master' into pmd7-textfile-display-name 2023-05-02 17:12:39 +02:00
Kevin Jones
460fddd18c Update to apexlink 2.3.5 2023-04-30 20:37:22 +01:00
Andreas Dangel
b79e6bd92b [release] prepare for next development iteration 2023-04-29 23:39:34 +02:00
Andreas Dangel
a97e108269 [release] prepare release pmd_releases/7.0.0-rc2 2023-04-29 23:39:28 +02:00