Skip to content

Annotations processor and interface that allows you to tell your software to stop compiling after certain criteria

License

Notifications You must be signed in to change notification settings

rwmyers/failsafe-annotations

Repository files navigation

failsafe-annotations

Annotations processor and interface that allows you to tell your software to stop compiling after certain criteria.

Usage

Failsafe is compromised of two parts: the interfaces that you add to your code and a gradle annotation processor that enforces rules.

To start, you'll need to build and reference both. The sample-application references these as direct module dependencies, for example:

dependencies {
    compile project(':failsafe-annotations')
    annotationProcessor project(':failsafe-processor')
}

Once done, you can then refer to annotations within your application. For example, if you wanted a warning after 2003 to appear with a method, you might add:

@FailAfter(date = "2003-02-01", message = "Time to remove this stuff!.", level = FailureLevel.WARNING)
public void stuff() {
    Log.d("TAG", "Stuff happening here, boss!");
}

About

Annotations processor and interface that allows you to tell your software to stop compiling after certain criteria

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages