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.89s on main (0% slower)
📖 Linting Alamofire with this PR took 1.27s vs 1.24s on main (2% slower)
📖 Linting Brave with this PR took 7.29s vs 7.29s on main (0% slower)
📖 Linting DuckDuckGo with this PR took 4.09s vs 4.08s on main (0% slower)
📖 Linting Firefox with this PR took 10.46s vs 10.58s on main (1% faster)
📖 Linting Kickstarter with this PR took 9.2s vs 9.11s on main (0% slower)
📖 Linting Moya with this PR took 0.51s vs 0.51s on main (0% slower)
📖 Linting NetNewsWire with this PR took 2.47s vs 2.52s on main (1% faster)
📖 Linting Nimble with this PR took 0.73s vs 0.76s on main (3% faster)
📖 Linting PocketCasts with this PR took 7.93s vs 7.99s on main (0% faster)
📖 Linting Quick with this PR took 0.41s vs 0.42s on main (2% faster)
📖 Linting Realm with this PR took 4.6s vs 4.6s on main (0% slower)
📖 Linting Sourcery with this PR took 2.32s vs 2.3s on main (0% slower)
📖 Linting Swift with this PR took 4.42s vs 4.44s on main (0% faster)
📖 Linting VLC with this PR took 1.22s vs 1.22s on main (0% slower)
📖 Linting Wire with this PR took 17.19s vs 17.26s on main (0% faster)
📖 Linting WordPress with this PR took 12.86s vs 12.85s on main (0% slower)

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 6 times, most recently from 255e35b to 733e16b Compare June 29, 2024 15:01
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch from bcd2ed5 to 00b6c9a Compare July 3, 2024 13:34
@mildm8nnered mildm8nnered force-pushed the mildm8nnered-fix-superfluous-disable-command-for-custom-rules branch from 00b6c9a to d6aa494 Compare July 9, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants