1077 Commits

Author SHA1 Message Date
Thomas Prouvot
29c4e996fb Increase test coverage 2022-08-25 16:54:11 +02:00
Thomas Prouvot
d73cdcc193 Ad new tests for Assert method class 2022-08-25 15:44:37 +02:00
Thomas Prouvot
065b4b8083 Remove param message not mandatory in this test 2022-08-25 15:44:18 +02:00
Thomas Prouvot
ac94df9e17 Update add violation parameters to macth with new tests 2022-08-25 15:34:54 +02:00
Thomas Prouvot
d6194be47b Add tests for new methods 2022-08-25 15:31:13 +02:00
Thomas Prouvot
46aa491c45 Merge branch 'feature/addNewClassForAssertion' of https://github.com/tprouvot/pmd into feature/addNewClassForAssertion 2022-08-25 15:14:18 +02:00
tprouvot
d7cf959ad2 Merge branch 'pmd:master' into feature/addNewClassForAssertion 2022-08-25 12:27:18 +02:00
Thomas Prouvot
c61108c752 Add new Assert methods to ApexAssertionsShouldIncludeMessageRule 2022-08-25 12:18:15 +02:00
Thomas Prouvot
2e9f25c8ba PR review comment 2022-08-25 12:17:51 +02:00
Thomas Prouvot
50641a5c97 Fix typo 2022-08-25 12:17:32 +02:00
tprouvot
d5098ca115 Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/bestpractices/xml/ApexUnitTestClassShouldHaveAsserts.xml
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-08-25 12:15:30 +02:00
tprouvot
e0b9965c27 Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/bestpractices/ApexUnitTestClassShouldHaveAssertsRule.java
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-08-25 10:46:47 +02:00
Andreas Dangel
d41628c1c6 Merge pull request #4092 from aaronhurst-google:enum-qualified-names
[apex] Implement ApexQualifiableNode for ASTUserEnum #4092
2022-08-24 18:01:33 +02:00
Andreas Dangel
f83a1a092c [doc] Add deprecation infos 2022-08-24 17:55:04 +02:00
Andreas Dangel
b9eec549fa Merge branch 'master' into pr-4081 2022-08-24 17:43:09 +02:00
Thomas Prouvot
dc03e52be3 Update method name and number of parameters (PR Comment) 2022-08-18 16:34:46 +02:00
Thomas Prouvot
a2058c454b move fully qualified variant under comment (PR Comment) 2022-08-18 16:34:14 +02:00
Thomas Prouvot
539838c906 Update previous negative test which is ok now and add new positive test. 2022-08-18 14:40:50 +02:00
Thomas Prouvot
237b106676 Add new assert methods for api 56 2022-08-17 15:09:54 +02:00
Aaron Hurst
fbeb071d08 Implement ApexQualifiableNode for ASTUserEnum.
Include enum in qualified name. Properly handle case where enum is root node.

Fixes null deref in ApexQualifiedName.toString() for built-in ASTMethods in enum types.
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_enum.htm

Add tests of qualified and unqualified enums.

Change-Id: I691795d40a66f3d3335ab72ad43de7055a6aee31
2022-08-12 19:10:54 +00:00
Edward Klimoshenko
ea455fa356 Remove Jorje leaks outside ast package
Operators
- Create operator enums to wrap internal Jorje operators.
- Create getters returning new operator enums in operator-expression
  nodes. Deprecate old getters.
- Refactor metrics classes to use new operator enums.

Tests
- Remove references to internal Jorje nodes.
2022-08-11 11:06:20 +00:00
Andreas Dangel
995d00fde3 [maven-release-plugin] prepare for next development iteration 2022-07-30 11:35:57 +02:00
Andreas Dangel
6aa2b47f2e [maven-release-plugin] prepare release pmd_releases/6.48.0 2022-07-30 11:35:53 +02:00
Andreas Dangel
73a7ed98ca Merge pull request #4056 from gwilymatgearset:add-support-for-soql-injection-detection-in-count-query
[apex] ApexSOQLInjection: Add support count query #4056
2022-07-25 19:44:53 +02:00
Andreas Dangel
618790613f [apex] Small fixups 2022-07-25 19:42:02 +02:00
Andreas Dangel
12516ff035 Fix deprecated attribute usage "regressionTest" 2022-07-21 21:25:33 +02:00
Gwilym Kuiper
94b3723da0 Use correct queries rather than the same as the Database.query ones 2022-07-20 16:48:05 +01:00
Gwilym Kuiper
b3aab7c07e Now detect Database.countQuery as well as Database.query 2022-07-20 16:41:23 +01:00
Gwilym Kuiper
c211759d86 Add tests for Database.countQuery by copying the Database.query tests 2022-07-20 16:40:46 +01:00
Andreas Dangel
a5006f6383 [maven-release-plugin] prepare for next development iteration 2022-06-25 09:30:43 +02:00
Andreas Dangel
07eb3d2d80 [maven-release-plugin] prepare release pmd_releases/6.47.0 2022-06-25 09:30:37 +02:00
Andreas Dangel
4b2c3fa1a4 Exclude commons-io (CVE-2021-29425)
Refactor last test usages to use PMD's IOUtil instead.
2022-06-09 16:15:19 +02:00
Andreas Dangel
066b510eef chore: Fix project.parent.relativePath in pom.xml
It must point to a file, pointing to a directory
is not valid.
2022-06-04 11:00:30 +02:00
Andreas Dangel
04c1271d88 [maven-release-plugin] prepare for next development iteration 2022-05-28 11:04:32 +02:00
Andreas Dangel
a75acdeff8 [maven-release-plugin] prepare release pmd_releases/6.46.0 2022-05-28 11:04:27 +02:00
Andreas Dangel
a4ebb66769 Replace IOUtils with IOUtil
plsql, xml, apex, html, javascript, scala
2022-05-13 12:03:15 +02:00
Andreas Dangel
753cb49e40 [all] Remove dependency to commons-io 2022-05-13 12:03:14 +02:00
Andreas Dangel
ec64315ad7 [maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
Andreas Dangel
1d2b40b3c0 [maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
Andreas Dangel
be3e941a08 [maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36 [maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
Andreas Dangel
9d60958ec5 [apex] Add designer bindings to display main attributes 2022-03-03 19:04:53 +01:00
Andreas Dangel
f30cfe92f6 Merge branch 'master' into pr-3773 2022-03-03 15:05:53 +01:00
Andreas Dangel
3a55556c2f Fix PMD violation 2022-03-03 15:00:27 +01:00
Andreas Dangel
dddb2abd15 Fix tests 2022-03-03 14:44:57 +01:00
Andreas Dangel
38aae05317 Add comment 2022-03-03 14:39:55 +01:00
Andreas Dangel
5dba45852e [apex] Fix EagerlyLoadedDescribeSObjectResult for SObjectField usages
Refs #3773
2022-03-03 13:06:49 +01:00
Andreas Dangel
69fb502883 [maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b [maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
Andreas Dangel
d1aadf447e [apex] Add more test cases for EagerlyLoadedDesribeSObjectResult
Test cases use SObjectField and FieldDescribeOptions
2022-02-25 17:05:30 +01:00