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 b09d84c commit 0888ff1Copy full SHA for 0888ff1
Source/SwiftLintFramework/Configuration+CommandLine.swift
@@ -137,13 +137,7 @@ extension Configuration {
137
if !duplicateFileNames.contains(basename) {
138
return basename
139
}
140
-
141
- var pathComponents = path.pathComponents
142
- for component in rootDirectory.pathComponents where pathComponents.first == component {
143
- pathComponents.removeFirst()
144
- }
145
146
- return pathComponents.reduce(URL(filePath: "/")) { $0.appending(path: $1) }.filepath
+ return path.relativeDisplayPath
147
148
149
private func linters(for filesPerConfiguration: [Configuration: [SwiftLintFile]],
0 commit comments