Giter Club home page Giter Club logo

checkstyle-android's Introduction

checkstyle-android

A gradle checkstyle configuration that most closely matches the Android Code Style Guidelines for Contributors. Many Android projects chose to follow those guidelines and this checkstyle configuration helps enforce them on your code.

This is still Work-In-Progress! Only a few rules have been implemented so far. Check the #Contributing section below on how to contrbute ;)

Usage

You can just grab the rules file and use it with your own checkstyle setup or you can add this repo as a git submodule:

git submodule add [email protected]:hypest/checkstyle-android.git

Add it in your project's build.gradle like this:

apply from: 'checkstyle-android/checkstyle.gradle

You can now run the checks at the command line:

./gradlew checkstyle

Xml and html reports will be created in <project build dir>/reports/checkstyle/

You may opt to have the build fail if checkstyle reports issues. You can enable that by adding to build.gradle:

preBuild.dependsOn('checkstyle')

Prerequisities

You will need gradle or AndroidStudio.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and how you can contribute to this project!

License

This project is licensed under the MIT License - see the LICENSE file for details.

checkstyle-android's People

Contributors

hypest avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.