Code Monkey home page Code Monkey logo

Comments (19)

sethfri avatar sethfri commented on May 22, 2024 15

Reopening, as there is still demand for this rule based on #3579 and prior comments on 2020.

from swiftlint.

YannickGagnon avatar YannickGagnon commented on May 22, 2024 10

Any status update on this "implicit_self" rule inclusion? 🤔

Thanks

from swiftlint.

charleyfromage avatar charleyfromage commented on May 22, 2024 4

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.

pronebird avatar pronebird commented on May 22, 2024 3

Would love to see that implemented.

from swiftlint.

diederich avatar diederich commented on May 22, 2024 2

Love this. It would make searching for ref-cycles quiet a bit easier... :-)

from swiftlint.

lizjakubowski avatar lizjakubowski commented on May 22, 2024 1

bump - my team would find this rule to be super useful ❤️

from swiftlint.

SimplyDanny avatar SimplyDanny commented on May 22, 2024 1

I've implemented parts for this rule in #4911. As mentioned there, what's missing are two cases is one case:

  • Weakly captured self 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.

scottrhoyt avatar scottrhoyt commented on May 22, 2024

Counterpart of #321

from swiftlint.

eneko avatar eneko commented on May 22, 2024

👍

from swiftlint.

jpsim avatar jpsim commented on May 22, 2024

Anyone could help me with finding it ?

Doesn't exist yet. If anyone would like to build this rule, please go ahead!

from swiftlint.

ptrkstr avatar ptrkstr commented on May 22, 2024

Any update on this?

from swiftlint.

stale avatar stale commented on May 22, 2024

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.

mqln avatar mqln commented on May 22, 2024

Bumptiybumpbump.

Any status updates on this issue? I think we all want it ❤️

from swiftlint.

amadeu01 avatar amadeu01 commented on May 22, 2024

Any updates on this?

from swiftlint.

TripwireNL avatar TripwireNL commented on May 22, 2024

Has this been implemented already? I would love to have this rule in SwiftLint!

from swiftlint.

acicartagena avatar acicartagena commented on May 22, 2024

hello, bump any updates on the concerns/challenges of implementing this?

from swiftlint.

mqln avatar mqln commented on May 22, 2024

Bumpbumpbump part 2?

from swiftlint.

romanmazeev avatar romanmazeev commented on May 22, 2024

Bump.
FYI https://github.com/apple/swift-evolution/blob/main/proposals/0365-implicit-self-weak-capture.md

from swiftlint.

SimplyDanny avatar SimplyDanny commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.