flaviostutz / monolint

Linter for monorepos. Checks folder structure, module contents, file contents and naming conventions
MIT License
7 stars 4 forks source link

Add filtering capability #103

Closed flaviostutz closed 1 year ago

flaviostutz commented 1 year ago

Problem being solved

Specially when you are starting to use Monolint, sometimes hundreds of issues might arise and you might take months to fix all of them gradually. Filtering of the results would be good for developers that wants to focus only on certains portions of the repo. One could, for example, focus on fixing issues only on "package.json" files, while others could focus on fixing "serverless.yml" issues.

Proposal

Add to the command line the option "--filter=[regex to resource]" so that the results would show only resource names/paths that maches a specific regex.

Examples: --filter=".ts$" - only return results to files with ".ts" extension --filter="/extlibs/" - only return results for files under "/extlibs" dir --filter=".test.ts$" - only return results for files with ".test.ts" in their name

flaviostutz commented 1 year ago

done

flaviostutz commented 1 year ago

done