Skip to content

Commit 27d982d

Browse files
authored
Add @ to ignore comment (#20)
This makes it more obvious it's for computers and not written by a human for fun.
1 parent 6502b3f commit 27d982d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/unused-imports/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44

55
private typealias References = (usrs: Set<String>, typealiases: Set<String>)
66
private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
7-
private let ignoreRegex = try Regex(#"// *ignore-import$"#)
7+
private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
88
private var cachedLines = [String: [String.SubSequence]]()
99

1010
private func getImports(path: String, recordReader: RecordReader) -> (Set<String>, [String: Int]) {

0 commit comments

Comments
 (0)