aboutsummaryrefslogtreecommitdiff
path: root/src/xdocs/index.xml.vm
blob: de5c2406207d33889439260f6967d8b20519f156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<?xml version="1.0" encoding="UTF-8"?>

<document xmlns="http://maven.apache.org/XDOC/2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">

  <head>
    <title>Checkstyle ${projectVersion}</title>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"/>
    <script type="text/javascript" src="js/anchors.js"/>
    <script type="text/javascript" src="js/google-analytics.js"/>
    <link rel="icon" href="images/favicon.png" type="image/x-icon" />
    <link rel="shortcut icon" href="images/favicon.ico" type="image/ico" />
  </head>

  <body>

    <section name="Overview">
      <p>
        Checkstyle is a development tool to help programmers write Java code
        that adheres to a coding standard. It automates the process of
        checking Java code to spare humans of this boring (but important)
        task. This makes it ideal for projects that want to enforce a coding
        standard.
      </p>

      <p>
        Checkstyle is highly configurable and can be made to support almost
        any coding standard. An example configuration files are supplied
        supporting the <a href="http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html">
        Sun Code Conventions</a>,
        <a href="http://checkstyle.sourceforge.net/reports/google-java-style.html">Google Java Style</a>.
      </p>

      <p>
        A good example of a report that can be produced using Checkstyle and
        <a href="http://maven.apache.org/">Maven</a> can be <a
        href="http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle.html">seen here</a>.
      </p>
    </section>

    <section name="Important Development Changes">
      <p>
        As of September 2013, the Checkstyle project is using GitHub for
        hosting the following:
      </p>
      <ul>
        <li>
          <a href="https://github.com/checkstyle/checkstyle">GitHub Source
          code repository</a> - replacing the Mercurial repository on
          SourceForge.
        </li>
        <li>
          <a
          href="https://github.com/checkstyle/checkstyle/issues">GitHub Issue
          management</a> - replacing the Bugs/Feature/Patches on
          SourceForge. All new issues should be raised at GitHub, and
          pull requests are now the preferred way to submit patches.
        </li>
      </ul>

      <p>
        SourceForge will still be used for website hosting and binary
        hosting for downloads.
      </p>

      <p>
        <b>Releases will happen at the end of each month</b> if functional changes exists in <a href="https://github.com/checkstyle/checkstyle/commits/master">master branch of our repo</a>.
      </p>

      </section>

    <section name="Features">
      <p>
        Checkstyle can check many aspects of your source code.
        It can find class design problems, method design problems.
        It also has the ability to check code layout and formatting issues.
      </p>

      <p>
        For a detailed list of available checks please refer to the <a
        href="checks.html">Checks</a> page.
      </p>
    </section>

    <section name="Download">
      <p>
        The latest release of Checkstyle can be downloaded from <a
        href="http://sourceforge.net/projects/checkstyle/files/checkstyle/">the
        SourceForge download page</a>, or <a href="http://search.maven.org/#search|gav|1|g%3A%22com.puppycrawl.tools%22%20AND%20a%3A%22checkstyle%22">Maven central</a>.
      </p>

      <p>
        If you want to live on the bleeding edge, you can <a
        href="https://github.com/checkstyle/checkstyle">checkout</a>
        the current development code from GitHub and compile
        yourself.
      </p>

    </section>

    <section name="Related Tools">
      <p>
        Checkstyle is most useful if you integrate it in your build process or
        your development environment. The distribution includes:
      </p>

      <ul>
        <li>An <a href="http://ant.apache.org/index.html">Ant</a> task.</li>
        <li>A command line tool.</li>
      </ul>

      <p>
        Additionally plug-ins are written by third-parties. Some of them are
        still based on the Checkstyle 2.4 release, although there have been
        many improvements since then. The known plug-ins are:
      </p>

      <subsection name="Active Tools" >
          <table>
              <tr>
                  <th>IDE / Build tool</th>
                  <th>Main/Initial Author</th>
                  <th>Available from</th>
                  <th>Remarks</th>
              </tr>
              <tr>
                  <td>
                      <a href="https://bitbucket.org/product/server">Bitbucket Server</a>
                  </td>
                  <td>Stephan Bechter</td>
                  <td>
                      <a href="https://marketplace.atlassian.com/plugins/at.apogeum.bitbucket.checkstyle">
                          Checkstyles for Bitbucket Server
                      </a>
                  </td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.eclipse.org">Eclipse/RAD/RDz</a></td>
                  <td>David Schneider</td>
                  <td>
                      <a href="http://eclipse-cs.sourceforge.net/">Eclipse-CS Home Page</a>
                  </td>
                  <td>
                      In 2007 was awarded
                      <a href="http://www.eclipse.org/org/press-release/20070306eclipsecommunityawards.php">
                          Best Open Source Eclipse-based Developer tool
                      </a>.
                  </td>
              </tr>
              <tr>
                  <td><a href="http://gradle.org/">Gradle</a></td>
                  <td>Hans Dockter (initial author)</td>
                  <td>Checkstyle supported out of the box</td>
                  <td><a href="https://docs.gradle.org/current/userguide/checkstyle_plugin.html">Gradle Checkstyle docs</a></td>
              </tr>
              <tr>
                  <td><a href="http://www.jetbrains.com/idea/">IntelliJ IDEA</a></td>
                  <td>James Shiell</td>
                  <td>
                      <a href="https://github.com/jshiell/checkstyle-idea">Checkstyle-idea Project Page</a>
                  </td>
                  <td>Provides real-time and on-demand scanning.</td>
              </tr>
              <tr>
                  <td><a href="http://www.jgrasp.org/">jGRASP</a></td>
                  <td>Larry Barowski</td>
                  <td><a href="http://www.jgrasp.org/">jGRASP Home Page</a></td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.eclipse.org">Eclipse/RAD/RDz</a></td>
                  <td>Roman Ivanov</td>
                  <td>
                      <a href="https://github.com/sevntu-checkstyle">Project Page</a>
                  </td>
                  <td>
                      Extension for Eclipse-CS plugin and also an incubator for
                      Checkstyle checks that are not present in main stream of
                      Checkstyle. See the
                      <a href="https://github.com/sevntu-checkstyle/sevntu.checkstyle/wiki">Wiki</a>
                      and
                      <a href="http://sevntu-checkstyle.github.io/sevntu.checkstyle/">Blog</a>
                      .
                  </td>
              </tr>
              <tr>
                  <td><a href="https://bitbucket.org/atlassian/bamboo-checkstyle-plugin">Bamboo Checkstyle plug-in</a></td>
                  <td>Atlassian (formerly by Ross Rowe and Stephan Paulicke)</td>
                  <td><a href="https://bitbucket.org/atlassian/bamboo-checkstyle-plugin">Bamboo Checkstyle plug-in Home Page</a></td>
                  <td>An add-on that will parse and record CheckStyle reports and report your style violations over time.</td>
              </tr>
              <tr>
                  <td>
                      <a href="https://codeclimate.com/">Code Climate</a>
                  </td>
                  <td>Sivakumar Kailasam</td>
                  <td>
                      <a href="https://github.com/sivakumar-kailasam/codeclimate-checkstyle">
                          codeclimate-checkstyle
                      </a>
                  </td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin">Jenkins Checkstyle plug-in</a></td>
                  <td/>
                  <td><a href="https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin">Jenkins Checkstyle plug-in Home Page</a></td>
                  <td>This plug-in is supported by the Static Analysis Collector plug-in that collects different analysis results and shows the results in aggregated trend graphs.</td>
              </tr>
              <tr>
                  <td><a href="http://maven.apache.org/">Maven</a></td>
                  <td>Vincent Massol</td>
                  <td>Checkstyle supported out of the box</td>
                  <td><a href="http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle.html">example report</a></td>
              </tr>
              <tr>
                  <td><a href="http://tide.olympe.in/">tIDE</a></td>
                  <td/>
                  <td>Built in</td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="https://netbeans.org/">NetBeans</a></td>
                  <td>Petr Hejl</td>
                  <td>
                      <a href="http://www.sickboy.cz/checkstyle/">Checkstyle Beans</a>
                  </td>
                  <td>
                      Problems with source code are displayed as annotations of
                      the source
                  </td>
              </tr>
              <tr>
                  <td><a href="https://netbeans.org/">NetBeans</a></td>
                  <td/>
                  <td>
                      <a href="https://java.net/projects/sqe/">Software Quality Environment (SQE)</a>
                  </td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.sonarqube.org/">SonarQube</a></td>
                  <td>Freddy Mallet (initial author)</td>
                  <td><a href="http://www.sonarqube.org/">SonarQube Home Page</a></td>
                  <td><a href="http://nemo.sonarqube.org/">Demo site</a></td>
              </tr>
              <tr>
                  <td><a href="http://www.jedit.org/">jEdit</a></td>
                  <td>Todd Papaioannou</td>
                  <td><a
                          href="http://plugins.jedit.org/plugins/?CheckStylePlugin">JEdit CheckStylePlugin</a></td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="https://www.scm-manager.org/">SCM-Manager</a></td>
                  <td/>
                  <td><a href="http://plugins.scm-manager.org/scm-plugin-backend/page/index.html">SCM-Manager Plugin Page</a></td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.jetbrains.com/idea/">IntelliJ IDEA</a></td>
                  <td>Jakub Slawinski</td>
                  <td>
                      <a href="http://qaplug.com/">QAPlug</a>
                  </td>
                  <td>Provides quality assurance features.</td>
              </tr>
              <tr>
                  <td><a href="http://www.jarchitect.com/">JArchitect</a></td>
                  <td/>
                  <td><a href="http://www.jarchitect.com/">JArchitect Home Page</a></td>
                  <td>Imports XML result files from CheckStyle.</td>
              </tr>
          </table>
      </subsection>

      <subsection name="Inactive / Old Tools" >
          <table>
              <tr>
                  <th>IDE / Build tool</th>
                  <th>Main/Initial Author</th>
                  <th>Available from</th>
                  <th>Remarks</th>
              </tr>
              <tr>
                  <td><a href="http://www.jetbrains.com/idea/">IntelliJ IDEA</a></td>
                  <td>Mark Lussier</td>
                  <td>
                      <a href="http://jetstyle.sourceforge.net/">JetStyle Project Page</a>
                  </td>
                  <td/>
              </tr>
              <tr>
                  <td/>
                  <td><a href="http://jcoderz.github.io/">jCoderZ</a></td>
                  <td>
                      <a href="https://github.com/jCoderZ/fawkez-code-report">fawkez-code-report</a>
                  </td>
                  <td>Combines multiple tools (CheckStyle, findbugs, PMD, Cobertura, etc.)</td>
              </tr>
              <tr>
                  <td><a href="http://www.bluej.org">BlueJ</a></td>
                  <td>Rick Giles</td>
                  <td><a href="http://bluejcheckstyle.sourceforge.net/">bluejcheckstyle home page</a></td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.eclipse.org">Eclipse/RAD/RDz</a></td>
                  <td>Marco van Meegen</td>
                  <td>
                      <a href="http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm">Checklipse Home Page</a>
                  </td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://qalab.sourceforge.net/">QALab</a></td>
                  <td>Benoit Xhenseval</td>
                  <td><a href="http://qalab.sourceforge.net/">QALab Home Page</a></td>
                  <td>Supports tracking Checkstyle statistics over time.</td>
              </tr>
              <tr>
                  <td><a href="https://netbeans.org/">NetBeans</a></td>
                  <td>Paul Goulbourn</td>
                  <td><a href="http://nbcheckstyle.sourceforge.net">nbCheckStyle</a></td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://jdee.sourceforge.net/">Emacs JDE</a></td>
                  <td>Markus Mohnen</td>
                  <td>Part of the standard JDEE distribution</td>
                  <td/>
              </tr>
              <tr>
                  <td><a href="http://www.vim.org">Vim editor</a></td>
                  <td>Xandy Johnson</td>
                  <td><a href="http://vim.sourceforge.net/scripts/script.php?script_id=448">Plugin Homepage</a></td>
                  <td>Vim file-type plug-in</td>
              </tr>
          </table>
      </subsection>

      <p>
        If you have written a plugin for other IDEs, please let us know, so we
        can provide a link here.
      </p>

    </section>

  </body>
</document>