Giter VIP home page Giter VIP logo

Comments (4)

necronet avatar necronet commented on July 24, 2024

what do you mean with Checkstyle ?

from actionbarsherlock.

JakeWharton avatar JakeWharton commented on July 24, 2024

Checkstyle is a maven plugin which will check your Java files for various syntactical stylings (e.g., using spaces and not tabs, uppercase variable names for static final constants, etc.).

You can see the checkstyle file on the main library project here. If you are using maven you can run the following command to perform the checks:

mvn clean checkstyle:checkstyle

The output will be in target/checkstyle-result.xml.

Currently it's only run on the library and the maps plugin. I'd eventually like to have it be run on all the files since there are some styling inconsistencies with the samples and tests...

from actionbarsherlock.

iNoles avatar iNoles commented on July 24, 2024

I made a shell file for checkstyle in my own project.

java -jar checkstyle/checkstyle-5.4-all.jar -c checkstyle/checkstyle_checks.xml -r $1/src

from actionbarsherlock.

JakeWharton avatar JakeWharton commented on July 24, 2024

The maven plugin will run it on everything under the src/ directory for a module. Problem is that you have to include the checkstyle.xml file in each module. I think all I have to do is define the path to it as a variable in the root pom.xml and then use that variable to pass to the plugin in each module.

Just haven't gotten around to it. Merging in ACLv4r4 is more important :)

from actionbarsherlock.

Related Issues (20)

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.