diff --git a/README.md b/README.md index d3d3b9e..76d54e7 100644 --- a/README.md +++ b/README.md @@ -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**. diff --git a/checkstyle-idea.xml b/checkstyle-idea.xml deleted file mode 100644 index 791df51..0000000 --- a/checkstyle-idea.xml +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/checkstyle.gradle b/checkstyle.gradle deleted file mode 100644 index fca8529..0000000 --- a/checkstyle.gradle +++ /dev/null @@ -1,6 +0,0 @@ -apply plugin: 'checkstyle' - -checkstyle { - toolVersion = '6.14.1' - config resources.text.fromString('https://bitbucket.org/paypit/codestyle/raw/master/checkstyle.xml'.toURL().getText()) -} diff --git a/checkstyle.xml b/checkstyle.xml deleted file mode 100644 index 20206d6..0000000 --- a/checkstyle.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/intellij.xml b/intellij.xml index 6164e5a..38ff7f6 100644 --- a/intellij.xml +++ b/intellij.xml @@ -14,7 +14,6 @@ - @@ -40,7 +39,13 @@