checkstyle.
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard.
Here is the list of declaration for checkstyle. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>5.5</version> </dependency>
If you think this Maven repository POM file listing for checkstyle is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:GNU Lesser General Public License
URL: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
The checkstyle-5.5 has 6 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
Parser | antlr 2.7.7 A framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions. | 120 |
Console | commons-cli 1.2 Commons CLI provides a simple API for presenting, processing and validating a command line interface. | 305 |
Library | google-collections 1.0 Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0 | 42 |
Build | ant 1.7.0 Apache Ant | 227 |
JUnit | junit 4.10 JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. | 1957 |
The following table lists the most popular artifacts which are depending on checkstyle-5.5. Their categories and depend by count are also listed.
Category | Artifact | Depended By Count |
---|---|---|
Library | sonar-squid-java-plugin 3.2 Squid analyzer for Java. | 14 |
The following plugins are used in the checkstyle-5.5.jar
The following packages are defined in the checkstyle-5.5.jar
com.puppycrawl.tools.checkstyle com.puppycrawl.tools.checkstyle.api com.puppycrawl.tools.checkstyle.checks com.puppycrawl.tools.checkstyle.checks.annotation com.puppycrawl.tools.checkstyle.checks.blocks com.puppycrawl.tools.checkstyle.checks.coding com.puppycrawl.tools.checkstyle.checks.design com.puppycrawl.tools.checkstyle.checks.duplicates com.puppycrawl.tools.checkstyle.checks.header com.puppycrawl.tools.checkstyle.checks.imports com.puppycrawl.tools.checkstyle.checks.indentation com.puppycrawl.tools.checkstyle.checks.javadoc com.puppycrawl.tools.checkstyle.checks.metrics com.puppycrawl.tools.checkstyle.checks.modifier com.puppycrawl.tools.checkstyle.checks.naming com.puppycrawl.tools.checkstyle.checks.regexp com.puppycrawl.tools.checkstyle.checks.sizes com.puppycrawl.tools.checkstyle.checks.whitespace com.puppycrawl.tools.checkstyle.doclets com.puppycrawl.tools.checkstyle.filters com.puppycrawl.tools.checkstyle.grammars com.puppycrawl.tools.checkstyle.gui
Here is the content of the POM file.
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <!-- TIPS: - use "mvn versions:display-dependency-updates" to see what dependencies have updates available. - use "mvn versions:display-plugin-updates" to see whan plugins have updates available. --> <!-- Used for making releases. --> <parent> <artifactId>oss-parent</artifactId> <groupId>org.sonatype.oss</groupId> <version>5</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>5.5</version> <packaging>jar</packaging> <name>checkstyle</name> <url>http://checkstyle.sourceforge.net/</url> <issueManagement> <system>SourceForge</system> <url>http://sourceforge.net/tracker/?group_id=29721</url> </issueManagement> <ciManagement> <system>hudson</system> <url>http://hudson.fazend.com:8081/hudson/job/Checkstyle</url> </ciManagement> <inceptionYear>2001</inceptionYear> <description>Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard</description> <licenses> <license> <name>GNU Lesser General Public License</name> <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> </license> </licenses> <scm> <connection>scm:hg:http://checkstyle.hg.sourceforge.net:8000/hgroot/checkstyle/checkstyle</connection> <developerConnection>scm:hg:ssh://oburn@checkstyle.hg.sourceforge.net/hgroot/checkstyle/checkstyle</developerConnection> <url>http://checkstyle.hg.sourceforge.net/hgweb/checkstyle/</url> </scm> <distributionManagement> <site> <id>checkstyle-snapshot-site</id> <name>Snapshot Site</name> <url>scp://shell.sourceforge.net/home/groups/c/ch/checkstyle/htdocs/snapshot</url> </site> </distributionManagement> <mailingLists> <mailingList> <name>checkstyle-announce</name> <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=checkstyle-announce</archive> <subscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-announce</subscribe> <unsubscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-announce</unsubscribe> </mailingList> <mailingList> <name>checkstyle-commits</name> <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=checkstyle-commits</archive> <subscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-commits</subscribe> <unsubscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-commits</unsubscribe> </mailingList> <mailingList> <name>checkstyle-devel</name> <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=checkstyle-devel</archive> <subscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-devel</subscribe> <unsubscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-devel</unsubscribe> </mailingList> <mailingList> <name>checkstyle-user</name> <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=checkstyle-user</archive> <subscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-user</subscribe> <unsubscribe>https://lists.sourceforge.net/mailman/listinfo/checkstyle-user</unsubscribe> </mailingList> </mailingLists> <properties> <project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding> <testinputs.dir>${basedir}/src/testinputs/com/puppycrawl/tools/checkstyle</testinputs.dir> <testsrcs.dir>${basedir}/src/tests/com/puppycrawl/tools/checkstyle</testsrcs.dir> <projectVersion>${project.version}</projectVersion> <tools.jar.version>1.5.0</tools.jar.version> <tools.jar.path>${java.home}/../lib/tools.jar</tools.jar.path> </properties> <dependencies> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.7</version> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils-core</artifactId> <version>1.8.3</version> </dependency> <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>com.google.collections</groupId> <artifactId>google-collections</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <!-- Do not upgrade as this is the earliest version of ANT supported --> <version>1.7.0</version> <scope>provided</scope> </dependency> <!-- test scope stuff --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> </dependencies> <build> <sourceDirectory>src/checkstyle</sourceDirectory> <resources> <resource> <directory>${basedir}/src/checkstyle</directory> <includes> <include>**/*.dtd</include> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </resource> </resources> <testResources> <testResource> <directory>src/testinputs/resources</directory> </testResource> </testResources> <testSourceDirectory>src/tests</testSourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version> <configuration> <xdocDirectory>${basedir}/src/xdocs</xdocDirectory> <validate>true</validate> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <id>enforce-versions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireJavaVersion> <version>1.5</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <!-- Generate the grammar --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>antlr-maven-plugin</artifactId> <version>2.2</version> <configuration> <sourceDirectory>${basedir}/src/checkstyle/com/puppycrawl/tools/checkstyle/grammars</sourceDirectory> <grammars>java.g</grammars> </configuration> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> <!-- Generate checkstylecompilation.properties --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>ant-phase-compile</id> <phase>compile</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <property name="mvn.project.build.outputDirectory" value="${project.build.outputDirectory}" /> <property name="mvn.project.version" value="${project.version}" /> <property name="mvn.compile_classpath" refid="maven.compile.classpath" /> <ant antfile="ant-phase-compile.xml" /> </target> </configuration> </execution> <execution> <id>ant-phase-verify</id> <phase>verify</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <property name="mvn.project.build.directory" value="${project.build.directory}" /> <property name="mvn.project.version" value="${project.version}" /> <property name="mvn.runtime_classpath" refid="maven.runtime.classpath" /> <ant antfile="ant-phase-verify.xml" /> </target> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>1.7.1</version> </dependency> </dependencies> </plugin> <!-- Used to set custom properties --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.9</version> <configuration> <systemProperties> <property> <name>testinputs.dir</name> <value>${testinputs.dir}</value> </property> <property> <name>testsrcs.dir</name> <value>${testsrcs.dir}</value> </property> </systemProperties> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2</version> <executions> <execution> <id>runner</id> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>com.puppycrawl.tools.checkstyle.gui.Main</mainClass> <classpathScope>runtime</classpathScope> </configuration> </plugin> <!-- Ensure the manifest has all the gory details --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.1</version> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.1</version> <configuration> <instrumentation> <excludes> <exclude>com/puppycrawl/tools/checkstyle/CheckStyleTask*.class</exclude> <exclude>com/puppycrawl/tools/checkstyle/doclets/*.class</exclude> <exclude>com/puppycrawl/tools/checkstyle/grammars/*.class</exclude> <exclude>com/puppycrawl/tools/checkstyle/gui/*.class</exclude> </excludes> </instrumentation> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-linkcheck-plugin</artifactId> <version>1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8</version> <configuration> <source>1.5</source> </configuration> <reportSets> <reportSet> <id>default</id> <reports> <report>javadoc</report> </reports> </reportSet> </reportSets> </plugin> <!-- THE FOLLOWING DOES NOT WORK! <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-linkcheck-plugin</artifactId> <configuration> <excludedLinks><excludedLink>**/apidocs/**</excludedLink></excludedLinks> </configuration> </plugin> --> </plugins> </reporting> <profiles> <profile> <!-- To be used when making distributions. Run the command--> <!-- mvn -Pdistro package --> <id>distro</id> <build> <plugins> <!-- Generates the site, which is required for assembly --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-3</version> <executions> <execution> <id>gen-site</id> <phase>prepare-package</phase> <goals> <goal>site</goal> </goals> </execution> </executions> </plugin> <!-- Creates the all inclusive uber jar --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>all</shadedClassifierName> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.puppycrawl.tools.checkstyle.Main</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> <!-- Creates the binary and source distributions --> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <configuration> <descriptors> <descriptor>config/assembly-bin.xml</descriptor> <descriptor>config/assembly-src.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-bundle</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>release</id> <distributionManagement> <site> <id>checkstyle-site</id> <name>Default Site</name> <url>scp://shell.sourceforge.net/home/groups/c/ch/checkstyle/htdocs</url> </site> </distributionManagement> </profile> <profile> <id>release-sign-artifacts</id> <activation> <property> <name>performRelease</name> <value>true</value> </property> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- Bring in tools.jar for platforms which provide it --> <profile> <id>tools.jar-sun</id> <activation> <property> <name>java.vendor</name> <value>Sun Microsystems Inc.</value> </property> </activation> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>${tools.jar.version}</version> <scope>system</scope> <systemPath>${tools.jar.path}</systemPath> </dependency> </dependencies> </profile> <profile> <id>default-tools.jar-oracle</id> <activation> <property> <name>java.vendor</name> <value>Oracle Corporation</value> </property> </activation> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>${tools.jar.version}</version> <scope>system</scope> <systemPath>${tools.jar.path}</systemPath> </dependency> </dependencies> </profile> </profiles> </project>