# This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 250` # on 2023-10-30 06:15:37 UTC using RuboCop version 1.57.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 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/OrderedGems: Exclude: - 'gemfiles/rails_7.1.gemfile' # Offense count: 9 # Configuration parameters: EnforcedStyle, AllowedGems, Include. # SupportedStyles: Gemfile, gems.rb, gemspec # Include: **/*.gemspec, **/Gemfile, **/gems.rb Gemspec/DevelopmentDependencies: Exclude: - 'ph_model.gemspec' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'ph_model.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequireMFA: Exclude: - 'ph_model.gemspec' # Offense count: 1 # Configuration parameters: Severity, Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'ph_model.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterGuardClause: Exclude: - 'lib/ph_model/concerns/attribute_nested_validation.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterMagicComment: Exclude: - 'lib/ph_model/version.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/LineContinuationSpacing: Exclude: - 'spec/active_model/validations/collection_items_validator_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented Layout/LineEndStringConcatenationIndentation: Exclude: - 'spec/active_model/validations/collection_items_validator_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. # SupportedStyles: aligned, indented Layout/MultilineOperationIndentation: Exclude: - 'lib/ph_model/concerns/attribute_nested_validation.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: require_no_space, require_space Layout/SpaceInLambdaLiteral: Exclude: - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb' - 'spec/active_model/validations/collection_items_validator/array_attribute_getter_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - 'lib/ph_model.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/ph_model/concerns/attribute_nested_validation.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: CheckForMethodsWithNoSideEffects. Lint/Void: Exclude: - 'lib/ph_model.rb' # Offense count: 3 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: Max: 61 # Offense count: 2 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 9 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 23 # Offense count: 1 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 11 # Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'lib/active_model/validations/collection_items_validator/array_attribute_getter.rb' - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb' - 'lib/active_model/validations/collection_items_validator/inner_validator_builder.rb' # Offense count: 5 # Configuration parameters: AllowedConstants. Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - 'lib/ph_model.rb' - 'lib/ph_model/concerns.rb' - 'lib/ph_model/concerns/attribute_nested_validation.rb' - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb' - 'lib/ph_model/concerns/attribute_required_validation.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/Encoding: Exclude: - 'ph_model.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/ExpandPathArguments: Exclude: - 'ph_model.gemspec' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/FileWrite: Exclude: - 'Rakefile' # Offense count: 23 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: - 'Gemfile' - 'Rakefile' - 'lib/active_model/validations/collection_items_validator.rb' - 'lib/active_model/validations/collection_items_validator/array_attribute_getter.rb' - 'lib/active_model/validations/collection_items_validator/array_attribute_reader.rb' - 'lib/active_model/validations/collection_items_validator/inner_validator_builder.rb' - 'lib/active_model/validations/type_validator.rb' - 'lib/ph_model.rb' - 'lib/ph_model/concerns.rb' - 'lib/ph_model/concerns/attribute_nested_validation.rb' - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb' - 'lib/ph_model/concerns/attribute_required_validation.rb' - 'lib/ph_model/concerns/attribute_type_validation.rb' - 'lib/ph_model/concerns/initialize_callback.rb' - 'lib/ph_model/concerns/validated_factory.rb' - 'lib/ph_model/validation_failed.rb' - 'ph_model.gemspec' - 'spec/active_model/validations/collection_items_validator/array_attribute_getter_spec.rb' - 'spec/active_model/validations/collection_items_validator/inner_validator_builder_spec.rb' - 'spec/active_model/validations/collection_items_validator_spec.rb' - 'spec/active_model/validations/type_validator_spec.rb' - 'spec/model_spec.rb' - 'spec/spec_helper.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - 'lib/active_model/validations/type_validator.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowIfModifier. Style/IfInsideElse: Exclude: - 'lib/ph_model/concerns/attribute_type_validation.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: - 'lib/ph_model/concerns/attribute_required_validation.rb' - 'lib/ph_model/concerns/validated_factory.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/MultilineIfModifier: Exclude: - 'lib/ph_model.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'Rakefile' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: . # SupportedStyles: same_as_string_literals, single_quotes, double_quotes Style/QuotedSymbols: EnforcedStyle: double_quotes # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/RedundantFreeze: Exclude: - 'lib/ph_model/version.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/RedundantSelf: Exclude: - 'lib/ph_model.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - 'lib/ph_model.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowModifier. Style/SoleNestedConditional: Exclude: - 'lib/ph_model/concerns/attribute_of_array_type_initialization.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/StderrPuts: Exclude: - 'Rakefile' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets