Last active
May 19, 2024 16:28
-
-
Save aiKrice/e63fcd6aa8d4d61cbc8e902f665fa115 to your computer and use it in GitHub Desktop.
Dangerfile Swiftlint + baseline support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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