This updates the BlueJ Checkstyle Extension (http://bluejcheckstyle.sourceforge.net) to work with BlueJ 4.1, Checkstyle 8.4, and Java 1.8.
The original author of the extension indicates a desire to rehost and maintain the project. (Update 20 March 2018: See https://sourceforge.net/p/bluejcheckstyle/code/ref/master/)
The intent of this repository is to tide over the user community until those activities can take place. Thus, minimal modifications to original sources, build process, and documentation have been made, as necessary to support the current environment.
Primary contributors to this updating effort were students enrolled in the Fall 2017 semester of CS4250, Software Engineering Principles, at Metropolitan State University of Denver.
The BlueJ Checkstyle Extension is a wrapper for BlueJ to use Checkstyle, a source code analysis tool to help programmers write Java code that adheres to a coding standard.
The user can choose the Checkstyle configuration file that specifies which checks are applied to the Java source code. The extension distribution includes sample configuration files for the Sun Code Conventions, course-specific configuration files used at Virginia Tech and Metro State Denver, and the Big Java Coding Guidelines.
BlueJ 4.1.x running on JDK 8 (1.8.x) or higher.
The update of the BlueJ Checkstyle extension can be downloaded from the GitHub repository using this direct link to the extension jar file.
-
Download the latest version of the extension jar file.
-
Place the jar file in BlueJ's extensions directory:
- Under Windows or Unix, place the jar in
<BLUEJ_HOME>/lib/extensions
, where<BLUEJ_HOME>
is the directory where BlueJ is installed. - Under Mac OSX, place the jar in
/Applications/BlueJ.app/Contents/Resources/Java/extensions
(control-clickBlueJ.app
and choose Show Package Contents) or in~/Library/Preferences/org.bluej/extensions
. - If you are upgrading from an earlier version, remove the older
checkstyle-extension*.jar
file from your extensions directory.
- Under Windows or Unix, place the jar in
- Open BlueJ.
- To run a check on all files in the current package, choose
Checkstyle
from theTools
menu.
-
The extension uses its built-in
default_checks.xml
file unless you specify a different configuration file in Preferences. -
To specify the Checkstyle configuration file or properties file:
- Choose
Preferences...
from theTools
menu (or from theBlueJ
menu under Mac OSX). - In the Preferences panel, click on the
Extensions
tab. - In the "Checkstyle" section, enter the file name for the checkstyle configuration XML file and/or properties file you wish to use.
- In addition to local file names, you can also use URLs in the preferences settings.
- To use one of the built-in configuration files, simply enter one of these file names with no path or directory:
sun_checks.xml
(Sun Java code conventions)bigjava_checks.xml
(Big Java coding conventions)cs1114_checks.xml
(Virginia Tech CS style)cs4250_checks.xml
(Metro State Denver CS style)
- Choose