msiebuhr / slint

Lint-tool for web projects
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Gitignore-style file discovery #2

Closed msiebuhr closed 11 years ago

msiebuhr commented 11 years ago

Rules:

Ex:

# include everything in bin/
bin/*
# lint all stuff in lib/ and test/
lib/
test/
# but ignore '3rdparty' and 'node_modules'-folders
!3rdparty
!node_modules
msiebuhr commented 11 years ago

Somewhat related to #6.

msiebuhr commented 11 years ago

Actually, a custom implementation (or straight out fork) of glob, updated to cache heavily and ignore stuff at earliest possible moment could be used.

msiebuhr commented 11 years ago

Implemented this using glob, mostly to figure out if the matching-style feels right to use. If it feels right and it's a bit slow, we can always write our own.

msiebuhr commented 11 years ago

Added per 9fd70c0e48ed03668de8b3ea0057293ebf93d64c

Comment/create tickets on ideas, improvements, corner-cases are encouraged!