GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - markitect-dev/checkstyle: Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

15,623 Commits
15,623 Commits

Folders and files

NameName
Last commit message
Last commit date
.ci
.ci
 
 
.circleci
.circleci
 
 
.github
.github
 
 
.mvn
.mvn
 
 
.semaphore
.semaphore
 
 
config
config
 
 
docs
docs
 
 
src
src
 
 
.cirrus.yml
.cirrus.yml
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.mdlrc
.mdlrc
 
 
.shellcheckrc
.shellcheckrc
 
 
LICENSE
LICENSE
 
 
LICENSE.apache20
LICENSE.apache20
 
 
README.md
README.md
 
 
RIGHTS.antlr
RIGHTS.antlr
 
 
SECURITY.md
SECURITY.md
 
 
appveyor.yml
appveyor.yml
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
cdg-pitest-licence.txt
cdg-pitest-licence.txt
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
rewrite.yml
rewrite.yml
 
 

Repository files navigation

Checkstyle - Java Code Quality Tool


Checkstyle is a tool that ensures adherence to a code standard or a set of best practices.

The latest release version can be found at GitHub releases or at Maven repo.

Each-commit builds of maven artifacts can be found at Maven Snapshot repository.

Documentation is available in HTML format, see https://checkstyle.org/checks.html .

Table of Contents

  • Quick Start
  • Contributing
  • Feedback and Support
  • Javadoc
  • Sponsor Checkstyle
  • Licensing

Quick Start

  • Download our Latest Release from GitHub or Add Checkstyle to your build from Maven Central.
  • Read our Documentation for usage and configuration.
$ cat config.xml
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
          "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
          "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
  <module name="TreeWalker">
    <module name="FallThrough"/>
  </module>
</module>

$ cat Test.java
class Test {
  public void foo() {
    int i = 0;
    while (i >= 0) {
      switch (i) {
        case 1:
        case 2:
          i++;
        case 3: // violation 'fall from previous branch of the switch'
          i++;
      }
    }
  }
}

$ java -jar checkstyle-10.18.1-all.jar -c config.xml Test.java
Starting audit...
[ERROR] Test.java:9:9: Fall through from previous branch of switch statement [FallThrough]
Audit done.
Checkstyle ends with 1 errors.

Contributing

Thanks for your interest in contributing to CheckStyle! Please see the Contribution Guidelines for information on how to contribute to the project. This includes creating issues, submitting pull requests, and setting up your development environment.

Build Instructions

Please see the CheckStyle Documentation for information on how to build the project.

Feedback and Support

  • Visit our Discussions Page, where you can ask questions and discuss the project with other users and contributors. This is our preferred method of communication for topics like usage and configuration questions, debugging, and other feedback.
  • Stack Overflow is another place to ask questions about Checkstyle usage.
  • If you are interested in contributing to the project, you can join our Discord Contributors Chat with invite link.
  • Our Google Groups Forum is a mailing list for discussion and support; however, we may be slow to respond there.

Javadoc

Take a look at our javadoc to see our API documentation.

Sponsor Checkstyle

Checkstyle is an open-source project that is developed and maintained by volunteers. If you find Checkstyle useful, please consider sponsoring the project. Your support helps us to maintain and improve Checkstyle.

  • Liberapay
  • OpenCollective

Licensing

Checkstyle is licensed under the GNU LGPL v2.1 License. Checkstyle uses libraries:

  • ANTLR
  • Apache Commons
  • Google Guava
  • Picocli

Development Tools Powered by

JetBrains logo.

JProfiler logo.

About

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

checkstyle.org

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.