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

SwiftUI - Disable implicit detection #34

Closed
AnthoPakPak opened this issue Aug 7, 2024 · 2 comments
Closed

SwiftUI - Disable implicit detection #34

AnthoPakPak opened this issue Aug 7, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@AnthoPakPak
Copy link

Thanks a lot for the lib!

I'd like to prevent it to detect SwiftUI implicitely. For example Text("abc") and Button("abc") are detected. Is there a way to prevent this behavior? I only want to detect them when it is explicit.

I've researched in the lib but can't find if there's a way to do this :)

@dral3x
Copy link
Owner

dral3x commented Aug 7, 2024

Hey @AnthoPakPak, thank you for using the lib!

At the moment there's no way to disable those implicit detections.

You can open a PR that makes those implicit checks being turned off via configuration (SwiftParserConfiguration). I'm totally interested in integrating this feature!

@dral3x dral3x added enhancement New feature or request help wanted Extra attention is needed labels Aug 7, 2024
@dral3x
Copy link
Owner

dral3x commented Sep 19, 2024

@AnthoPakPak I've implemented this feature in the latest version of stringslint 0.1.7

Check it out!

@dral3x dral3x closed this as completed Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants