Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

License

LGPL-2.1, Apache-2.0 licenses found

Licenses found

LGPL-2.1
LICENSE
Apache-2.0
LICENSE.apache20
NotificationsYou must be signed in to change notification settings

checkstyle/checkstyle


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

The latest release version can be found atGitHub releasesor atMaven repo.

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

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

Table of Contents

Quick Start

$ 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.javaclass Test {  public voidfoo() {    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.javaStarting 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 theContribution Guidelinesfor information on how to contribute to the project. This includes creating issues, submitting pullrequests, and setting up your development environment.

Build Instructions

Please see theCheckStyle Documentation forinformation on how to build the project.

Feedback and Support

  • Visit ourDiscussions Page, where youcan ask questions and discuss the project with other users and contributors. This is ourpreferred method of communication for topicslike usage and configuration questions, debugging, and other feedback.
  • Stack Overflow is another place toask questions about Checkstyle usage.
  • If you are interested in contributing to the project, you can join ourDiscord Contributors Chatwith invite link.
  • OurGoogle Groups Forum is amailing list for discussion and support; however, we may be slow to respond there.

Javadoc

Take a look at ourjavadoc to seeour API documentation.

Sponsor Checkstyle

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

Licensing

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

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.

Topics

Resources

License

LGPL-2.1, Apache-2.0 licenses found

Licenses found

LGPL-2.1
LICENSE
Apache-2.0
LICENSE.apache20

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp