diff --git a/SCC-OUTPUT-REPORT.html b/SCC-OUTPUT-REPORT.html index 35f424cd..7deffb8b 100644 --- a/SCC-OUTPUT-REPORT.html +++ b/SCC-OUTPUT-REPORT.html @@ -12,12 +12,12 @@ Go 36 - 8881 - 1427 - 421 - 7033 - 1416 - 351626 + 8888 + 1428 + 422 + 7038 + 1417 + 351833 Java 24 @@ -93,12 +93,12 @@ Shell 3 - 1084 - 144 + 1097 + 145 85 - 855 - 95 - 39020 + 867 + 97 + 39410 C# 2 @@ -381,12 +381,12 @@ HTML 1 - 608 + 635 0 0 - 608 + 635 0 - 8880 + 9251 JSON 1 @@ -607,11 +607,11 @@ Total 176 - 26687 - 3023 - 1757 - 21907 - 2398 - 1807755 + 26734 + 3025 + 1758 + 21951 + 2401 + 1808723 \ No newline at end of file diff --git a/processor/processor.go b/processor/processor.go index d23a94b5..eead133b 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -280,6 +280,13 @@ func ProcessConstants() { printTrace("configured to lazy load language features") } } + + // Fix for https://github.com/boyter/scc/issues/250 + fixedPath := []string{} + for _, path := range PathDenyList { + fixedPath = append(fixedPath, strings.TrimRight(path, "/")) + } + PathDenyList = fixedPath } // Configure and setup any count-as params the use has supplied diff --git a/test-all.sh b/test-all.sh index e34399a8..2b838578 100755 --- a/test-all.sh +++ b/test-all.sh @@ -835,6 +835,19 @@ else exit fi +a=$(./scc --exclude-dir examples/) +b=$(./scc --exclude-dir examples) +if [ "$a" != "$b" ]; then + echo "$a" + echo "$b" + echo -e "${RED}=======================================================" + echo -e "FAILED examples exclude-dir check" + echo -e "=================================================${NC}" + exit +else + echo -e "${GREEN}PASSED examples exclude-dir check" +fi + # Try out specific languages for i in 'Bosque ' 'Flow9 ' 'Bitbucket Pipeline ' 'Docker ignore ' 'Q# ' 'Futhark ' 'Alloy ' 'Wren ' 'Monkey C ' 'Alchemist ' 'Luna ' 'ignore ' 'XML Schema ' 'Web Services' 'Go ' 'Java ' 'Boo ' 'License ' 'BASH ' 'C Shell ' 'Korn Shell ' 'Makefile ' 'Shell ' 'Zsh ' 'Rakefile ' 'Gemfile ' 'Dockerfile ' 'Yarn ' 'Sieve ' 'F# ' 'Elm ' 'Terraform ' 'Clojure ' 'C# ' 'LLVM IR ' 'HAML ' 'FXML ' 'DM ' 'Nushell ' 'Racket ' 'DOT ' do