Repository: flink Updated Branches: refs/heads/release-1.5 b2fad2e7e -> 23975b4a1
[FLINK-9348] [docs] Scalastyle documentatiom for IntelliJ IDE setup Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/23975b4a Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/23975b4a Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/23975b4a Branch: refs/heads/release-1.5 Commit: 23975b4a1833a4935da559d761b1e9a2d1a7418a Parents: b2fad2e Author: Yazdan.JS <[email protected]> Authored: Sat May 12 17:00:54 2018 -0400 Committer: Stephan Ewen <[email protected]> Committed: Sun May 13 14:20:26 2018 +0200 ---------------------------------------------------------------------- docs/internals/ide_setup.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/23975b4a/docs/internals/ide_setup.md ---------------------------------------------------------------------- diff --git a/docs/internals/ide_setup.md b/docs/internals/ide_setup.md index 340544d..dd72c6b 100644 --- a/docs/internals/ide_setup.md +++ b/docs/internals/ide_setup.md @@ -81,7 +81,7 @@ to enable support for Scala projects and files: files for the IDE to work with but without installing libraries. 8. Build the Project (Build -> Make Project) -### Checkstyle +### Checkstyle For Java IntelliJ supports checkstyle within the IDE using the Checkstyle-IDEA plugin. 1. Install the "Checkstyle-IDEA" plugin from the IntelliJ plugin repository. @@ -108,10 +108,15 @@ Once the plugin is installed you can directly import `"tools/maven/checkstyle.xm You can scan an entire module by opening the Checkstyle tools window and clicking the "Check Module" button. The scan should report no errors. +### Checkstyle For Scala + +Enable scalastyle in Intellij by selecting Settings -> Editor -> Inspections, then searching for "Scala style inspections". Also Place `"tools/maven/scalastyle_config.xml"` in the `"<root>/.idea"` or `"<root>/project"` directory. + <span class="label label-info">Note</span> Some modules are not fully covered by checkstyle, which include `flink-core`, `flink-optimizer`, and `flink-runtime`. Nevertheless please make sure that code you add/modify in these modules still conforms to the checkstyle rules. + ## Eclipse **NOTE:** From our experience, this setup does not work with Flink
