Makefile, linting, and formatting
This commit is contained in:
68
ios/.swiftformat
Normal file
68
ios/.swiftformat
Normal file
@@ -0,0 +1,68 @@
|
||||
# SwiftFormat Configuration for Ascently iOS
|
||||
# Maintains consistent formatting across the project
|
||||
|
||||
# File options
|
||||
--exclude build,Pods,DerivedData,.build
|
||||
|
||||
# Format options
|
||||
--swiftversion 6.0
|
||||
--indent 4
|
||||
--tabwidth 4
|
||||
--maxwidth 140
|
||||
--wraparguments before-first
|
||||
--wrapparameters before-first
|
||||
--wrapcollections before-first
|
||||
--wrapconditions after-first
|
||||
--wrapreturntype preserve
|
||||
--wrapeffects preserve
|
||||
--closingparen balanced
|
||||
--funcattributes prev-line
|
||||
--typeattributes prev-line
|
||||
--varattributes preserve
|
||||
--storedvarattrs same-line
|
||||
--computedvarattrs preserve
|
||||
--complexattributes prev-line
|
||||
--typeblanklines preserve
|
||||
--structthreshold 20
|
||||
--enumthreshold 20
|
||||
--extensionacl on-declarations
|
||||
--organizetypes class,struct,enum,extension,protocol
|
||||
--modifierorder acl,setteracl,override,static,final,required,convenience,lazy,dynamic
|
||||
--self remove
|
||||
--importgrouping alpha
|
||||
--semicolons inline
|
||||
--operatorfunc spaced
|
||||
--nospaceoperators ..<,...
|
||||
--ranges no-space
|
||||
--emptybraces no-space
|
||||
--trimwhitespace always
|
||||
--stripunusedargs closure-only
|
||||
--header ignore
|
||||
--guardelse auto
|
||||
--elseposition same-line
|
||||
--shortoptionals always
|
||||
--linebreaks lf
|
||||
--xcodeindentation disabled
|
||||
--fragment false
|
||||
--conflictmarkers reject
|
||||
--ifdef no-indent
|
||||
--extensionlength 0
|
||||
|
||||
# Enable rules
|
||||
--enable isEmpty,sortedSwitchCases,redundantInit,redundantGet,redundantObjc
|
||||
--enable blankLineAfterSwitchCase,consecutiveSpaces,duplicateImports
|
||||
--enable elseOnSameLine,emptyBraces,hoistAwait,hoistPatternLet,hoistTry
|
||||
--enable leadingDelimiters,redundantBackticks,redundantBreak,redundantClosure
|
||||
--enable redundantExtensionACL,redundantFileprivate,redundantLetError
|
||||
--enable redundantNilInit,redundantParens,redundantPattern,redundantRawValues
|
||||
--enable redundantReturn,redundantSelf,redundantType,redundantVoidReturnType
|
||||
--enable semicolons,sortImports,spaceAroundBraces,spaceAroundBrackets
|
||||
--enable spaceAroundComments,spaceAroundGenerics,spaceAroundOperators
|
||||
--enable spaceAroundParens,spaceInsideBraces,spaceInsideBrackets
|
||||
--enable spaceInsideComments,spaceInsideGenerics,spaceInsideParens
|
||||
--enable strongOutlets,strongifiedSelf,todos,trailingClosures,trailingCommas
|
||||
--enable typeSugar,unusedArguments,void,wrapArguments,wrapAttributes
|
||||
--enable yodaConditions,blankLinesBetweenScopes,blankLinesAtEndOfScope
|
||||
|
||||
# Disable rules
|
||||
--disable wrapMultilineStatementBraces
|
||||
Reference in New Issue
Block a user