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.
-
Open a Terminal.
-
Run SLDS Linter. The linting output displays in the console and includes the row and column numbers.
-
Select the displayed numbers to go to specific lines in the source code (Command+Click on macOS).
-
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
. -
Open the generated SARIF report file.
-
Make a note of how many components SLDS Linter has identified for fixing.