Skip to content

Commit

Permalink
PR comments, add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Arts authored and Jimmy Arts committed Dec 21, 2022
1 parent 4eb35ed commit cba8372
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ extension Configuration {
) -> [String] {
if path.isFile {
if forceExclude {
let filteredPaths = excludeByPrefix
return excludeByPrefix
? filterExcludedPathsByPrefix(in: [path.absolutePathStandardized()])
: filterExcludedPaths(fileManager: fileManager, in: [path.absolutePathStandardized()])
return filteredPaths
} else { // If path is a file and we're not forcing excludes, skip filtering with excluded/included paths
return [path]
}
// If path is a file and we're not forcing excludes, skip filtering with excluded/included paths
return [path]
}

let pathsForPath = includedPaths.isEmpty ? fileManager.filesToLint(inPath: path, rootDirectory: nil) : []
Expand Down

0 comments on commit cba8372

Please sign in to comment.