dx-code-analyzer-run

Scan Salesforce code for security, performance, and duplication violations.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill dx-code-analyzer-run
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dx-code-analyzer-run
Source: https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG/tree/main/.agents/skills/dx-code-analyzer-run
Command: npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill dx-code-analyzer-run

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the guesswork from Salesforce static analysis by turning code scans into clear, actionable violation summaries and rule explanations.

Core Features & Use Cases

  • Multi-engine scanning: Run PMD, ESLint, CPD, RetireJS, Flow, SFGE, and ApexGuru against files, folders, or git diffs.
  • Result exploration: Filter, rank, and summarize findings by engine, severity, category, file, or rule without rescanning.
  • Rule understanding and remediation: Look up what a rule means, browse available rules, and apply deterministic engine-provided fixes when available.
  • Use case: A developer preparing an AppExchange submission can scan the workspace, isolate security violations, review the highest-risk rules, and apply safe auto-fixes only after confirmation.

Quick Start

Ask the assistant to scan your Salesforce project for violations and present the most important findings in a concise summary.

Frequently Asked Questions about dx-code-analyzer-run

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Salesforce Apex code for security and vulnerability violations?

To scan Salesforce Apex code for security and vulnerability violations, run static analysis engines like PMD and SFGE against your workspace, folders, or git diffs to generate timestamped result files. You can then filter and summarize findings.

Can I run ESLint and static analysis on Lightning Web Components (LWC) in Salesforce?

Yes, you can run ESLint and static analysis on Lightning Web Components (LWC) and JavaScript static resources. The scanner evaluates LWC files for best-practice, performance, and security violations using targeted rule selectors.

What is the best way to fix Apex static analysis violations found during a security review?

The best way to fix Apex static analysis violations is to apply deterministic engine-provided fixes after reviewing rule explanations and confirming the changes. The scanner identifies violations and applies safe auto-fixes with post-scan validation.

Does Salesforce static analysis support Flow and Visualforce files for best-practice checks?

Yes, Salesforce static analysis supports Flow and Visualforce files for best-practice checks. The scanner applies Flow and Visualforce engines to detect duplication, performance, and vulnerability violations across your project paths.

How do I filter Salesforce code quality findings by severity without rescanning the workspace?

You can filter Salesforce code quality findings by severity, engine, category, file, or rule without rescanning the workspace. The scanner performs post-scan filtering on the timestamped result files to rank and summarize existing findings.

Why use Code Analyzer rule selectors for Salesforce code quality scans?

Code Analyzer rule selectors are used for Salesforce code quality scans to target specific engines and rule sets across Apex, LWC, and Flow. They enable deterministic scanning, precise rule lookup, and structured violation summaries for AppExchange preparation.