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

Using .editorconfig

    XMLWordPrintable

Details

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

    Description

      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

      ```

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: