Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
# IntelliJ
# codestyle (deprecated)

To use the IntelliJ code style, copy intellij.xml into `~/Library/Preferences/IdeaIC15/codestyles`,
restart IntelliJ, and select Payit Style in Preferences: `Editor -> Code Style -> Scheme`
This repository is deprecated and will be archived.

## Checkstyle Plugin
1. `IntelliJ IDEA -> Preferences` or (`⌘,`)/(`CMD+,`).
2. `Plugins -> Marketplace -> CheckStyle-IDEA` and `Install`.
3. In the same preferences (`⌘,`) after the restart, at the bottom of the side-menu, go to `Other Settings -> Checkstyle`.
4. Click the `+` at the bottom of Configuration File:
- Description: PayIt
- Use a local Checkstyle file: [ Upload `checkstyle-idea.xml` ]
5. Check the active box for PayIt and hit `Apply -> OK`.
PayIt's Java style now lives in [java_plugin](https://github.com/payitgov/java_plugin):

To use:
At the bottom of the IntelliJ IDE, you should see the CheckStyle tab (look for a red squiggly line). Ensure that you have `PayIt` selected as the rule and use the buttons on the left to run CheckStyle.
- **IntelliJ scheme:** [idea/intellij.xml](https://github.com/payitgov/java_plugin/blob/main/idea/intellij.xml)

# Gradle

To apply the checkstyle plugin in Gradle, add this line to your script, in an `allprojects` block if applicable: `apply from: 'https://bitbucket.org/paypit/codestyle/raw/master/checkstyle.gradle'`

This adds two tasks per project: `checkstyleMain` and `checkstyleTest`. These tasks also run when you run `build` or `check`.
To install the formatter: `Settings -> Editor -> Code Style -> Java`, gear menu next to *Scheme*, `Import Scheme -> IntelliJ IDEA code style XML`, pick that `idea/intellij.xml`, then select **Payit Style**.
171 changes: 0 additions & 171 deletions checkstyle-idea.xml

This file was deleted.

6 changes: 0 additions & 6 deletions checkstyle.gradle

This file was deleted.

174 changes: 0 additions & 174 deletions checkstyle.xml

This file was deleted.

Loading