Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e13c0c67
Commit
e13c0c67
authored
Feb 11, 2021
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Improve customize rulesets example
Add a third rule disablement to example to showcase proper syntax
parent
312d5560
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
doc/user/application_security/sast/index.md
doc/user/application_security/sast/index.md
+8
-2
No files found.
doc/user/application_security/sast/index.md
View file @
e13c0c67
...
...
@@ -254,8 +254,8 @@ To create a custom ruleset:
1.
Create a custom ruleset file named
`sast-ruleset.toml`
in the
`.gitlab`
directory.
1.
In the
`sast-ruleset.toml`
file, do one of the following:
-
Disable predefined rules belonging to SAST analyzers. In this example, the disabled rules
belong to
`eslint`
and
`sobelow`
and have the corresponding identifiers
`type`
and
`value`
:
-
Disable predefined rules belonging to SAST analyzers. In this example, the
three
disabled rules
belong to
`eslint`
and
`sobelow`
by matching the corresponding identifiers'
`type`
and
`value`
:
```toml
[eslint]
...
...
@@ -265,6 +265,12 @@ To create a custom ruleset:
type = "eslint_rule_id"
value = "security/detect-object-injection"
[[eslint.ruleset]]
disable = true
[eslint.ruleset.identifier]
type = "cwe"
value = "185"
[sobelow]
[[sobelow.ruleset]]
disable = true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment