You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Checkstyle

  • In StreamPipes we follow the Google Java Checkstyle for the Java code. [Link]
  • For automatic validation we have a checkstyle.xml file [Link].
    • If you want to change something, please edit it in the checkstyle.xml file and provide a PR with the changes.

Custom StreamPipes Guidelines

  • Here we can collect guidelines and best practices relevant for StreamPipes

Configure IDE

IntelliJ

  • Install IntelliJ Checkstyle Plugin [Link]
  • Configuration:
    • Open Settings ( Ctrl + Alt + S)
    • Tab Editor -> Code Style
      1. Select Scheme Project 
      2. Click on "Show Schema Settings" on the gear wheel next to Schema
      3. select import scheme -> checkstyle configuration -> select checkstyle.xml file from tools directory (../incubator-streampipes/tools/maven/checkstyle.xml)
      4. Click ok.

    •   Tab Tools -> Checkstyle
      1. Add Style from tools directory  (../incubator-streampipes/tools/maven/checkstyle.xml)
      2. Activate checkbox Active
      3.  Set Scan Cope
      4. Press OK

Run in  IDE



  • No labels