Optimize files filtering with ignore rules in project