Skip to content

Improve linting#243

Merged
markmur merged 3 commits into
mainfrom
markmur/lint
Aug 12, 2025
Merged

Improve linting#243
markmur merged 3 commits into
mainfrom
markmur/lint

Conversation

@markmur

@markmur markmur commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

What changes are you making?

Allows running dev check and dev fix to lint swift code and autofix


PR Checklist

Important


Checklist for releasing a new version

Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

@markmur markmur self-assigned this Aug 12, 2025
@markmur markmur requested a review from a team as a code owner August 12, 2025 15:07
@github-actions

github-actions Bot commented Aug 12, 2025

Copy link
Copy Markdown

Coverage Report

Lines Statements Branches Functions
Coverage: 100%
100% (120/120) 98.03% (50/51) 100% (41/41)

class RCTShopifyCheckoutSheetKit: RCTEventEmitter, CheckoutDelegate {
private var hasListeners = false

internal var checkoutSheet: UIViewController?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just to check - was removal of internal intentional?
Wondering if its one of those rules that gave me so much trouble before 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, this was indeed not intentional. Was there a rule in the swiftlint config for this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm trying to recall but I think mine were all related to module and extension visibility - not sure which rule has caused this (easiest way to check is re-add the internal and run dev lint check)

I just found this though: https://realm.github.io/SwiftLint/explicit_acl.html which is a rule to explicitly use ACL - might be too heavy handed (haven't seen how much it changes yet) but its the side of things we seem to lean on more

@markmur markmur merged commit d8c8365 into main Aug 12, 2025
8 checks passed
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