Uploaded image for project: 'Spring Boot & Cloud'
  1. Spring Boot & Cloud
  2. SB-203

Using .editorconfig

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • None

      Allow the upstream projects to follow a standard formatting across, typically leveraging the http://editorconfig.org/.

      This file needs to be added to every project either at root if its multiple module project.

      The sample .editorconfig file looks like

      ```

      1. EditorConfig is awesome: http://EditorConfig.org
      1. top-most EditorConfig file
        root = true
      1. Unix-style newlines with a newline ending every file
        [*]
        end_of_line = lf
        insert_final_newline = true
      1. Matches multiple files with brace expansion notation
      2. Set default charset
        [*. {js,xml,yaml,yml,json}

        ]
        charset = utf-8
        indent_style = space
        indent_size = 2

      1. 4 space indentation
        [*.java]
        indent_style = space
        indent_size = 4

      ```

              cmoullia Charles Moulliard
              ksampath@redhat.com Kamesh Sampath (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: