---
schema_version: "1"
id: a30b1fac9d62c41495a244de8773244b0b75102f4c6038153d81e69028459f65
title: CSV Rules Output Schema Reference
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/code-analyzer/salesforce-code-analyzer/guides/output-schemas-csv-rules.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/output-schemas-csv-rules.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 80520f689a165e0d9fb450e29169f63e54db80fdf8fa95dc4d1b1f420a24800b
products:
  - Salesforce Code Analyzer
---
# CSV Rules Output Schema Reference

This example shows how to create a comma-separated values (CSV) formatted output file when using the `--output-file` flag of the `code-analyzer rules` command.

```bash
sf code-analyzer rules --rule-selector flow --output-file rules-results.csv
```

## Sample CSV Rules Output

This sample output shows the two rules associated with the `flow` engine.

```csv
"name","severity","engine","tags","resources","description"
"PreventPassingUserDataIntoElementWithoutSharing",2,"flow","Recommended,Security,XML",,"Avoid passing user data into Flow Scanner elements in run mode: Without Sharing"
"PreventPassingUserDataIntoElementWithSharing",4,"flow","Recommended,Security,XML",,"Avoid passing user data into Flow Scanner elements in run mode: With Sharing"
```

## Properties of the CSV Rules Output File

All string property values are wrapped in double quotes which allows for comma-separated properties, such as the list of tags associated with the rule.

| Property Name      | Data Type | Description                                                                                                             |
| ------------- | --------- | ----------------------------------------------------------------------------------------------------------------------- |
| `name`        | string    | The name of the rule. |
| `severity`    | number    | The default severity level of the rule: 1 (Critical), 2 (High), 3 (Moderate), 4 (Low), 5 (Info)                            |
| `engine`      | string    | The [engine](https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/engines.md) that's associated with the rule.                                                          |
| `tags`        | string  | The tags that are associated with the rule, such as `Recommended`, `Security`, or `BestPractices`. Multiple tags are separated by commas. |
| `resources`   | string  | The URLs for additional resources and information about the rule. Multiple resources are separated by commas.      |
| `description` | string    | The description of the rule. |
