-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge pull request #370 from
MrKai77/Swiftformat
✨ Use SwiftFormat instead of SwiftLint
- Loading branch information
Showing
4 changed files
with
104 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/swiftformat.yml' | ||
- '.swiftformat.yml' | ||
- '**/*.swift' | ||
|
||
jobs: | ||
Lint: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: SwiftFormat | ||
run: swiftformat --lint . --reporter github-actions-log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--acronyms ID,URL,UUID | ||
--allman false | ||
--anonymousforeach convert | ||
--assetliterals visual-width | ||
--asynccapturing | ||
--beforemarks | ||
--binarygrouping 4,8 | ||
--categorymark "MARK: %c" | ||
--classthreshold 0 | ||
--closingparen balanced | ||
--closurevoid remove | ||
--commas inline | ||
--conflictmarkers reject | ||
--decimalgrouping 3,6 | ||
--doccomments before-declarations | ||
--elseposition same-line | ||
--emptybraces no-space | ||
--enumnamespaces always | ||
--enumthreshold 0 | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--extensionacl on-extension | ||
--extensionlength 0 | ||
--extensionmark "MARK: - %t + %c" | ||
--fractiongrouping disabled | ||
--fragment false | ||
--funcattributes preserve | ||
--generictypes | ||
--groupedextension "MARK: %c" | ||
--guardelse auto | ||
--header ignore | ||
--hexgrouping 4,8 | ||
--hexliteralcase uppercase | ||
--ifdef indent | ||
--importgrouping alpha | ||
--indent 4 | ||
--indentcase false | ||
--indentstrings false | ||
--lifecycle | ||
--lineaftermarks true | ||
--linebreaks lf | ||
--markcategories true | ||
--markextensions always | ||
--marktypes always | ||
--maxwidth none | ||
--modifierorder | ||
--nevertrailing | ||
--nospaceoperators ... | ||
--nowrapoperators | ||
--octalgrouping 4,8 | ||
--onelineforeach ignore | ||
--operatorfunc spaced | ||
--organizetypes actor,class,enum,struct | ||
--patternlet hoist | ||
--ranges spaced | ||
--redundanttype infer-locals-only | ||
--self init-only | ||
--selfrequired | ||
--semicolons inline | ||
--shortoptionals except-properties | ||
--smarttabs enabled | ||
--someany true | ||
--stripunusedargs always | ||
--structthreshold 0 | ||
--swiftversion 6.0 | ||
--tabwidth unspecified | ||
--throwcapturing | ||
--trailingclosures | ||
--trimwhitespace always | ||
--typeattributes preserve | ||
--typeblanklines remove | ||
--typemark "MARK: - %t" | ||
--varattributes preserve | ||
--voidtype tuple | ||
--wraparguments preserve | ||
--wrapcollections preserve | ||
--wrapconditions preserve | ||
--wrapeffects preserve | ||
--wrapenumcases always | ||
--wrapparameters default | ||
--wrapreturntype preserve | ||
--wrapternary default | ||
--wraptypealiases preserve | ||
--xcodeindentation disabled | ||
--yodaswap always | ||
--disable wrapMultilineStatementBraces | ||
--enable isEmpty |
This file was deleted.
Oops, something went wrong.