Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse the DelegatingLinter class when possible.
Summary: It turns out that while khan-linter collects files up by linter, it does it by linter *object*, not linter *class*. And I was creating a new DelegatingLinter object for every file, meaning we weren't doing any collecting at all. Now we are. Test Plan: In webapp-root I ran git ls-files '*.yaml' | xargs ka-lint -v and saw just one "Running DelegatingLinter" line, whereas before I saw one per file. Reviewers: benkraft Reviewed By: benkraft Subscribers: aviddy, kevinb Differential Revision: https://phabricator.khanacademy.org/D62483
- Loading branch information