Comments (3)
I admittedly can't make heads or tails of your examples. addScrubberFeatureTip
isn't called at all and so isn't observeTip
. viewWillDisappear
calls or doesn't call cancelTipObservations
. Where is the connection to observeTip
?
But generally multiline matches work. So finding cases where observeTip
is not immediately followed by cancelTipObservations
should be possible. For more complex cases, custom rules might not be sufficient.
from swiftlint.
Hi
I changed the description of my issue to remove personal context from our app and make it more generic.
from swiftlint.
I changed the description of my issue to remove personal context from our app and make it more generic.
That makes it much clearer.
So I think that your use case is impossible to achieve with a custom rule, at least not in its full generality. But there are so called Swift Custom Rules (as opposed to the default Regex Custom Rules) which would allow you to implement this check based on SwiftSyntax.
However, this requires you to build SwiftLint yourself with Bazel.
from swiftlint.
Related Issues (20)
- [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
- Rule Request: Newline between function, array, dictionary, tuple parameters HOT 2
- There is a problem with allowed_symbols rule configuration after updating to 0.54.0 HOT 1
- 0.55.0 is broken without blzmod HOT 2
- 0.55.0: Static Over Final Class warning occurs on overridable class property HOT 6
- unneeded_override breaks fixes for "Automatic Initializer Inheritance" HOT 7
- [0.55.0] False positive on unused_enumerated with block + destructuring
- unneeded_synthesized_initializer removes needed initializers if there is any other initializer enclosed within conditional macro
- 0.55.0 not published to Bazel Central Registry HOT 2
- Latest releases (0.54.0 and 0.55.0) are not available via Homebrew HOT 6
- opening_brace triggers when the brace is preceded by a comment
- `trailing_closure` rule disagrees with Swift 5.8 forward-scan matching HOT 3
- Upgrading to 0.55.1 through Homebrew fails HOT 2
- MARK Rule hitting on "marketing"
- Report and Improvements on Swiftlint baseline HOT 8
- `opening_brace` fix is broken
- The baseline use absolute path instead of relative file in the baseline content to identify a file HOT 2
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.