require: rubocop-rspec # The EditorConfig class represents the .editorconfig file. # # This class has a fair amount of content and logic associated # with it that doesn't make sense elsewhere, therefore I've # decided to double the ClassLength requirements. # # Hopefully, this doesn't promote objects or classes that are # too complex. Metrics/ClassLength: Exclude: - 'lib/editorconfig/editor_config.rb' # Specs shouldn't have a length cap as they should be verbose by # design. Metrics/ModuleLength: Exclude: - "**/*_spec.rb" Metrics/BlockLength: Exclude: - "**/*_spec.rb" Metrics/LineLength: Exclude: - "**/*_spec.rb" # The File Generator specs usually have longer example length # due to string matching setup representing file content RSpec/ExampleLength: Exclude: - 'spec/editor_config_generator/file_generator_spec.rb'