Files
Infer will run on changed files with the following extensions:.c.cc.cpp.cxx.h.hh.hpp.hxx.java
reviews.tools.fbinfer.enable_java when you want CodeRabbit to analyze changed Java files with Infer.
Configuration
Infer is disabled by default. Setreviews.tools.fbinfer.enabled to true when you want CodeRabbit to run it, and leave reviews.tools.fbinfer.enable_java as false unless Java analysis should be included.
- Using configuration file
- Using web interface
Compilation database discovery
Infer uses a compilation database for C and C++ analysis. CodeRabbit searches the repository forcompile_commands.json files while skipping dependency and VCS directories such as .git, node_modules, vendor, third_party, external, and subprojects.
When no compilation database is available, CodeRabbit skips C and C++ analysis. Java files are analyzed only when Java analysis is enabled.
When we skip Infer
CodeRabbit will skip running Infer when:- Infer is disabled in CodeRabbit settings or
.coderabbit.yaml. - No changed files match the supported file types.
- Java is the only matching language and Java analysis is not enabled.
- Infer is already running in GitHub workflows.
- C or C++ files changed but no compilation database is available.
Links
What’s next
Tool catalog
Browse all linters, security analyzers, and CI/CD integrations by category and technology.
Tools reference
Explore detailed specifications and configuration options for CodeRabbit tools.