Fix Layout/FirstArrayElementIndentation cop.

This commit is contained in:
Robert Haines 2021-05-23 21:36:27 +01:00
parent 57fa5013c0
commit deabe02798
2 changed files with 6 additions and 11 deletions

View File

@ -16,13 +16,6 @@ Layout/EmptyLinesAroundAttributeAccessor:
- 'lib/zip/filesystem.rb' - 'lib/zip/filesystem.rb'
- 'samples/gtk_ruby_zip.rb' - 'samples/gtk_ruby_zip.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
# Offense count: 7 # Offense count: 7
Lint/MissingSuper: Lint/MissingSuper:
Exclude: Exclude:

View File

@ -9,10 +9,12 @@ SimpleCov::Formatter::LcovFormatter.config do |c|
c.single_report_path = 'coverage/lcov.info' c.single_report_path = 'coverage/lcov.info'
end end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
SimpleCov::Formatter::HTMLFormatter, [
SimpleCov::Formatter::LcovFormatter SimpleCov::Formatter::HTMLFormatter,
]) SimpleCov::Formatter::LcovFormatter
]
)
SimpleCov.start do SimpleCov.start do
# enable_coverage :branch <-- Re-enable this when we move to ruby ~> 2.5. # enable_coverage :branch <-- Re-enable this when we move to ruby ~> 2.5.