Comments (19)
Reopening, as there is still demand for this rule based on #3579 and prior comments on 2020.
from swiftlint.
Any status update on this "implicit_self" rule inclusion? 🤔
Thanks
from swiftlint.
I could find the "explicit_self" rule but I couldn't find the identifier for this one.
Anyone could help me with finding it ?
Thanks!
from swiftlint.
Would love to see that implemented.
from swiftlint.
Love this. It would make searching for ref-cycles quiet a bit easier... :-)
from swiftlint.
bump - my team would find this rule to be super useful ❤️
from swiftlint.
I've implemented parts for this rule in #4911. As mentioned there, what's missing are two cases is one case:
Weakly capturedself
with explicit unwrapping according to SE-0365- Implicit
self
in classes when the closure isn't@escaping
These It can be implemented in a later step (probably as a separate Analyzer rule). I didn't want to make the first implementation overly complex and rather gather your feedback on other cases I might have missed.
Please have a look into the PR and let me know which other test cases you can think of, what I've missed or what doesn't work like the rule assumes!
from swiftlint.
Counterpart of #321
from swiftlint.
👍
from swiftlint.
Anyone could help me with finding it ?
Doesn't exist yet. If anyone would like to build this rule, please go ahead!
from swiftlint.
Any update on this?
from swiftlint.
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!
from swiftlint.
Bumptiybumpbump.
Any status updates on this issue? I think we all want it ❤️
from swiftlint.
Any updates on this?
from swiftlint.
Has this been implemented already? I would love to have this rule in SwiftLint!
from swiftlint.
hello, bump any updates on the concerns/challenges of implementing this?
from swiftlint.
Bumpbumpbump part 2?
from swiftlint.
Bump.
FYI https://github.com/apple/swift-evolution/blob/main/proposals/0365-implicit-self-weak-capture.md
from swiftlint.
Closing this as completed. The remaining part "implicit self
in classes when the closure isn't @escaping
" is requested by #4964.
from swiftlint.
Related Issues (20)
- `private_over_fileprivate` produces a false positive when using actor
- Brew repo is not hosting the last version of swiftlint HOT 3
- each variable should have comment HOT 2
- Glob.resolveGlob() is veeeery sloooow HOT 6
- [Swift] Error when importing swiftlint report HOT 5
- Privacy Manifest HOT 1
- Custom rule using lookbehind becomes Invalid configuration HOT 1
- Rule Request: Line break in between case statements HOT 4
- SwiftLint not work with platform=linux/amd64
- SwiftLintPlugin does not honor `included` configuration. Issue? Or expected? HOT 4
- swiftlint analyze appears to stop collecting after 12 files with Swift 5.10 HOT 6
- `unused_import` not taking into account `@_exported import`
- Have a custom rule where if we have a call to a method, we should expect another one HOT 3
- Time for a new release? HOT 2
- Conflict with other macro package HOT 1
- Rule Request: Alphabetise struct property let / vars.
- [unused_declaration] Unused class/struct is not detected if it conforms to a protocol in extension
- Feature request: Add an (opt in) update check to SwiftLint HOT 2
- Dogfood Baselines internally HOT 5
- ShorthandOptionalBinding Rule not working? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftlint.