Skip to content

Instantly share code, notes, and snippets.

@aiKrice
Last active May 19, 2024 16:28
Show Gist options
  • Select an option

  • Save aiKrice/e63fcd6aa8d4d61cbc8e902f665fa115 to your computer and use it in GitHub Desktop.

Select an option

Save aiKrice/e63fcd6aa8d4d61cbc8e902f665fa115 to your computer and use it in GitHub Desktop.
Dangerfile Swiftlint + baseline support
#Swiftlint
swiftlint.config_file = "#{ENV['BITRISE_SOURCE_DIR']}/.swiftlint.yml"
swiftlint.binary_path = "/opt/homebrew/bin/swiftlint" #to speed up you CI
swiftlint.strict = true
swiftlint.verbose = true
#swiftlint.filter_issues_in_diff = true #optional now because the baseline support it 🎉
swiftlint.lint_files(inline_mode: true, additional_swiftlint_args: "--baseline #{ENV['BITRISE_SOURCE_DIR']}/path/to/baseline.json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment