Lightlines
By forcedotcom

dx-code-analyzer-custom-rule-create

forcedotcom4.7k installs

Custom checks for your Salesforce code and metadata.

What it does

Creates custom Code Analyzer checks that enforce team coding standards and catch unwanted code or metadata patterns.

When to use it

Use when a user needs a custom rule for a pattern that Code Analyzer's built-in rules do not cover.

How to use it

Give it a pattern to flag in your project; it creates and validates a rule, tests violating and clean samples, and removes its temporary samples.

What you provide

  • the pattern to flag
  • An existing project

Latest review

What you need · 4

Declares Node.js version 18.0.0 or later; the rule-creation scripts run with node.

Declares Salesforce CLI version 2.0.0 or later.

Requires Code Analyzer commands to validate created rules before testing them.


Access · 1

This skill

eslint-plugin-<name>

Execute

Installs an ESLint plugin