facebook pixelCodiga Analysis Apex Rules, severity warning , category best practice
BACK TO LIST

Apex rules

All the static analysis rules you need for the Salesforce APEX language. Use Codiga to analyze your code and automate your code reviews for APEX.

ApexUnitTestClassShouldHaveAsserts

Best practice
Warning

Apex unit test classes should have at least one System.assert() or assertEquals() or AssertNotEquals() call

Learn more

AvoidGlobalModifier

Best practice
Warning

Avoid using global modifier

AvoidLogicInTrigger

Best practice
Warning

Avoid logic in triggers

DebugsShouldUseLoggingLevel

Best practice
Warning

Calls to System.debug should specify a logging level.

NcssConstructorCount

Best practice
Warning

The constructor has a high NCSS line count

NcssTypeCount

Best practice
Warning

The type has a high NCSS line count

ApexUnitTestShouldNotUseSeeAllDataTrue

Best practice
Warning

Apex unit tests should not use @isTest(seeAllData=true) because it opens up the existing database data for unexpected modification by tests.