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

Fix superfluous disable command for custom rules #5546

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

mildm8nnered
Copy link
Collaborator

@mildm8nnered mildm8nnered commented Apr 27, 2024

Very much a work in progress, so please ignore for now.

This is redo of #4755 (which was reverted in #5336).

I took the original changes from #4755 and worked from there. The changes I've made on top of the original PR can be seen at mildm8nnered/SwiftLint@mildm8nnered-marcelos-changes-back...mildm8nnered:SwiftLint:mildm8nnered-fix-superfluous-disable-command-for-custom-rules

I thought this was good, but custom_rules now seems to be picking up issues that it didn't see before (fatalError), and there were some issues with superfluous triggering in some tests that I was not expecting either, so I think more work is required here.

@SwiftLintBot
Copy link

SwiftLintBot commented Apr 27, 2024

1 Warning
⚠️ If this is a user-facing change, please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.
17 Messages
📖 Linting Aerial with this PR took 0.89s vs 0.9s on main (1% faster)
📖 Linting Alamofire with this PR took 1.23s vs 1.24s on main (0% faster)
📖 Linting Brave with this PR took 7.31s vs 7.36s on main (0% faster)
📖 Linting DuckDuckGo with this PR took 4.0s vs 4.04s on main (0% faster)
📖 Linting Firefox with this PR took 10.38s vs 10.53s on main (1% faster)
📖 Linting Kickstarter with this PR took 9.08s vs 9.13s on main (0% faster)
📖 Linting Moya with this PR took 0.52s vs 0.51s on main (1% slower)
📖 Linting NetNewsWire with this PR took 2.51s vs 2.5s on main (0% slower)
📖 Linting Nimble with this PR took 0.76s vs 0.75s on main (1% slower)
📖 Linting PocketCasts with this PR took 7.95s vs 7.88s on main (0% slower)
📖 Linting Quick with this PR took 0.42s vs 0.42s on main (0% slower)
📖 Linting Realm with this PR took 4.6s vs 4.63s on main (0% faster)
📖 Linting Sourcery with this PR took 2.34s vs 2.31s on main (1% slower)
📖 Linting Swift with this PR took 4.51s vs 4.42s on main (2% slower)
📖 Linting VLC with this PR took 1.23s vs 1.22s on main (0% slower)
📖 Linting Wire with this PR took 17.21s vs 17.28s on main (0% faster)
📖 Linting WordPress with this PR took 12.77s vs 12.83s on main (0% faster)

Here's an example of your CHANGELOG entry:

* Fix superfluous disable command for custom rules.  
  [mildm8nnered](https://github.com/mildm8nnered)
  [#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger

@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch 4 times, most recently from 2aa98d0 to ceb3969 Compare May 4, 2024 16:53
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch from ceb3969 to 344f376 Compare May 11, 2024 13:08
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch 5 times, most recently from 6dfd584 to 255e35b Compare June 28, 2024 18:10
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch from 255e35b to 733e16b Compare June 29, 2024 15:01
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.

None yet

2 participants