Skip to content

Instantly share code, notes, and snippets.

@drewolbrich
Last active August 15, 2021 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewolbrich/dac0b0c6da8b445600aadc6eaca9e942 to your computer and use it in GitHub Desktop.
Save drewolbrich/dac0b0c6da8b445600aadc6eaca9e942 to your computer and use it in GitHub Desktop.
# If you're using SwiftLint, add this to your swiftlint.yml to make Xcode
# generate warnings when you create new Swift files and Xcode inserts the
# filename where the package name should be.
custom_rules:
# This calls out an Xcode 13 bug where the header comments of newly created
# files include the file name where the package name should be.
xcode_13_header_comment_bug:
regex: ' *\/\/ *([A-Za-z0-9_]*?).swift *\n *\/\/ *\1 *\n'
message: "Incorrect header comment package name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment