Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rule explicit_self does not report violations #2974

Closed
2 tasks done
gereons opened this issue Nov 22, 2019 · 4 comments
Closed
2 tasks done

Rule explicit_self does not report violations #2974

gereons opened this issue Nov 22, 2019 · 4 comments

Comments

@gereons
Copy link

gereons commented Nov 22, 2019

New Issue Checklist

Describe the bug

I'm running swiftlint analyze with rule explicit_self enabled in my project:

xcodebuild clean -workspace XYZ.xcworkspace -scheme XYZ
xcodebuild -workspace XYZ.xcworkspace -scheme XYZ >xcodebuild.log
swiftlint analyze --compiler-log-path xcodebuild.log

Snippet from .swiftlint.yml:

analyzer_rules:
 - explicit_self

and get "0 violations found", although there are a few.

The same .swiftint.yml file works in a newly created dummy project where I've added an intentional violation. I am unable to share the project code, unfortunately, is there anything I can do help narrow this down?

Swiftlint version: 0.37.0, installed via homebrew
Xcode version: 11.2.1

@jpsim
Copy link
Collaborator

jpsim commented Jan 5, 2020

I am unable to share the project code, unfortunately, is there anything I can do help narrow this down?

If you can create a separate project that reproduces the issue that you can share, that will go a long way towards helping identify why this isn't working for you.

@gereons
Copy link
Author

gereons commented Jan 6, 2020

I tried that initially but was unable to reproduce the issue at the time.

I did however manage to spend some more time on this today and was able to find two unrelated issues surrounding the analyzer and explicit_self which I'll post separately.

@jpsim
Copy link
Collaborator

jpsim commented Jan 6, 2020

Thanks for investigating. Looking forward to seeing what you found.

@gereons
Copy link
Author

gereons commented Jan 6, 2020

See #3020 and #3021.

@gereons gereons closed this as completed Jan 6, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants