rule-options

Official

Configure SonarJS rules with precision and control.

AuthorSonarSource
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a detailed guide on how to add or modify rule options in SonarJS, enabling precise control over the code quality and security analysis.

Core Features & Use Cases

  • Rule Option Configuration: Detailed instructions on managing fields array, UI visibility, and Java check class configuration.
  • Architecture Overview: Understand the rule options flow through SonarQube and gRPC for different integration paths.
  • Key Files: Understand the purpose of files like rule.ts, meta.ts, config.ts, and generated-meta.ts.
  • Fields Array: Learn about the fields array in config.ts and how it defines options for SonarQube integration.
  • Visibility in SonarQube: Make options visible in SonarQube UI by providing descriptions.
  • Configuration Shapes: Explore object-style and primitive configurations for ESLint and SonarQube.
  • Type Parsing: Understand how gRPC parses string params based on default types.
  • JSON Schema vs fields: Differentiate between JSON Schema and fields for ESLint validation and SQ UI integration.
  • Adding Options to an Existing Rule: Step-by-step process to add options to a rule.
  • Java Check Class: Learn about the configurations() method in Java check classes.

Quick Start

Use the rule-options skill to get started with configuring SonarJS rules and enhancing code quality.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rule-options
Download link: https://github.com/SonarSource/SonarJS/archive/main.zip#rule-options

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.