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.