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

prefer_key_path rule should not trigger on macros #5744

Closed
2 tasks done
sindresorhus opened this issue Aug 8, 2024 · 0 comments · Fixed by #5765
Closed
2 tasks done

prefer_key_path rule should not trigger on macros #5744

sindresorhus opened this issue Aug 8, 2024 · 0 comments · Fixed by #5765
Assignees
Labels
bug Unexpected and reproducible misbehavior. good first issue Issue to be taken up by new contributors yet unfamiliar with the project.

Comments

@sindresorhus
Copy link

New Issue Checklist

Bug Description

The rule triggers on this, but it cannot use a key path.

#Predicate { $0.isCompleted }

Environment

  • SwiftLint version: 0.56.0
  • Xcode version: Xcode 15.4, Build version 15F31d
  • Installation method used: Installer
  • Configuration file:
only_rules:
  - prefer_key_path
@SimplyDanny SimplyDanny added bug Unexpected and reproducible misbehavior. good first issue Issue to be taken up by new contributors yet unfamiliar with the project. labels Aug 9, 2024
@SimplyDanny SimplyDanny self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior. good first issue Issue to be taken up by new contributors yet unfamiliar with the project.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants