Skip to content

Commit

Permalink
Add multiple gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Aug 15, 2019
1 parent 3b41dce commit 0ae85a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/ignore/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore.java
2 changes: 1 addition & 1 deletion processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

// The version of the application
var Version = "2.6.0"
var Version = "2.7.0"

// Flags set via the CLI which control how the output is displayed

Expand Down
8 changes: 8 additions & 0 deletions test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ else
echo -e "${GREEN}PASSED ignore filter"
fi

if ./scc "examples/ignore/" | grep -q "Java "; then
echo -e "${RED}======================================================="
echo -e "FAILED multiple gitignore"
echo -e "=======================================================${NC}"
exit
else
echo -e "${GREEN}PASSED multiple gitignore"
fi

touch ./examples/ignore/ignorefile.txt
a=$(./scc --by-file | grep ignorefile)
Expand Down

0 comments on commit 0ae85a2

Please sign in to comment.