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

Refactor FXIOS-8044 [v123] Fix swiftlint relative path #17932

Merged

Conversation

adudenamedruby
Copy link
Contributor

@adudenamedruby adudenamedruby commented Dec 27, 2023

📜 Tickets

Jira ticket
Github issue

💡 Description

During The Big Merge of 2023, swiftlint.yml was kept in place, but its content modified, which, in theory, is ok.

The first issue was that the Client's call to swiftlint was missing. This part was easy to figure out. However, on running it, it seems that swiftlint doesn't run at the top level, but relative to the path wherein it was called. Experimentation with removing the swiftlint file around revealed that swiftlint, on being enabled in the build, was actually using some default configurations, which, in actually resulted in a ton of errors, due to said relative pathing issue.

By specifying a relative path in the Client's Switlint step, we're back to our original position in our swiftlint journey, with the only warnings being generated by non-swiftlint items.

This has been an learning journey.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed I updated documentation / comments for complex code and public methods

@adudenamedruby adudenamedruby requested a review from a team as a code owner December 27, 2023 20:33
@adudenamedruby
Copy link
Contributor Author

pre-running BR because I want to make sure things are working correctly.

@adudenamedruby
Copy link
Contributor Author

ah-hah! What I believed would happen has happened. Ok. Now to figure out part 2 of this mystery!

@adudenamedruby adudenamedruby marked this pull request as draft December 27, 2023 20:36
@adudenamedruby
Copy link
Contributor Author

cc @isabelrios also

@adudenamedruby adudenamedruby added the Do Not Merge ⛔️ This issue is a work in progress and is not ready to land label Dec 27, 2023
@adudenamedruby
Copy link
Contributor Author

I HAVE FIGURED IT OUT!!!!!

@adudenamedruby adudenamedruby marked this pull request as ready for review December 27, 2023 21:35
@adudenamedruby adudenamedruby removed the Do Not Merge ⛔️ This issue is a work in progress and is not ready to land label Dec 27, 2023
@mobiletest-ci-bot
Copy link

Messages
📖 Edited 2 files
📖 Created 0 files

Generated by 🚫 Danger Swift against 3ece754

Copy link
Contributor

@cyndichin cyndichin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for figuring out this issue, amazing job 🥳 !!

@adudenamedruby adudenamedruby changed the title Refactor FXIOS-8044 [v123] Fix swiftlint location & contents Refactor FXIOS-8044 [v123] Fix swiftlint relative path Dec 27, 2023
@adudenamedruby adudenamedruby merged commit e7f4924 into mozilla-mobile:main Dec 27, 2023
9 of 10 checks passed
@adudenamedruby adudenamedruby deleted the rgb/8044_fixSwiftlint branch December 27, 2023 21:59
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.

3 participants