|
Ran
|
Jobs
0
|
Files
0
|
Run time
–
|
Badge
README BADGES
|
push
github
Faster runs via RuboCop::Runner (#573) * Move rubocop_cli back to per-instance I'd moved this to a class-level instance variable back in bd821862d, but only to avoid issues with Marshal.dump on the linter instance. Instead, let's override marshal_dump to exclude the problematic ivars * Switch to using RuboCop::Runner rather than RuboCop::CLI Every time we call RuboCop::CLI#run (which happens once per file being linted), it sets up a new RuboCop::Runner. This is pretty slow, especially from RuboCop::Options#parse and RuboCop::Runner#mobilized_cop_classes. We can skip all this repeated setup by using RuboCop::Runner directly. This also means we don't have to capture the stdout/stderr streams from CLI, since the relevant information is available directly on the runner instance. * Remove OffenseCollector If we're not using RuboCop::CLI, I think we may as well collect the offenses in the runner directly * Fix rubocop options for rubocop < v1.38