Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unneeded space for end bracket #1806

Open
NikKovIos opened this issue Aug 2, 2024 · 0 comments
Open

Unneeded space for end bracket #1806

NikKovIos opened this issue Aug 2, 2024 · 0 comments

Comments

@NikKovIos
Copy link

let updatedReplayCountDictionary = Dictionary(uniqueKeysWithValues: limitedUpdatedReplayCountArray.map { ($0.element.key,
                                                                                                                  $0.element.value)
-        })
+            })
    private lazy var saveButton: UIButton = ActionButton(settings: .init(background: .light,
                                                                         type: .primary,
                                                                         size: .big) { [weak self] in
-        self?.saveButtonTapped()
+            self?.saveButtonTapped()
-    })
+        })

Above changes after formatter. Theses spaces are not needed to add. If I want to reindent by xcode, he remove them.

Using dev commit 410de98

Rules:

 --allman false
--acronyms
--modifierOrder
--guardelse same-line
--extensionacl on-declarations
--marktypes if-not-empty
--typemark "MARK: %t"
--markextensions if-not-empty
--extensionmark "MARK: - %t"
--exponentcase lowercase
--funcattributes prev-line
--typeattributes prev-line
--ifdef no-indent
--indent 4
--indentcase false
--tabwidth 4
--lineaftermarks true
--nospaceoperators ...,..<
--nowrapoperators
--organizetypes class,enum,struct,actor
--redundanttype inferred
--self init-only
--semicolons never
--wrapparameters after-first
--wraparguments after-first
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype preserve

--enable anyObjectProtocol, \
blankLineAfterImports, \
assertionFailures, \
blankLinesAtEndOfScope, \
blankLinesAtStartOfScope, \
blankLinesBetweenImports, \
blankLinesBetweenScopes, \
blockComments, \
consecutiveBlankLines, \
consecutiveSpaces, \
consistentSwitchCaseSpacing, \
duplicateImports, \
elseOnSameLine, \
redundantBreak, \
redundantClosure, \
redundantGet, \
redundantFileprivate, \
redundantInit, \
redundantInternal, \
redundantLet, \
redundantLetError, \
redundantNilInit, \
redundantObjc, \
redundantOptionalBinding, \
redundantParens, \
redundantPattern, \
redundantRawValues, \
sortTypealiases, \
hoistAwait, \
wrapArguments, \
doccomments, \
modifierOrder, \
wrapConditionalBodies, \
wrapEnumCases, \
wrapLoopBodies

--disable blanklineafterswitchcase, \
wrapMultilineStatementBraces, \
wrapSwitchCases, \
wrap, \
yodaConditions, \
isEmpty, \
preferKeyPath, \
numberFormatting, \
opaqueGenericParameters, \
redundantReturn, \
redundantBackticks, \
redundantSelf, \
leadingDelimiters, \
enumNamespaces, \
redundantProperty, \
unusedArguments, \
preferForLoop, \
trailingCommas, \
markTypes, \
strongOutlets, \
hoistPatternLet

# Exclude
--exclude \
Pods, \
tools, \
tools/scripts/codeStyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant