We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6502b3f commit 27d982dCopy full SHA for 27d982d
Sources/unused-imports/main.swift
@@ -4,7 +4,7 @@ import Foundation
4
5
private typealias References = (usrs: Set<String>, typealiases: Set<String>)
6
private let identifierRegex = try Regex("([a-zA-Z_][a-zA-Z0-9_]*)")
7
-private let ignoreRegex = try Regex(#"// *ignore-import$"#)
+private let ignoreRegex = try Regex(#"// *@ignore-import$"#)
8
private var cachedLines = [String: [String.SubSequence]]()
9
10
private func getImports(path: String, recordReader: RecordReader) -> (Set<String>, [String: Int]) {
0 commit comments