Skip to content

Commit

Permalink
Merge pull request #14 from ably-labs/fix-file-header-rule
Browse files Browse the repository at this point in the history
Loosen the `file_header` SwiftLint rule
  • Loading branch information
lawrence-forooghian authored Aug 15, 2024
2 parents 646c220 + 280ffa5 commit e97f421
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,15 @@ opt_in_rules:
- private_swiftui_state

file_header:
# Comments, except for the required and standard ones at the top of a Package.swift file. The aim of this rule is to make sure that we delete the Xcode-generated boilerplate comment.
forbidden_pattern: //(?! (swift-tools-version:|The swift-tools-version declares the minimum version of Swift required to build this package\.))
# The aim of this rule is to make sure that we delete the Xcode-generated boilerplate comment, which looks like
#
# //
# // File.swift
# // AblyChat
# //
# // Created by Lawrence Forooghian on 15/08/2024.
# //
forbidden_pattern: // Created by

identifier_name:
&no_length_checks # We disable the length checks, for the same reason we disable the rules of type "metrics".
Expand Down

0 comments on commit e97f421

Please sign in to comment.