• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Bot 3.0
    2. Version 4.x
    3. Version 3.0
    4. Version 2.0
    5. Version 1.0
    6. Review Bot Tools
    7. FBInfer
  • Home
  • Installation
  • Manually Installing Review Bot
  • Review Bot Docker Images
  • Upgrading Review Bot
  • Configuring Review Bot
  • Review Bot Tools
  • Cargo Tool
  • Checkstyle
  • Clang Static Analyzer
  • Cppcheck
  • Cpplint
  • Doc8
  • FBInfer
  • Flake8
  • Go Fmt
  • Go Tool
  • JSHint
  • PMD
  • Pycodestyle
  • Pydocstyle
  • Pyflakes
  • RuboCop
  • Rust Fmt
  • Secret Scanner
  • ShellCheck
  • Module and Class Reference
  • reviewbot.tools.base
  • reviewbot.tools.base.mixins
  • reviewbot.tools.base.registry
  • reviewbot.tools.base.tool
  • reviewbot.testing.testcases
  • reviewbot.testing.utils
  • reviewbot.tools.testing
  • reviewbot.tools.testing.decorators
  • reviewbot.tools.testing.testcases
  • reviewbot.processing.review
  • reviewbot.utils.api
  • reviewbot.utils.filesystem
  • reviewbot.utils.log
  • reviewbot.utils.process
  • reviewbot.utils.text
  • reviewbot.celery
  • reviewbot.config
  • reviewbot.deprecation
  • reviewbot.errors
  • reviewbot.repositories
  • reviewbot.tasks
  • reviewbot.tools.cargotool
  • reviewbot.tools.checkstyle
  • reviewbot.tools.clang
  • reviewbot.tools.cppcheck
  • reviewbot.tools.cpplint
  • reviewbot.tools.doc8
  • reviewbot.tools.fbinfer
  • reviewbot.tools.flake8
  • reviewbot.tools.gofmt
  • reviewbot.tools.gotool
  • reviewbot.tools.jshint
  • reviewbot.tools.pmd
  • reviewbot.tools.pycodestyle
  • reviewbot.tools.pydocstyle
  • reviewbot.tools.pyflakes
  • reviewbot.tools.rbsecretscanner
  • reviewbot.tools.rubocop
  • reviewbot.tools.rustfmt
  • reviewbot.tools.shellcheck
  • General Index
  • Python Module Index
  • Release Notes
  • This documentation covers Review Bot 3.0. You can select a version above or view the latest documentation.

    FBInfer¶

    New in version 3.0.

    FBInfer is a static analysis tool compatible with a large number of languages, and offering a wide variety of checks.

    The following types of projects can be built using FBInfer:

    • Android

    • Apache Ant

    • Buck

    • C

    • CMake

    • Gradle with and without a Wrapper

    • iOS

    • Java

    • Make

    • Maven

    • Objective-C

    • XCode

    Unlike many tools, this doesn’t operate on individual files.

    Installation¶

    This tool requires FBInfer to be installed on the system running the Review Bot worker. This is a large dependency, so make sure you have sufficient storage and RAM available.

    See the FBInfer installation guide for installation instructions.

    Note

    We do not recommend using the FBInfer Docker image with Review Bot. FBInfer will be run any time a change is posted or updated, and the Docker image is not suitable for this use case.

    Configuration¶

    FBInfer Location¶

    Review Bot will try looking for the infer command in Review Bot’s PATH environment variable. If it can’t be found, or a different name is used for this tool (such as run.sh), then you’ll need to specify the path in the Review Bot worker config file:

    exe_paths = {
        'infer': '/path/to/infer',
    }
    

    You will need to restart the Review Bot worker after making this change.

    Enabling Full Repository Access¶

    This tool requires full repository access, which is available for Git and Mercurial repositories. Each repository you intend to use must be configured in the Review Bot worker config file.

    See Full Repository Access for instructions.

    Preparing Your Build Environment¶

    Because FBInfer can run static analysis on a wide variety of projects, the source code will often require numerous external dependencies or compile-time flags.

    Compile-time flags can be specified in the worker configuration (documented below), but you will need to install any dependencies on the worker.

    It’s recommended that you set up the worker on a system which is already set up to build your software in order to ensure that the necessary build environment is available.

    Enabling FBInfer in Review Board¶

    First, you’ll need to add a Review Bot configuration in Review Board (see Tool Configurations).

    The following configuration options are available:

    Build system (required):

    The build system used to compile the project. The following build system options are supported:

    Android/Gradle with Wrapper:

    Runs infer run -- ./gradlew

    Apache Ant:

    Runs infer run -- ant

    Buck

    Runs infer run -- buck build

    Clang (C/Objective-C)

    Runs infer run -- clang -c

    CMake

    Runs infer run -- cmake

    Gradle

    Runs infer run -- gradle

    Java

    Runs infer run -- javac

    Make

    Runs infer run -- make

    Maven

    Runs infer run -- mvn

    XCode

    Runs infer run -- xcodebuild

    Build target (optional):

    The name of the target to build, if the build system needs one or is capable of building multiple targets.

    For XCode, this will use xcodebuild -target <name>. For all other build systems, the target will be added after the build system command above.

    XCode configuration (optional):

    Any additional configuration options needed for the XCode build.

    This is ignored for non-XCode builds.

    This is equivalent to xcodebuild -configuration <configuration>.

    XCode SDK (optional):

    The name of an SDK to include for XCode configurations.

    This is ignored for non-XCode builds.

    This is equivalent to xcodebuild -sdk <sdk>.

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2025 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • Installation
    • Configuration
      • FBInfer Location
      • Enabling Full Repository Access
      • Preparing Your Build Environment
      • Enabling FBInfer in Review Board