This is an automated email from the ASF dual-hosted git repository.

nkruber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-training.git


The following commit(s) were added to refs/heads/master by this push:
     new 08f5bf4  [FLINK-23667] fix code formatting IDE instructions
08f5bf4 is described below

commit 08f5bf4d93d241f58d67148dc3e054a2325b64a0
Author: Nico Kruber <[email protected]>
AuthorDate: Fri Aug 6 13:52:55 2021 +0200

    [FLINK-23667] fix code formatting IDE instructions
    
    google-java-format should only be applied to Java files.
---
 CONTRIBUTING.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 92cfe6a..9e6eb3b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -16,11 +16,12 @@ formatting upon saving with these steps:
 1. Install the [google-java-format
    plugin](https://plugins.jetbrains.com/plugin/8527-google-java-format) and
    enable it for the project
-2. In the plugin settings, change the code style to "AOSP" (4-space indents)
+2. In the plugin settings, enable the plugin and change the code style to 
"AOSP" (4-space indents).
 3. Install the [Save Actions
    plugin](https://plugins.jetbrains.com/plugin/7642-save-actions)
-4. Enable the plugin, along with "Optimize imports" and "Reformat file" but
-   ignoring `.*README\.md`.
+4. Enable the plugin, along with "Optimize imports" and "Reformat file".
+5. In the "Save Actions" settings page, set up a "File Path Inclusion" for 
`.*\.java`. Otherwise, you will get
+   unintended reformatting in other files you edit.
 
 ## Ignore refactoring commits
 

Reply via email to