Rely on SPM plugins to consume SwiftLint and SwiftFormat
Use their latest releases and fix some violations and issues. # Conflicts: # .github/workflows/linting.yml # .github/workflows/testing.yml
This commit is contained in:
parent
358908f161
commit
1bdf9d684b
40 changed files with 126 additions and 186 deletions
13
.swiftformat
13
.swiftformat
|
|
@ -19,6 +19,7 @@
|
|||
blankLinesAroundMark, \
|
||||
blankLinesAtEndOfScope, \
|
||||
blankLinesAtStartOfScope, \
|
||||
blankLinesBetweenChainedFunctions, \
|
||||
# blankLinesBetweenImports, \
|
||||
blankLinesBetweenScopes, \
|
||||
blockComments, \
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
extensionAccessControl, \
|
||||
fileHeader, \
|
||||
# genericExtensions, \
|
||||
headerFileName, \
|
||||
hoistPatternLet, \
|
||||
indent, \
|
||||
initCoderUnavailable, \
|
||||
|
|
@ -41,9 +43,11 @@
|
|||
linebreaks, \
|
||||
modifierOrder, \
|
||||
# markTypes, \
|
||||
noExplicitOwnership, \
|
||||
numberFormatting, \
|
||||
# opaqueGenericParameters, \
|
||||
# organizeDeclarations, \
|
||||
# preferForLoop, \
|
||||
preferKeyPath, \
|
||||
redundantBackticks, \
|
||||
redundantBreak, \
|
||||
|
|
@ -52,6 +56,7 @@
|
|||
redundantFileprivate, \
|
||||
redundantGet, \
|
||||
redundantInit, \
|
||||
redundantInternal, \
|
||||
redundantLet, \
|
||||
redundantLetError, \
|
||||
redundantNilInit, \
|
||||
|
|
@ -62,11 +67,13 @@
|
|||
redundantRawValues, \
|
||||
redundantReturn, \
|
||||
redundantSelf, \
|
||||
redundantStaticSelf, \
|
||||
redundantType, \
|
||||
redundantVoidReturnType, \
|
||||
semicolons, \
|
||||
sortedImports, \
|
||||
sortedSwitchCases, \
|
||||
sortImports, \
|
||||
sortSwitchCases, \
|
||||
sortTypealiases, \
|
||||
spaceAroundBraces, \
|
||||
spaceAroundBrackets, \
|
||||
spaceAroundComments, \
|
||||
|
|
@ -93,6 +100,8 @@
|
|||
wrapAttributes, \
|
||||
wrapConditionalBodies, \
|
||||
# wrapEnumCases, \
|
||||
wrapLoopBodies, \
|
||||
wrapMultilineConditionalAssignment, \
|
||||
# wrapMultilineStatementBraces, \
|
||||
wrapSingleLineComments, \
|
||||
# wrapSwitchCases, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue