|
| 1 | +# This configuration was generated by |
| 2 | +# `rubocop --auto-gen-config` |
| 3 | +# on 2021-09-18 01:17:40 UTC using RuboCop version 1.21.0. |
| 4 | +# The point is for the user to remove these configuration records |
| 5 | +# one by one as the offenses are removed from the code base. |
| 6 | +# Note that changes in the inspected code, or installation of new |
| 7 | +# versions of RuboCop, may require this file to be generated again. |
| 8 | + |
| 9 | +# Offense count: 2 |
| 10 | +# Cop supports --auto-correct. |
| 11 | +# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. |
| 12 | +# Include: **/*.gemspec |
| 13 | +Gemspec/OrderedDependencies: |
| 14 | + Exclude: |
| 15 | + - 'fit.gemspec' |
| 16 | + |
| 17 | +# Offense count: 1 |
| 18 | +# Configuration parameters: Include. |
| 19 | +# Include: **/*.gemspec |
| 20 | +Gemspec/RequiredRubyVersion: |
| 21 | + Exclude: |
| 22 | + - 'fit.gemspec' |
| 23 | + |
| 24 | +# Offense count: 6 |
| 25 | +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. |
| 26 | +Lint/DuplicateBranch: |
| 27 | + Exclude: |
| 28 | + - 'lib/fit/file/definition.rb' |
| 29 | + |
| 30 | +# Offense count: 1 |
| 31 | +Lint/FloatComparison: |
| 32 | + Exclude: |
| 33 | + - 'spec/fit/file/record_spec.rb' |
| 34 | + |
| 35 | +# Offense count: 1 |
| 36 | +# Cop supports --auto-correct. |
| 37 | +# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. |
| 38 | +Lint/UnusedBlockArgument: |
| 39 | + Exclude: |
| 40 | + - 'lib/fit/file/data.rb' |
| 41 | + |
| 42 | +# Offense count: 2 |
| 43 | +# Cop supports --auto-correct. |
| 44 | +# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. |
| 45 | +Lint/UnusedMethodArgument: |
| 46 | + Exclude: |
| 47 | + - 'lib/fit/file/types.rb' |
| 48 | + |
| 49 | +# Offense count: 4 |
| 50 | +# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. |
| 51 | +Metrics/AbcSize: |
| 52 | + Max: 72 |
| 53 | + |
| 54 | +# Offense count: 3 |
| 55 | +# Configuration parameters: IgnoredMethods. |
| 56 | +Metrics/CyclomaticComplexity: |
| 57 | + Max: 18 |
| 58 | + |
| 59 | +# Offense count: 5 |
| 60 | +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. |
| 61 | +Metrics/MethodLength: |
| 62 | + Max: 65 |
| 63 | + |
| 64 | +# Offense count: 2 |
| 65 | +# Configuration parameters: IgnoredMethods. |
| 66 | +Metrics/PerceivedComplexity: |
| 67 | + Max: 23 |
| 68 | + |
| 69 | +# Offense count: 1 |
| 70 | +# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. |
| 71 | +# NamePrefix: is_, has_, have_ |
| 72 | +# ForbiddenPrefixes: is_, has_, have_ |
| 73 | +# AllowedMethods: is_a? |
| 74 | +# MethodDefinitionMacros: define_method, define_singleton_method |
| 75 | +Naming/PredicateName: |
| 76 | + Exclude: |
| 77 | + - 'spec/**/*' |
| 78 | + - 'lib/fit/file/type.rb' |
| 79 | + |
| 80 | +# Offense count: 8 |
| 81 | +RSpec/BeforeAfterAll: |
| 82 | + Exclude: |
| 83 | + - 'spec/spec_helper.rb' |
| 84 | + - 'spec/rails_helper.rb' |
| 85 | + - 'spec/support/**/*.rb' |
| 86 | + - 'spec/fit/file/data_spec.rb' |
| 87 | + - 'spec/fit/file/definitions_spec.rb' |
| 88 | + - 'spec/fit/file/type_spec.rb' |
| 89 | + - 'spec/fit/file/types_spec.rb' |
| 90 | + |
| 91 | +# Offense count: 18 |
| 92 | +# Configuration parameters: Prefixes. |
| 93 | +# Prefixes: when, with, without |
| 94 | +RSpec/ContextWording: |
| 95 | + Exclude: |
| 96 | + - 'spec/fit/file/data_spec.rb' |
| 97 | + - 'spec/fit/file/definition_spec.rb' |
| 98 | + - 'spec/fit/file/record_spec.rb' |
| 99 | + - 'spec/fit/file/type_spec.rb' |
| 100 | + - 'spec/fit/file/types_spec.rb' |
| 101 | + |
| 102 | +# Offense count: 1 |
| 103 | +RSpec/EmptyExampleGroup: |
| 104 | + Exclude: |
| 105 | + - 'spec/fit/file/record_spec.rb' |
| 106 | + |
| 107 | +# Offense count: 1 |
| 108 | +# Configuration parameters: CountAsOne. |
| 109 | +RSpec/ExampleLength: |
| 110 | + Max: 6 |
| 111 | + |
| 112 | +# Offense count: 36 |
| 113 | +# Configuration parameters: AssignmentOnly. |
| 114 | +RSpec/InstanceVariable: |
| 115 | + Exclude: |
| 116 | + - 'spec/fit/file/data_spec.rb' |
| 117 | + - 'spec/fit/file/definitions_spec.rb' |
| 118 | + - 'spec/fit/file/type_spec.rb' |
| 119 | + - 'spec/fit/file/types_spec.rb' |
| 120 | + |
| 121 | +# Offense count: 16 |
| 122 | +# Configuration parameters: IgnoreSharedExamples. |
| 123 | +RSpec/NamedSubject: |
| 124 | + Exclude: |
| 125 | + - 'spec/fit/file/definition_spec.rb' |
| 126 | + - 'spec/fit/file/record_spec.rb' |
| 127 | + |
| 128 | +# Offense count: 17 |
| 129 | +Style/ClassVars: |
| 130 | + Exclude: |
| 131 | + - 'lib/fit/file/definitions.rb' |
| 132 | + - 'lib/fit/file/record.rb' |
| 133 | + - 'lib/fit/file/type.rb' |
| 134 | + - 'lib/fit/file/types.rb' |
| 135 | + - 'spec/fit/file/data_spec.rb' |
| 136 | + - 'spec/fit/file/definitions_spec.rb' |
| 137 | + - 'spec/fit/file/type_spec.rb' |
| 138 | + - 'spec/fit/file/types_spec.rb' |
| 139 | + |
| 140 | +# Offense count: 1 |
| 141 | +Style/DocumentDynamicEvalDefinition: |
| 142 | + Exclude: |
| 143 | + - 'lib/fit/file/data.rb' |
| 144 | + |
| 145 | +# Offense count: 11 |
| 146 | +# Configuration parameters: AllowedConstants. |
| 147 | +Style/Documentation: |
| 148 | + Exclude: |
| 149 | + - 'spec/**/*' |
| 150 | + - 'test/**/*' |
| 151 | + - 'lib/fit.rb' |
| 152 | + - 'lib/fit/file.rb' |
| 153 | + - 'lib/fit/file/data.rb' |
| 154 | + - 'lib/fit/file/definition.rb' |
| 155 | + - 'lib/fit/file/definitions.rb' |
| 156 | + - 'lib/fit/file/header.rb' |
| 157 | + - 'lib/fit/file/record.rb' |
| 158 | + - 'lib/fit/file/record_header.rb' |
| 159 | + - 'lib/fit/file/type.rb' |
| 160 | + - 'lib/fit/file/types.rb' |
| 161 | + |
| 162 | +# Offense count: 3 |
| 163 | +# Cop supports --auto-correct. |
| 164 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. |
| 165 | +# URISchemes: http, https |
| 166 | +Layout/LineLength: |
| 167 | + Max: 131 |
0 commit comments