GitXplorerGitXplorer
k

gradle-lintrules-plugin

public
22 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
bca086183b855e71228fba323260375f1de88380

Update to gradle 3.2

committed 8 years ago
Unverified
567c278c77ff579e99f2fd901b8a007a5385e155

Delete custom lint jar after running lint on app projects

kkageiit committed 9 years ago
Unverified
5f05812461803a49b0c1aec0d44f094e8bd2b6c6

Delete custom lint jar on lint task exit

kkageiit committed 9 years ago
Unverified
5dcecb0f7a7c8e2fb84b4fa43bba6ce13f3ff9d4

Update README

kkageiit committed 9 years ago
Unverified
c179165ec42e84d3c08148412d39dea62355100f

Add support for android application projects to define custom lint rules

kkageiit committed 9 years ago
Unverified
ad9a25f4a87fe52b190bdca17442f90332821aa5

Initial Commit

kkageiit committed 9 years ago

README

The README file for this repository.

gradle-lintrules-plugin

Lintrules is a Gradle plugin that allows you to:

  • Run custom lint rules on android application projects.
  • Bundle custom lint rules with AARs.

Installation

To use the plugin with Gradle 2.1 or later, add the following to your build.gradle:

plugins {
  id 'com.kageiit.lintrules' version '1.1.3'
}

To use the plugin with Gradle 2.0 or older, add the following to build.gradle:

buildscript {
  repositories {
    maven {
      url 'https://plugins.gradle.org/m2/'
    }
  }
  dependencies {
    classpath 'gradle.plugin.com.kageiit:lintrules:1.+'
  }
}

Usage

Assuming that your custom lint rules are in a project named lint, you can apply them to an application project or bundle them with the AAR of a library project like so:

apply plugin: 'com.android.application' // or apply plugin: 'com.android.library'
apply plugin: 'com.kageiit.lintrules'

dependencies {
  lintRules project(':lint')
}

License

Copyright 2015 Gautam Korlam

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.