zbeekman / EditorConfig-Action

🔎A GitHub Action to check, enforce & fix EditorConfig style violations
https://github.com/marketplace/actions/editorconfig-action
MIT License
43 stars 15 forks source link

RFE: Ability to optionally pass flags directly to eclint #15

Open zbeekman opened 5 years ago

zbeekman commented 5 years ago

Describe the solution you'd like

eclint Accepts flags, mostly to override settings like indent_style, indent_size, etc. Add a mechanism to pass these directly. At the time of this writing eclint 2.8.1 supports the following flags:

Options:
  --help                          Show help                            [boolean]
  --version                       Show version number                  [boolean]
  --indent_style, -i              Indentation Style
                                            [choices: "tab", "space", undefined]
  --indent_size, -s               Indentation Size (in single-spaced characters)
                                                                        [number]
  --tab_width, -t                 Width of a single tabstop character   [number]
  --end_of_line, -e               Line ending file format (Unix, DOS, Mac)
                                        [choices: "lf", "crlf", "cr", undefined]
  --charset, -c                   File character encoding
    [choices: "latin1", "utf-8", "utf-8-bom", "utf-16le", "utf-16be", undefined]
  --trim_trailing_whitespace, -w  Denotes whether whitespace is allowed at the
                                  end of lines                         [boolean]
  --insert_final_newline, -n      Denotes whether file should end with a newline
                                                                       [boolean]
  --max_line_length, -m           Forces hard line wrapping after the amount of
                                  characters specified                  [number]
  --block_comment_start           Block comments start with             [string]
  --block_comment                 Lines in block comment start with     [string]
  --block_comment_end             Block comments end with               [string]

Describe alternatives you've considered

Doing nothing