Skip to content

Commit

Permalink
Add @ to ignore comment (#20)
Browse files Browse the repository at this point in the history
This makes it more obvious it's for computers and not written by a human
for fun.
  • Loading branch information
keith authored Apr 5, 2023
1 parent 6502b3f commit 27d982d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/unused-imports/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation

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

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

0 comments on commit 27d982d

Please sign in to comment.