OpenGrep is a high-performance static code analysis engine for finding security vulnerabilities and bugs across many languages. It is compatible with Semgrep configurations, so you can use existing Semgrep rule sets.Documentation Index
Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
Use this file to discover all available pages before exploring further.
Files
OpenGrep runs on files with the following extensions:- C/C++:
.c,.cpp,.cc,.cxx,.c++,.h,.hpp,.hh,.hxx,.h++ - C#:
.cs - Go:
.go - Java:
.java - JavaScript/TypeScript:
.js,.jsx,.ts,.tsx - Kotlin:
.kt - Python:
.py - Ruby:
.rb - Rust:
.rs - PHP:
.php - Scala:
.scala - Swift:
.swift - Terraform:
.tf - JSON:
.json
Configuration
OpenGrep is Semgrep-compatible. CodeRabbit looks for a config file in this order:opengrep.ymlopengrep.yamlopengrep.config.ymlopengrep.config.yamlsemgrep.ymlsemgrep.yamlsemgrep.config.ymlsemgrep.config.yaml
When we skip OpenGrep
CodeRabbit skips OpenGrep when:- OpenGrep is disabled in your CodeRabbit configuration.
- No files in the pull request match the supported extensions.
- OpenGrep is already running in GitHub workflows.
Links
- OpenGrep GitHub
- Semgrep rule syntax (OpenGrep is compatible)