Skip to content

Commit

Permalink
🔀 Merge pull request #370 from MrKai77/Swiftformat
Browse files Browse the repository at this point in the history
✨ Use SwiftFormat instead of SwiftLint
  • Loading branch information
MrKai77 authored Jun 4, 2024
2 parents f179e74 + e25f6db commit bde6ee4
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 47 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
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
22 changes: 0 additions & 22 deletions .github/workflows/swiftlint.yml

This file was deleted.

87 changes: 87 additions & 0 deletions .swiftformat
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
25 changes: 0 additions & 25 deletions .swiftlint.yml

This file was deleted.

0 comments on commit bde6ee4

Please sign in to comment.