Skip to content

LiamAttardcol/SpringDevFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Spring Dev Team Java Styling

Installation

Set Up the Code style XML file

  1. Install the checkstyle plugin 'checkstyle idea'

(**Intellij**: File → Settings → Plugins → Install and restart)
  1. Configure it to use our custom checkstyle.xml

(**Intellij**: File → Settings → Tools → CheckStyle → '+' sign → Use a local Checkstyle file → tick the active checkbox)
**and** ( File → Settings → Editor → Code Style → ⚙️ icon → select the new code style)
  1. Go back to your editor main page elect, Select the 'Checkstyle' tab at the bottom, set rules to the checkstyle created.

Setting the Formatter

  1. Install the Google Formatter plugin 'google-java-format'

(File → Settings → Plugins → Install and restart) 1. Set it from the settings
(File → Settings → google-java-format settings → Enable checkbox → set Code Style: Android Open Source Project (AOSP) style)

For Other IDEs install the JAR file and set the --aosp --skip-sorting-imports params from https://github.com/google/google-java-format

About

Files Required to set the Java Formatter and Linter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published