Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple files and directories to be linted #30

Closed
anderseknert opened this issue Feb 27, 2023 · 1 comment
Closed

Allow multiple files and directories to be linted #30

anderseknert opened this issue Feb 27, 2023 · 1 comment

Comments

@anderseknert
Copy link
Member

The first iteration of the executable currently works with a single file only. We should improve this and allow any number of files and directories to be scanned. Running the entire set of rules against the AST of each individual Rego file is likely going to be quite expensive, and later we'll want to do some pre-processing of the files to create new datastructures more easily traversed (#13), but we can start with a naive implementation and just create an array of all the files (or rather, the AST representation of each), and scan them one-by-one (possibly in paralllell).

@anderseknert
Copy link
Member Author

Passing a directory, or multiple files, to the lint command now works. We might still want to create an issue later for "merging" all the modules into a single big one, but let's create a separate issue for that if need be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant