本文へスキップ
Kitbay
スキル公式

dx-code-analyzer-custom-rule-create

Apache-2.02026年11月6日 更新1,156GitHubスタースクリプトあり

A Salesforce skill for writing custom rules for Salesforce Code Analyzer.

スキルの内容

A Salesforce skill for writing custom rules for Salesforce Code Analyzer. It covers three kinds: regular expression rules for text patterns, PMD rules written in XPath for Apex and metadata XML, and ESLint rules for Lightning Web Components, JavaScript and TypeScript. The agent picks the engine, can start from code the user has selected, writes the rule and its configuration from bundled templates and scripts, checks that Code Analyzer recognises it, and tests it. Typical uses are banning System.debug, catching hard-coded IDs or enforcing naming and API version policies. Running scans and general configuration are other skills.

できること

  • Create regex rules for Code Analyzer
  • Write PMD XPath rules for Apex or metadata
  • Add ESLint rules for LWC and JavaScript
  • Test that a custom rule is picked up