-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Show warning if // periphery:ignore
unneeded
#427
Comments
// periphery:ignore
unneeded// periphery:ignore
unneeded
@subdan Are you working on this? I would be interested in adding this capability |
@maxwellE @geraldWilliam took a stab at this recently: #551. It wasn't quite the right solution though. I've been wanting to take another look but haven't had time yet. I'll be focusing more on integrating Periphery into Reddit's build system soon, so hopefully I can allocate some time for this too. |
No |
@ileitch was there any progress on this yet? |
@ileitch Id like to take this up if you have any pointers on how to best tackle this |
Hey @maxwellE, sorry for the slow reply. I haven't had time to think about the right solution for this. I think a naive approach is possibly quite simple, but finding one that doesn't significantly impact performance might be a bit harder. Please have a go! |
Would it make sense to have even a less performant version of this implemented behind a flag? I could dive into how SwiftLint accomplishes this same logic |
I want to see a warning if
// periphery:ignore
command is unneeded.I want to see the following warning:
Superfluous Ignore Command Violation: function sayHello is used and shouldn't marked as ignored. Please remove the ignore command.
SwiftLint shows a warning if a disable command doesn't needed.
Warning:
Superfluous Disable Command Violation: SwiftLint rule 'function_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
The text was updated successfully, but these errors were encountered: