Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !1047

Add support for error prone as native compiler option

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/davido/optionally_activate_error_prone into master Dec 12, 2016
  • Overview 93
  • Commits 3
  • Pipelines 0
  • Changes 30

Created by: davido

Fixes #994 (closed).

Summary: http://errorprone.info is a static analysis tool for Java that catches common programming mistakes at compile-time. With this change it can be permanenty or instantly activated as default compiler. Moreover, java_library rule is extended as well.

The configuration option: java.error_prone_javac is considered to be experimental and is not documented.

Test Plan:

  1. Permanently activate error prone: add this line to .buckconfig:
   [java]
     error_prone_javac = true
  1. Instantly activate error prone:
  $ buck build --config java.error_prone_javac=true <rule>
  1. Activate error prone per rule base:
java_library(
    name = 'foo',
    error_prone_javac = True,
    [...]
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/davido/optionally_activate_error_prone