Skip to content

Instantly share code, notes, and snippets.

@vergenzt
Last active August 9, 2016 17:28
Show Gist options
  • Save vergenzt/2cb8b4ca96e719074728e57deccd91d1 to your computer and use it in GitHub Desktop.
Save vergenzt/2cb8b4ca96e719074728e57deccd91d1 to your computer and use it in GitHub Desktop.
Rubocop --auto-gen-config Metrics/ClassLength example
Metrics/ClassLength:
Max: 10
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-08-09 10:16:44 -0700 using RuboCop version 0.37.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 11
# Demonstrates desired Metrics/ClassLength behavior
class Example
puts 1
puts 2
puts 3
puts 4
puts 5
puts 6
puts 7
puts 8
puts 9
puts 10
puts 11
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment