Scan Your Code

Run SLDS Linter against your project to check for any issues and generate a SARIF report. This report helps you identify the components to be updated.

In VS Code, in your project root directory, follow these steps.

  1. Open a Terminal.

  2. Run SLDS Linter. The linting output displays in the console and includes the row and column numbers.

  3. Select the displayed numbers to go to specific lines in the source code (Command+Click on macOS).

  4. Produce a SARIF report in your project’s root directory.

    Optionally, you can specify an output directory by using -o [output directory].

    The output file is named as slds-linter-report.sarif.

  5. Open the generated SARIF report file.

  6. Make a note of how many components SLDS Linter has identified for fixing.