Last active
August 9, 2016 17:28
-
-
Save vergenzt/2cb8b4ca96e719074728e57deccd91d1 to your computer and use it in GitHub Desktop.
Rubocop --auto-gen-config Metrics/ClassLength example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Metrics/ClassLength: | |
Max: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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