750 Commits

Author SHA1 Message Date
Andreas Dangel
dbb711b0f5 [apex] Fix ASTUserInterfaceTest examples 2019-09-07 10:50:09 +02:00
Andreas Dangel
e3db6241f6 [apex] Sort trigger usages 2019-08-10 21:49:01 +02:00
Andreas Dangel
281ef3441b [apex] Expose more info on UserClass, UserInterface, UserTrigger
* Renamed ASTUserClass::getSuperTypeName to getSuperClassName
* Expose ASTUserClass::getInterfaceNames - comma separated
* Expose ASTUserInterface::getSuperInterfaceName
* Expose ASTUserTrigger::getTargetName and getUsages
2019-08-10 20:43:38 +02:00
Andreas Dangel
bf18d5dc87 (doc) apex bestpractices: Create a clickable link 2019-08-04 11:15:35 +02:00
Andreas Dangel
190dee7c59 [apex] Expose supertype name of UserClass
Fixes #1901
2019-08-04 11:07:58 +02:00
Renato Oliveira
6a3f4162bc Fixes strings on the tests' messages. 2019-07-27 12:32:52 -03:00
Renato Oliveira
2650b38db9 Removes "DebugsShouldSpecifyLoggingLevelRule" Java files and replaces it with an XPath rule and its test. 2019-07-27 12:28:39 -03:00
Renato Oliveira
bc468b4f21 Fixes style by adding newlines and converting tabs to spaces. 2019-07-26 00:25:59 -03:00
Renato Oliveira
47583eea24 Fixes wrong rule name in best practices xml rule descriptor. 2019-07-25 23:38:02 -03:00
Renato Oliveira
6e67528a7c Add rule file and test case. 2019-07-25 23:14:53 -03:00
Renato Oliveira
75f20ba7f5 Fixes the name of the rule in the best practices category file. 2019-07-25 23:14:12 -03:00
Renato Oliveira
58582dd306 Add the "system.debug should use logging level" rule. 2019-07-25 21:59:01 -03:00
Andreas Dangel
ef011c526d [apex] False positive ApexSharingViolationsRule, unsupported Apex feature
Fixes #1664
2019-06-27 20:22:05 +02:00
Andreas Dangel
07c90ee34c [apex] Replace deprecated rule VariableNamingConventions in quickstart ruleset
Also fix the unit test to check the logger directly instead of
System.err.

Refs #1817
2019-05-25 18:48:54 +02:00
Clément Fournier
23e162b932 Merge branch 'master' into deprecated-dump-facade 2019-05-18 16:42:25 +02:00
Andreas Dangel
7f1ce750e9 Merge branch 'pr-1817' 2019-05-17 16:21:53 +02:00
Andreas Dangel
eae662ac94 Update release notes, fixes #1321, refs #1817 2019-05-17 16:21:09 +02:00
Andreas Dangel
bce37244f7 First assign the comments and then add the comments to the nodes
in a second pass.
2019-05-17 15:22:27 +02:00
Jeff Hube
609750332a Deprecate VariableNamingConventionsRule 2019-05-14 11:33:34 -04:00
Jeff Hube
6e937ed1a9 Remove Regex suffix from new rule names 2019-05-14 11:23:59 -04:00
Jeff Hube
1053d31fd7 Use all caps for constant fields 2019-05-13 17:01:44 -04:00
Jeff Hube
ff7abcf224 Get names without reflection 2019-05-13 13:44:38 -04:00
Jeff Hube
63c71366bd Compile regexes once 2019-05-13 13:17:09 -04:00
Jeff Hube
a0bffae1a1 Make AbstractRegexNamingConventionsRule package private 2019-05-13 13:08:25 -04:00
Jeff Hube
c96d879a5a Move constants to AbstractRegexNamingConventionsRule 2019-05-10 16:27:31 -04:00
Jeff Hube
4bcdfba353 Class defaults should be pascal case 2019-05-10 16:10:34 -04:00
Jeff Hube
48617ee51c Add enumConstantPattern to FieldRegexNamingConventionsRule 2019-05-10 16:07:23 -04:00
Jeff Hube
6cf64949d1 Ignore autogenerated enum methods 2019-05-10 14:00:41 -04:00
Jeff Hube
000e32b2ee Fix NPE on custom exceptions 2019-05-10 12:16:30 -04:00
Jeff Hube
c5b0c8c17a Add configurable naming convention rules 2019-05-09 15:04:46 -04:00
Jeff Hube
8ae6563fff Fix ApexDoc handling with inner classes 2019-05-08 14:50:51 -04:00
Clément Fournier
6f4123afcc Annotated overriding #getDumpFacade as Deprecated 2019-05-02 16:22:04 +02:00
Andreas Dangel
1c9a73426c deprecate: DumpFacade will be removed in PMD 7
Refs #1801
2019-05-01 11:38:35 +02:00
Juan Martín Sotuyo Dodero
0dd0ce1b06 [apex] Add test case for #702 2019-04-12 16:10:53 -03:00
Andreas Dangel
dcb9bd007d [apex] Update quickstart ruleset 2019-03-31 11:15:24 +02:00
Andreas Dangel
d613b08ce1 Merge branch 'pr-1726' 2019-03-30 18:01:09 +01:00
Andreas Dangel
b608a676b5 Merge branch 'pr-1727' 2019-03-30 17:46:33 +01:00
Andreas Dangel
df0a183226 [apex] Throw parse errors for invalid code 2019-03-29 14:24:17 +01:00
Andreas Dangel
e8f8e1ac7a Update release notes, document apex attributes 2019-03-29 14:03:32 +01:00
Andreas Dangel
91d0ebf462 [apex] Expose parameter names of NewKeyValueObjectExpression 2019-03-28 21:05:11 +01:00
Andreas Dangel
680b164e10 [apex] Refactor rules to use new nodes attributes
Also unifying getType() on ASTField, ASTProperty, ASTVariableDeclaration,
ASTParameter
Adding remaining types in ASTLiteralExpression
2019-03-28 20:15:06 +01:00
Andreas Dangel
17ab453db9 Merge branch 'pr-1694' 2019-03-25 20:07:15 +01:00
Andreas Dangel
53d123703b Update release notes, refs #1694 2019-03-25 20:04:19 +01:00
Andreas Dangel
2958f83517 Simplify the rules even more 2019-03-25 19:56:47 +01:00
Andreas Dangel
db3b211d8f Undo changes to rulesets/apex/ruleset.xml 2019-03-25 19:50:32 +01:00
sudhansu
d1a9630ee2 review feedback 2019-03-24 21:01:24 -07:00
sudhansu
72cbd2b63b merge conflicts 2019-03-23 16:25:40 -07:00
sudhansu
a0eabd34b0 merge conflicts 2019-03-23 16:16:32 -07:00
sudhansu
7e44f025e4 removed spaces 2019-03-23 15:23:49 -07:00
sudhansu
99f9cc6054 Modified is test annotation rule and renamed ApexAssertionsShouldIncludeMessage rule 2019-03-23 15:23:49 -07:00