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

Improve SwiftLint setup #73

Merged
merged 7 commits into from
Jun 7, 2024
Merged

Conversation

stonko1994
Copy link
Contributor

Problem

The SwiftLint config file (.swiftlint.yml) was placed in the ./Example folder and was not respected properly when running SwiftLint.

Solution

Moving the .swiftlint.yml file to the project root so it is properly respected. This change also includes migrating SwiftLint from CocoaPods to Mint (to be able to execute it directly from the root folder).

To keep the Xcode compatibility, the SwiftLint command was changed to (cd ${SRCROOT}/.. && "./scripts/run_swiftlint.sh" -xcode -path .). This also executes SwiftLint form the project root folder instead of the Example folder.

Checklist

  • I added an update to CHANGELOG.md file Already exists
  • I ran all the tests in the project and they succeed

@stonko1994 stonko1994 requested a review from rolandkakonyi June 7, 2024 07:34
@stonko1994 stonko1994 merged commit 19d6c3b into develop Jun 7, 2024
2 checks passed
@stonko1994 stonko1994 deleted the feature/improve-swiftlint-setup branch June 7, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants