Skip to content

Commit

Permalink
Drop support for CocoaPods and Carthage
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 23, 2021
1 parent 7535969 commit c5d135b
Show file tree
Hide file tree
Showing 30 changed files with 578 additions and 1,687 deletions.
3 changes: 0 additions & 3 deletions .github/funding.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
uses: norio-nomura/action-swiftlint@3.2.1
10 changes: 8 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ only_rules:
- custom_rules
- deployment_target
- discarded_notification_center_observer
- discouraged_assert
- discouraged_direct_init
- discouraged_object_literal
- discouraged_optional_boolean
Expand Down Expand Up @@ -86,6 +87,7 @@ only_rules:
- prefer_zero_over_explicit_init
- private_action
- private_outlet
- private_subject
- private_unit_test
- prohibited_super_call
- protocol_property_accessors_order
Expand Down Expand Up @@ -139,6 +141,7 @@ only_rules:
- xctfail_message
- yoda_condition
analyzer_rules:
- capture_variable
- unused_declaration
- unused_import
number_separator:
Expand Down Expand Up @@ -178,8 +181,11 @@ custom_rules:
match_kinds: typeidentifier
message: 'Use CGPoint instead of NSPoint'
swiftui_state_private:
regex: '@(State|StateObject)\s+var'
message: "SwiftUI @State/@StateObject properties should be private"
regex: '@(State|StateObject|ObservedObject|EnvironmentObject)\s+var'
message: "SwiftUI @State/@StateObject/@ObservedObject/@EnvironmentObject properties should be private"
swiftui_environment_private:
regex: '@Environment\(\\\.\w+\)\s+var'
message: "SwiftUI @Environment properties should be private"
final_class:
regex: '^class [a-zA-Z\d]+[^{]+\{'
message: "Classes should be marked as final whenever possible. If you actually need it to be subclassable, just add `// swiftlint:disable:next final_class`."
Loading

0 comments on commit c5d135b

Please sign in to comment.