Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add note on running checks from Maven.

...

(Please help us enhance these instructions to provide a step-by-step configuration for NetBeans)

Checking code style from commandline

If you do not use one of the above IDEs to write your code, you can always verify your code from the command-line using the following Maven command.  This command can be run from the root source directory ([dspace-source]) to check all source code, or from within an individual module (e.g. [dspace-source]/dspace-api/) to only check that module.

Code Block
# If the below checkstyle:check command complains about missing SNAPSHOT dependencies, then you may need to first run:
# mvn install


# This checks the code style of all source code under the current directory
mvn -U checkstyle:check


Fixing existing code / PRs

...