Rubocop: Do not show all offenses in the console for --auto-gen-config

Created on 12 Jan 2018  路  3Comments  路  Source: rubocop-hq/rubocop

When generating the rubocop_todo.yml file, I do not see the point on showing all the offenses in the console as I just want to exclude them and it is not that important what offenses there are. In projects with a lot of offenses (for example if you introduce Rubocop for the first time) it fulls the console with the offenses.

I would suggest to directly remove this, we could also add this in an option.

Most helpful comment

I'm with @Ana06 on this. I think there should be a flag to _enable_ output and change the default behavior to not output offenses anymore. Upgrading large codebases with output creates a lot of unwanted noise. So perhaps an --output-offenses or --with-offenses flag for --auto-gen-config.

All 3 comments

Happy to own implementing this feature. Does --skip-console-output seem like the right flag name?

I'm with @Ana06 on this. I think there should be a flag to _enable_ output and change the default behavior to not output offenses anymore. Upgrading large codebases with output creates a lot of unwanted noise. So perhaps an --output-offenses or --with-offenses flag for --auto-gen-config.

@garettarrowood

I'm with @Ana06 on this. I think there should be a flag to enable output and change the default behavior to not output offenses anymore. Upgrading large codebases with output creates a lot of unwanted noise. So perhaps an --output-offenses or --with-offenses flag for --auto-gen-config.

--output-offenses seems like a good name 馃憤

@asherkach

Happy to own implementing this feature.

will you send a PR then? 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

printercu picture printercu  路  3Comments

benoittgt picture benoittgt  路  3Comments

kirrmann picture kirrmann  路  3Comments

Aqualon picture Aqualon  路  3Comments

millisami picture millisami  路  3Comments