Scope Pattern: Include all files in module recursively and exclude .sql files
已回答
Im trying to add copyrights to an existing project.
I want to created a profile that will target some module and include all of its files, but exclude .sql files.
I have created a scope and in the pattern I have tried the following (which does not work):
- file[<module-name>]:*/&&!*.sql
- file[<module-name>]:*/&&!file[<module-name>]:*.sql
and also switching between operands (although && is commutative)
i have also added ‘/’ to both right-side operands
none seems to work.
thanks in advance
请先登录再写评论。
!file[<module-name>]:*.sql
should work.!file[<module-name>]:*.sql&&file[<module-name>]:*/
did the trick