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

Loosen the file_header SwiftLint rule #14

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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