Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 3.05 KB

README.md

File metadata and controls

57 lines (48 loc) · 3.05 KB

KdbInsideBrains

Version: 5.6.0

  • Requires IntelliJ build 241.* or older

Code changes: e2ccb342e391393c883476571dacad20f7fb82c5

Edits:

  • Default space after comma
  • Default space around assignment operator
    • Edited this style so that it's space after not 'around'
    • E.g. myTable: select from data not myTable : select from data

Steps:

  1. Clone forked repo and checkout 5.6.0 branch
  2. Open project in IntelliJ
  3. Set project SDK to JDK 17
  4. Set Gradle JVM to JDK 17
    • Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM
  5. From the Gradle tool window run KdbInsideBrains > Tasks > build > build
  6. Find packaged JAR at build\libs\KdbInsideBrains-5.6.0.jar
  7. Extract the following files:
    • org\kdb\inside\brains\lang\formatting\QCodeStyleSettings.class
    • org\kdb\inside\brains\lang\formatting\QSpacingStrategy.class
  8. Download IntelliJ plugin zip 5.6.0 from JetBrains
    • All plugin versions
    • Alternatively you can also use the plugin zip locally built by Gradle for testing purposes:
      • build\distributions\KdbInsideBrains-5.6.0.zip
  9. Patch JAR file contained in plugin zip with above class files

google-java-format

Version: 1.13.0

Code changes: 123f00950f6aca3fdc96eb0f21c9553f21101706

Edits:

  • Change max line length from 100 to 120
  • Fix comment wrapping

Steps:

  1. Clone forked repo and checkout 1.13.0 branch
  2. Open project in IntelliJ
  3. Set project SDK to JDK 11
  4. From the Maven tool window run Google Java Format Parent > Lifecycle > package
    • Make sure to enable 'Skip Tests' mode
    • image
  5. Find packaged JAR at core\target\google-java-format-1.13.0.jar
  6. Extract the following files:
    • com\google\googlejavaformat\java\Formatter.class
    • com\google\googlejavaformat\java\JavaCommentsHelper.class
    • com\google\googlejavaformat\java\javadoc\JavadocFormatter.class
  7. Download IntelliJ plugin zip 1.13.0 from JetBrains
  8. Patch JAR file contained in plugin zip with above class files