mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-10-26 05:07:35 +03:00
Include features/ in the list of directories counting as tests
This commit is contained in:
parent
19b72c123f
commit
5b69d45caf
@ -88,7 +88,7 @@ testOccurrences ms =
|
||||
totalOccurrences = sum $ map tmOccurrences testMatches
|
||||
|
||||
testDir :: String -> Bool
|
||||
testDir = matchRegex "(spec|tests?)\\/"
|
||||
testDir = matchRegex "(spec|tests?|features)\\/"
|
||||
|
||||
testSnakeCaseFilename :: String -> Bool
|
||||
testSnakeCaseFilename = matchRegex ".*(_spec|_test)\\."
|
||||
|
Loading…
Reference in New Issue
Block a user