rule-implementation
Installation
SKILL.md
Rule Implementation
Use this skill when you need to understand how to implement or fix SonarJS rules. This covers tracing false positives, identifying where issues are raised, and working with rule configuration.
Identifying Where Issues Are Raised
When analyzing why a false positive occurs, look for context.report() calls in the rule implementation:
context.report({
node,
messageId: 'issue',
});
Tracing the Root Cause of a False Positive
To identify why a false positive occurs, work backwards from the context.report() call: