Skip to content

Commit 3fab519

Browse files
move notes around
1 parent 53d3c60 commit 3fab519

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/tools/semgrep.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@ for security vulnerabilities and code quality issues.
1111

1212
Semgrep uses a YAML style configuration file.
1313

14-
> Due to licensing it doesn't ship with the
15-
> [community-created Semgrep rules](https://github.com/returntocorp/semgrep-rules),
16-
> but you're free to use these in your own project.
17-
1814
Semgrep supports the following config files:
1915

2016
- User-defined config file set at `reviews.tools.semgrep.config_file` in your
2117
project's `.coderabbit.yaml` file or setting the "Review → Tools → Semgrep →
2218
Config File" field in CodeRabbit's settings page.
2319

24-
> **NOTE: If you do not set a config file in your `.coderabbit.yaml` or config
25-
> UI then semgrep will not be run.**
20+
> Due to licensing it doesn't ship with the
21+
> [community-created Semgrep rules](https://github.com/returntocorp/semgrep-rules),
22+
> but you're free to use these in your own project.
23+
24+
> **NOTE: CodeRabbit will only run Semgrep if your repository contains a Semgrep
25+
> config file. In addition you must also define the path to this file in
26+
> `.coderabbit.yaml` or config UI.**
2627
2728
## Links
2829

0 commit comments

Comments
 (0)