diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..1a4da9972 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# @see https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +max_line_length = 100 + +[*.{md,markdown}] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 +max_line_length = off + +[{bw-dev,fr-dev,LICENSE}] +max_line_length = off + +[*.{csv,json,html,md,po,py,svg,tsv}] +max_line_length = off + +[fonts/**] +insert_final_newline = unset diff --git a/.github/workflows/linters-global.yaml b/.github/workflows/linters-global.yaml new file mode 100644 index 000000000..b815ba628 --- /dev/null +++ b/.github/workflows/linters-global.yaml @@ -0,0 +1,21 @@ +# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions +name: Global Linters + +on: + push: + branches: [ main, ci ] + pull_request: + branches: [ main, ci ] + +jobs: + linters: + name: linters + runs-on: ubuntu-20.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: EditorConfig lint + uses: greut/eclint-action@v0