facebook pixelAPEX Static Code Analysis Rules
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
      Medium

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

      Learn more

      AvoidGlobalModifier

      Best practice
      Medium

      Avoid using global modifier

      AvoidLogicInTrigger

      Best practice
      Medium

      Avoid logic in triggers

      DebugsShouldUseLoggingLevel

      Best practice
      Medium

      Calls to System.debug should specify a logging level.

      NcssConstructorCount

      Best practice
      Medium

      The constructor has a high NCSS line count

      NcssTypeCount

      Best practice
      Medium

      The type has a high NCSS line count

      ApexUnitTestShouldNotUseSeeAllDataTrue

      Best practice
      Medium

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