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

RUMM-1222 Patch configuration for swiftlint 0.42.0 #454

Merged

Conversation

ncreated
Copy link
Member

@ncreated ncreated commented Mar 30, 2021

What and why?

🐞 Appears that depending on the Bitrise agent version, brew install swiftlint resolves to either recent 0.43.1 or 0.42.0. Because there is a breaking change in configuration between the two (addressed in #453), we need to patch the swiftlint.yml for 0.42.0.

I've opened a support ticket to Bitrise team to check this inconsistency, but it might be caused by the brew-core mirror created by Bitrise, more here: https://discuss.bitrise.io/t/how-to-change-brew-core-from-mirror-to-official/16033

How?

If the runner uses 0.42.0 we apply the patch, otherwise not.

The patch updates linter paths by removing ../.. added in #453.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

buranmert and others added 2 commits March 29, 2021 12:39
@ncreated ncreated self-assigned this Mar 30, 2021
@ncreated ncreated requested a review from a team as a code owner March 30, 2021 07:41
@ncreated ncreated force-pushed the ncreated/RUMM-1222-enforce-up-to-date-version-of-swiftlint branch from ad8de53 to 991b20f Compare March 30, 2021 07:44
@ncreated ncreated marked this pull request as draft March 30, 2021 09:14
@ncreated ncreated force-pushed the ncreated/RUMM-1222-enforce-up-to-date-version-of-swiftlint branch from 3afba1d to b64c443 Compare March 30, 2021 10:43
@ncreated ncreated changed the title RUMM-1222 Keep swiftlint updated for each CI run RUMM-1222 Patch configuration for swiftlint 0.42.0 Mar 30, 2021
@ncreated ncreated marked this pull request as ready for review March 30, 2021 10:49
@ncreated ncreated force-pushed the ncreated/RUMM-1222-enforce-up-to-date-version-of-swiftlint branch from b64c443 to c07eed6 Compare March 30, 2021 10:50
…r-carthage

RUMM-1204 Linter not run for carthage builds
@ncreated ncreated requested a review from buranmert March 30, 2021 13:09
@ncreated ncreated merged commit 338ab8f into master Mar 30, 2021
@ncreated ncreated deleted the ncreated/RUMM-1222-enforce-up-to-date-version-of-swiftlint branch March 30, 2021 13:30
buranmert added a commit that referenced this pull request Apr 12, 2021
…-date-version-of-swiftlint

RUMM-1222 Patch configuration for `swiftlint 0.42.0`
ncreated added a commit that referenced this pull request Apr 13, 2021
…-date-version-of-swiftlint

(cherry picked from commit 338ab8f)
@ncreated ncreated mentioned this pull request Apr 13, 2021
2 tasks
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