SwiftSwiftLint rule structureAbstract Syntax Tree (AST)
新手友好度1-100 的估计分数,表示该议题对首次贡献者的友好程度。
35
研究方向
Implement a new rule in SwiftLint that detects empty extensions (extensions with no members). Look at existing rules like EmptyEnumRule for reference. The AST for an extension is represented by the `ExtensionDecl` node; check its `members` array for any declarations. Consider edge cases such as extensions with attributes or conditional compilation blocks. Since the issue has an assignee, coordinate with them before starting work.
Detect redundant extensions · realm/SwiftLint#5359 | Good First Issue