Martin Redington

Results 121 comments of Martin Redington

Looking at https://github.com/realm/SwiftLint/blob/main/Source/SwiftLintFramework/Rules/Lint/BalancedXCTestLifecycleRule.swift it looks like the code is checking that the class being linted does inherit from XCTestCase, even indirectly, here ``` private func testClasses(in file: SwiftLintFile) -> [SourceKittenDictionary]...

So I just had a go at adding an `xctestcase_subclasses` option to `test_case_accessibility`, which seemed pretty easy as it already has a configuration, and I got it working on the...

> > Do you call SwiftLint in its own build phase like explained [here](https://github.com/realm/SwiftLint#xcode)? That should actually work fine even with a manually compiled SwiftLint binary. yep, although mine looks...

I have actually implemented this rule. I don't think I kept my branches (I built it as a demo), but it was very easy, at least to catch all `.init`...

I'm interested in picking this up. Not sure when I'll have time, or if I'll start from here, or from scratch right now. > Looking at this again for the...

So I have a very basic implementation at #5475 Seems to work for my basic test case, but will try to work on it and to add some more docs...

> I'm seriously considering removing the SwiftLint build phase entirely until this is fixed. I can run it manually as needed, and keep it in the CI/CD flow. This is...