Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.83 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.83 KB

Logo

Eliminate Tech-Debt. At build time.

Build Status Apache 2.0

What is this?

This project provides a Gradle plugin that applies Rewrite checking and fixing tasks as build tasks, one of several possible workflows for propagating change across an organization's source code (along with mass pull request and commit issuance).

Currently it provides two distinct Gradle plugins:

  • org.openrewrite.rewrite-checkstyle. Responds to the presence of a Checkstyle configuration in a project, configuring Rewrite Checkstyle, and adding fixing as a Gradle task.
  • org.openrewrite.rewrite-metrics (optional). Publishes metrics on checkstyle violations Rewrite Checkstyle found and fixed per Gradle project to a Prometheus RSocket Proxy for use in studying the impact of autoremediation on a whole organization.
plugins {
    id 'java'
    id 'checkstyle'
    id 'org.openrewrite.rewrite-checkstyle' version 'LATEST'
    id 'org.openrewrite.rewrite-metrics' version 'LATEST'
}

repositories {
    mavenLocal()
    mavenCentral()
}

rewriteMetrics {
    metricsUri = URI.create('tcp://mypromproxy:7102')
}

Future development

This plugin will continue to involve to autoconfigure other rule sets (e.g. for framework migration and security vulnerability patching) as they become available, as well as a mechanism to configure and apply custom rule sets.