Skip to content

SMFI-1033: Disable certain rules for SwiftUI Projects#105

Merged
kmeinh merged 7 commits intomasterfrom
feature/SMFIT-1033
Apr 28, 2020
Merged

SMFI-1033: Disable certain rules for SwiftUI Projects#105
kmeinh merged 7 commits intomasterfrom
feature/SMFIT-1033

Conversation

@UrsKahmann
Copy link
Copy Markdown

If the --SwiftUI flag is provided, the rules in the swiftlint+swiftUI.yml will not be used in the swift lint process.

@UrsKahmann UrsKahmann requested a review from kmeinh April 17, 2020 15:45
@kmeinh kmeinh requested a review from Tomusm April 21, 2020 06:43
Comment thread SwiftLint/swiftlint+swiftUI.yml Outdated
disabled_rules:
- multiple_closures_with_trailing_closure
- missing_closure_name
- missing_closure_datatype No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing_closure_datatype: is there situations where it cannot work with swiftUI ?
IMO it should be that way:

  • either you use $0, no need for type
  • or you declare the variable, then we need the type
    -> Anyway Xcode is autocompleting the type

@kmeinh kmeinh merged commit 05a279c into master Apr 28, 2020
@kmeinh kmeinh deleted the feature/SMFIT-1033 branch April 28, 2020 08:41
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

Successfully merging this pull request may close these issues.

3 participants