Dx Code Analyzer Custom Rule Create

Create custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when users want to enforce coding standards, ban patterns, detect hardcoded values, govern metadata, or add rules not in the built-in set. TRIGGER when: user says 'create a rule', 'ban System.debug', 'enforce naming convention', 'detect hardcoded IDs', 'custom rule', 'xpath rule', 'regex rule', 'add a PMD rule', 'enforce a policy', 'create a check for', 'flag this pattern', 'make a rule that catches', 'metadata rule', 'check permissions', 'enforce API version', 'eslint rule', 'lwc rule', 'override rule threshold', 'customize complexity', or describes a pattern to enforce. DO NOT TRIGGER when: user wants to run a scan (use dx-code-analyzer-run), configure engines (use dx-code-analyzer-configure), or explain existing rules (use dx-code-analyzer-run).

om-scogo 76dfb9b 4 files · 117.5 KB Updated 0 repo stars

File contents

om-scogo/skillsh-scraper/tree/main/data/skills/forcedotcom-sf-skills/dx-code-analyzer-custom-rule-create commit 76dfb9b43d

Frequently asked questions

npx skillmds add om-scogo/dx-code-analyzer-custom-rule-create