-
Notifications
You must be signed in to change notification settings - Fork 18
[K9VULN-11777] Add summarized legacy config doc #856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,131 @@ | ||||||||
| # Legacy Configuration File | ||||||||
| The static analyzer has backwards-compatible support for the legacy `static-analysis.datadog.yml` configuration file, | ||||||||
| which has a different schema and semantics than the current configuration schema (See: [Configuration file](https://github.com/DataDog/datadog-static-analyzer?tab=readme-ov-file#configuration-file)). | ||||||||
|
|
||||||||
| Users may continue to use their `static-analysis.datadog.yml` configuration file with no disruptions or behavior | ||||||||
| changes. A migration tool will be provided in the future. | ||||||||
|
Comment on lines
+2
to
+6
|
||||||||
|
|
||||||||
| Documentation for this format has been saved below for reference: | ||||||||
|
|
||||||||
| --- | ||||||||
|
|
||||||||
| ## Legacy Schema Reference | ||||||||
|
|
||||||||
| The static analyzer can be configured using a `static-analysis.datadog.yml` file | ||||||||
| at the root directory of the repository. This is a YAML file with the following entries: | ||||||||
|
|
||||||||
| - `rulesets`: (required) a list with all the rulesets to use for this repository (see [Datadog Documentation](https://docs.datadoghq.com/security/code_security/static_analysis/static_analysis_rules/) for a full list). The elements of this list must be strings or maps containing a configuration for a ruleset (described below.) | ||||||||
| - `ignore`: (optional) a list of path prefixes and glob patterns to ignore. A file that matches any of its entries will not be analyzed. | ||||||||
| - `only`: (optional) a list of path prefixes and glob patterns to analyze. If `only` is specified, only files that match one of its entries will be analyzed. | ||||||||
| - `ignore-gitignore`: (optional) by default, any entries found in the `.gitignore` file are added to the `ignore` list. If the `ignore-gitignore` option is true, the `.gitignore` file is not read. | ||||||||
|
||||||||
| - `ignore-gitignore`: (optional) by default, any entries found in the `.gitignore` file are added to the `ignore` list. If the `ignore-gitignore` option is true, the `.gitignore` file is not read. | |
| - `ignore-gitignore`: (optional) by default, any entries found in the `.gitignore` file are added to the `ignore` list. If the `ignore-gitignore` option is true, the `.gitignore` file is not read. | |
| - `ignore-generated-files`: (optional) by default, generated files are ignored and not analyzed. If the `ignore-generated-files` option is false, generated files will be included in the analysis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link to the current configuration schema uses a GitHub UI-specific query string (
?tab=readme-ov-file), which is brittle and may not work in non-GitHub renderers. Prefer a repo-relative Markdown link to the relevant doc/section (e.g., README section anchor) so the reference remains stable.