---
schema_version: "1"
id: 28728b9fcfeb6baec890d568dedfed94b9352718a93c5c93d5bb7eae3981f510
title: Scan Your Code
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/slds_linter/guides/use/use-scan-code.md
canonical_url: https://developer.salesforce.com/docs/platform/slds-linter/guide/use-scan-code.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: aadf9f9009456813eabcb660aa63539116f48c63a653b772167fa086af044293
products:
  - SLDS Linter
  - lwc
---
# 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.

   ```
   npx @salesforce-ux/slds-linter lint
   ```

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.

   ```
   npx @salesforce-ux/slds-linter report
   ```

   Optionally, you can specify an output directory by using `-o [output directory]`.

   ```
   npx @salesforce-ux/slds-linter report -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.
