315 lines
8.9 KiB
YAML
315 lines
8.9 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2020-02-08 14:58:51 +0000 using RuboCop version 0.79.0.
|
|
# 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
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
Layout/EmptyLinesAroundClassBody:
|
|
Exclude:
|
|
- 'test/extra_field_ut_test.rb'
|
|
|
|
# Offense count: 120
|
|
Metrics/AbcSize:
|
|
Max: 60
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
# ExcludedMethods: refine
|
|
Metrics/BlockLength:
|
|
Max: 43
|
|
|
|
# Offense count: 15
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 579
|
|
|
|
# Offense count: 26
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 14
|
|
|
|
# Offense count: 120
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/MethodLength:
|
|
Max: 45
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: CountKeywordArgs.
|
|
Metrics/ParameterLists:
|
|
Max: 10
|
|
|
|
# Offense count: 21
|
|
Metrics/PerceivedComplexity:
|
|
Max: 15
|
|
|
|
# Offense count: 9
|
|
Naming/AccessorMethodName:
|
|
Exclude:
|
|
- 'lib/zip/entry.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'lib/zip/input_stream.rb'
|
|
- 'lib/zip/streamable_stream.rb'
|
|
- 'test/file_permissions_test.rb'
|
|
|
|
# Offense count: 18
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
Naming/BlockParameterName:
|
|
Exclude:
|
|
- 'lib/zip/file.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'samples/zipfind.rb'
|
|
- 'test/central_directory_test.rb'
|
|
- 'test/file_extract_directory_test.rb'
|
|
- 'test/file_extract_test.rb'
|
|
- 'test/output_stream_test.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: lowercase, uppercase
|
|
Naming/HeredocDelimiterCase:
|
|
Exclude:
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
Naming/MemoizedInstanceVariableName:
|
|
Exclude:
|
|
- 'lib/zip/extra_field/old_unix.rb'
|
|
- 'lib/zip/extra_field/unix.rb'
|
|
|
|
# Offense count: 140
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
|
Naming/MethodParameterName:
|
|
Enabled: false
|
|
|
|
# Offense count: 721
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: snake_case, camelCase
|
|
Naming/VariableName:
|
|
Enabled: false
|
|
|
|
# Offense count: 7
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: inline, group
|
|
Style/AccessModifierDeclarations:
|
|
Exclude:
|
|
- 'lib/zip/central_directory.rb'
|
|
- 'lib/zip/extra_field/zip64.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
# SupportedStyles: nested, compact
|
|
Style/ClassAndModuleChildren:
|
|
Exclude:
|
|
- 'lib/zip/extra_field/generic.rb'
|
|
- 'lib/zip/extra_field/ntfs.rb'
|
|
- 'lib/zip/extra_field/old_unix.rb'
|
|
- 'lib/zip/extra_field/universal_time.rb'
|
|
- 'lib/zip/extra_field/unix.rb'
|
|
- 'lib/zip/extra_field/zip64.rb'
|
|
- 'lib/zip/extra_field/zip64_placeholder.rb'
|
|
|
|
# Offense count: 15
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: is_a?, kind_of?
|
|
Style/ClassCheck:
|
|
Exclude:
|
|
- 'lib/zip/central_directory.rb'
|
|
- 'lib/zip/entry_set.rb'
|
|
- 'lib/zip/file.rb'
|
|
- 'lib/zip/output_stream.rb'
|
|
- 'test/filesystem/file_nonmutating_test.rb'
|
|
- 'test/ioextras/fake_io_test.rb'
|
|
- 'test/output_stream_test.rb'
|
|
|
|
# Offense count: 26
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
Style/EvalWithLocation:
|
|
Exclude:
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 3
|
|
# Configuration parameters: .
|
|
# SupportedStyles: annotated, template, unannotated
|
|
Style/FormatStringToken:
|
|
EnforcedStyle: unannotated
|
|
|
|
# Offense count: 95
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: always, never
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: false
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifier:
|
|
Exclude:
|
|
- 'lib/zip/entry.rb'
|
|
- 'lib/zip/extra_field/generic.rb'
|
|
- 'lib/zip/file.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'lib/zip/input_stream.rb'
|
|
- 'lib/zip/pass_thru_decompressor.rb'
|
|
- 'lib/zip/streamable_stream.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, Autocorrect.
|
|
# SupportedStyles: module_function, extend_self
|
|
Style/ModuleFunction:
|
|
Exclude:
|
|
- 'lib/zip.rb'
|
|
|
|
# Offense count: 56
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: literals, strict
|
|
Style/MutableConstant:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
Style/Next:
|
|
Exclude:
|
|
- 'lib/zip/entry.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedOctalStyle.
|
|
# SupportedOctalStyles: zero_with_o, zero_only
|
|
Style/NumericLiteralPrefix:
|
|
Exclude:
|
|
- 'test/file_options_test.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Strict.
|
|
Style/NumericLiterals:
|
|
MinDigits: 6
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Exclude:
|
|
- 'spec/**/*'
|
|
- 'lib/zip/entry.rb'
|
|
- 'lib/zip/extra_field/old_unix.rb'
|
|
- 'lib/zip/extra_field/universal_time.rb'
|
|
- 'lib/zip/extra_field/unix.rb'
|
|
- 'lib/zip/file.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'lib/zip/input_stream.rb'
|
|
- 'lib/zip/ioextras.rb'
|
|
- 'lib/zip/ioextras/abstract_input_stream.rb'
|
|
- 'test/file_split_test.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
Style/SafeNavigation:
|
|
Exclude:
|
|
- 'lib/zip/entry.rb'
|
|
- 'lib/zip/input_stream.rb'
|
|
- 'lib/zip/output_stream.rb'
|
|
- 'test/file_extract_test.rb'
|
|
- 'test/filesystem/file_nonmutating_test.rb'
|
|
- 'test/filesystem/file_stat_test.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
Style/SignalException:
|
|
Exclude:
|
|
- 'test/central_directory_entry_test.rb'
|
|
- 'test/central_directory_test.rb'
|
|
- 'test/filesystem/file_nonmutating_test.rb'
|
|
- 'test/ioextras/abstract_input_stream_test.rb'
|
|
- 'test/local_entry_test.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 30
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
Style/SpecialGlobalVars:
|
|
Exclude:
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'lib/zip/ioextras/abstract_input_stream.rb'
|
|
- 'lib/zip/ioextras/abstract_output_stream.rb'
|
|
- 'samples/example.rb'
|
|
- 'samples/example_filesystem.rb'
|
|
- 'samples/gtk_ruby_zip.rb'
|
|
- 'samples/qtzip.rb'
|
|
- 'samples/write_simple.rb'
|
|
- 'samples/zipfind.rb'
|
|
- 'test/gentestfiles.rb'
|
|
- 'test/ioextras/abstract_input_stream_test.rb'
|
|
- 'test/ioextras/abstract_output_stream_test.rb'
|
|
- 'test/output_stream_test.rb'
|
|
- 'test/test_helper.rb'
|
|
|
|
# Offense count: 42
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'lib/zip/file.rb'
|
|
- 'lib/zip/filesystem.rb'
|
|
- 'test/basic_zip_file_test.rb'
|
|
- 'test/case_sensitivity_test.rb'
|
|
- 'test/deflater_test.rb'
|
|
- 'test/file_extract_test.rb'
|
|
- 'test/file_split_test.rb'
|
|
- 'test/file_test.rb'
|
|
- 'test/filesystem/file_nonmutating_test.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'lib/zip/crypto/decrypted_io.rb'
|
|
- 'lib/zip/inflater.rb'
|
|
- 'lib/zip/pass_thru_decompressor.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInHashLiteral:
|
|
Exclude:
|
|
- 'lib/zip/constants.rb'
|
|
|
|
# Offense count: 247
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Max: 236
|