diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..89b2212 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*.{sh,swift}] +indent_style = tab + +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.github/workflows/swiftformat-lint.yaml b/.github/workflows/swiftformat-lint.yaml index 50efe07..532232f 100644 --- a/.github/workflows/swiftformat-lint.yaml +++ b/.github/workflows/swiftformat-lint.yaml @@ -16,4 +16,4 @@ jobs: with: url: https://github.com/nicklockwood/SwiftFormat - name: Lint - run: swiftformat --lint . + run: swiftformat --lint --reporter github-actions-log . diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b163d18..f511183 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ + "editorconfig.editorconfig", "sswg.swift-lang", "timonwong.shellcheck" ]