Skip to content

Modify jsonnet-lint to accept multiple input files#545

Merged
sbarzowski merged 2 commits into
google:masterfrom
thombashi:jsonnet_lint_accept_multiple_inputs
Jul 1, 2021
Merged

Modify jsonnet-lint to accept multiple input files#545
sbarzowski merged 2 commits into
google:masterfrom
thombashi:jsonnet_lint_accept_multiple_inputs

Conversation

@thombashi
Copy link
Copy Markdown
Contributor

Close #543

@google-cla google-cla Bot added the cla: yes label Jun 27, 2021
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 67.902% when pulling 37c593c on thombashi:jsonnet_lint_accept_multiple_inputs into 46d1fce on google:master.

Comment thread linter/linter.go
}, &ec)
ec := common.ErrCollector{}

types.Check(node.node, roots, vars, func(currentPath, importedPath string) ast.Node {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really take advantage of processing multiple files at once (it still builds the whole graph of type relationships each time). This is fine, though. We can do it as a separate change (which will be a performance-only change with no significant effect on the results).

@sbarzowski sbarzowski merged commit 51daeb3 into google:master Jul 1, 2021
@sbarzowski
Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-commit hook failed when committing multiple jsonnet files

3 participants