An open API service indexing awesome lists of open source software.

https://github.com/lachlanmckee/revisit-alerts

Lint rules that alert developers when code needs to be revisited
https://github.com/lachlanmckee/revisit-alerts

Last synced: 7 months ago
JSON representation

Lint rules that alert developers when code needs to be revisited

Awesome Lists containing this project

README

          

# Revisit Alerts

Provides a variety of 'revisit' annotations that alert developers (using lint rules) when code needs to be revisited.

## How to use

The annotations are used in the following ways:

### RevisitDate

The `Revisit.ByDate` annotation allows you to specify a date in the future when something should be revisited.

```kotlin
import com.lachlanmckee.revisit.Revisit

@Revisit.ByDate(day = 1, month = Revisit.Month.JANUARY, year = 3000, reason = "For testing purposes")
fun foo() {
}
```

### RevisitFromDate

The `Revisit.FromDate` annotation allows you to specify a date (typically the date which the annotation was added) and a number of days in the future when something should be revisited.

```kotlin
import com.lachlanmckee.revisit.Revisit

@Revisit.FromDate(day = 1, month = Revisit.Month.JANUARY, year = 2000, delay = Revisit.Delay.ONE_MONTH, reason = "For testing purposes")
fun foo() {
}
```

To see this in practice, please take a look at the [revisit-alerts-sample](revisit-alerts-sample) directory.

## Download
This library is available on Maven, you can add it to your project using the following gradle dependencies:

```gradle
implementation 'net.lachlanmckee.revisit:alerts:1.0.0'
```