infer-plugin

Gradle integration for infer static analyzer.

License

License

Categories

Categories

Infer Application Testing & Monitoring Code Analysis
GroupId

GroupId

com.uber
ArtifactId

ArtifactId

infer-plugin
Last Version

Last Version

0.7.4
Release Date

Release Date

Type

Type

jar
Description

Description

infer-plugin
Gradle integration for infer static analyzer.
Project URL

Project URL

https://github.com/uber-common/infer-plugin
Source Code Management

Source Code Management

https://github.com/uber-common/infer-plugin

Download infer-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.uber/infer-plugin/ -->
<dependency>
    <groupId>com.uber</groupId>
    <artifactId>infer-plugin</artifactId>
    <version>0.7.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.uber/infer-plugin/
implementation 'com.uber:infer-plugin:0.7.4'
// https://jarcasting.com/artifacts/com.uber/infer-plugin/
implementation ("com.uber:infer-plugin:0.7.4")
'com.uber:infer-plugin:jar:0.7.4'
<dependency org="com.uber" name="infer-plugin" rev="0.7.4">
  <artifact name="infer-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.uber', module='infer-plugin', version='0.7.4')
)
libraryDependencies += "com.uber" % "infer-plugin" % "0.7.4"
[com.uber/infer-plugin "0.7.4"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.tools.build : gradle jar 2.1.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Infer Gradle Plugin

Build Status

This Gradle plug-in creates tasks to run Infer on Android and Java projects.

Deprecated

This plug-in isn't used or maintained by the original authors anymore. For null checking, we recommend migrating to NullAway. If you're still using Infer for additional checks, we recomend investigating other approaches as this plug-in isn't actively being worked on.

Integration

To use this plug-in, you must have Infer installed.

Add the plug-in dependency and apply it in your project's build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        ...
        classpath "com.uber:infer-plugin:0.7.4"
    }
}

Applying the Plugin

Android

apply plugin: 'com.android.application'
apply plugin: 'com.uber.infer.android'

Java

apply plugin: 'java'
apply plugin: 'com.uber.infer.java'

Including and Excluding

In the build.gradle of the project that applies the plugin:

inferPlugin {
    infer {
        include = project.files("<PATH_TO_INCLUDE>")
        exclude = project.files("<PATH_TO_EXCLUDE>")
    }
    eradicate {
        include = project.files("<PATH_TO_INCLUDE>")
        exclude = project.files("<PATH_TO_EXCLUDE>")
    }
}

Tasks

  • infer - runs Infer's standard analyzer.
  • eradicate - runs Infer's Eradicate analyzer.

For Android projects, the plug-in will create a task for each build variant in your application or library (for example, debug and release).

  • inferVaraint - runs Infer's standard analyzer.
  • eradicateVariant - runs Infer's Eradicate analyzer.

For a specific list of tasks available on your project, run Gradle's tasks command.

Contributors

We'd love for you to contribute to our open source projects. Before we can accept your contributions, we kindly ask you to sign our Uber Contributor License Agreement.

  • If you find a bug, open an issue or submit a fix via a pull request.
  • If you have a feature request, open an issue or submit an implementation via a pull request
  • If you want to contribute, submit a pull request.
com.uber

Uber Common

Uber's open source utility libraries

Versions

Version
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0