# This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` # using RuboCop version 1.36.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. # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. Lint/DuplicateBranch: Exclude: - 'lib/alexandria/book_providers/sbn_provider.rb' - 'util/rake/fileinstall.rb' # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. Metrics/AbcSize: Max: 109 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, inherit_mode. # AllowedMethods: refine Metrics/BlockLength: Max: 64 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 5 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 991 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/CyclomaticComplexity: Max: 21 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/MethodLength: Max: 98 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: Max: 361 # Configuration parameters: CountKeywordArgs, MaxOptionalParameters. Metrics/ParameterLists: Max: 7 # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Metrics/PerceivedComplexity: Max: 27 # Configuration parameters: ForbiddenDelimiters. # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) Naming/HeredocDelimiterNaming: Exclude: - 'Rakefile' - 'bin/alexandria' - 'lib/alexandria/export_library.rb' - 'lib/alexandria/ui/about_dialog.rb' # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # ForbiddenPrefixes: is_, has_, have_ # AllowedMethods: is_a? # MethodDefinitionMacros: define_method, define_singleton_method Naming/PredicateName: Exclude: - 'lib/alexandria/ui/smart_library_properties_dialog_base.rb' - 'lib/alexandria/web_themes.rb' # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. # Include: **/*_spec*rb*, **/spec/**/* RSpec/FilePath: Exclude: - 'spec/alexandria/console_spec.rb' - 'spec/alexandria/ui/iconview_spec.rb' - 'spec/alexandria/ui/sound_spec.rb' # This cop supports safe autocorrection (--autocorrect). Rake/Desc: Exclude: - 'Rakefile' - 'tasks/spec.rake' Rake/DuplicateTask: Exclude: - 'Rakefile' # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'lib/alexandria/ui/init.rb' - 'lib/alexandria/ui/provider_preferences_base_dialog.rb' Style/ClassVars: Exclude: - 'lib/alexandria/execution_queue.rb' - 'lib/alexandria/logging.rb' - 'lib/alexandria/models/library.rb' - 'lib/alexandria/smart_library.rb' - 'lib/alexandria/ui/acquire_dialog.rb' - 'lib/alexandria/ui/book_properties_dialog_base.rb' - 'lib/alexandria/ui/new_book_dialog.rb' # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - 'lib/alexandria/ui/new_book_dialog.rb' # Configuration parameters: AllowedMethods. # AllowedMethods: respond_to_missing? Style/OptionalBooleanParameter: Exclude: - 'lib/alexandria/book_providers.rb' - 'lib/alexandria/book_providers/worldcat.rb' - 'lib/alexandria/execution_queue.rb' - 'lib/alexandria/export_format.rb' - 'lib/alexandria/library_sort_order.rb' - 'lib/alexandria/models/library.rb' - 'lib/alexandria/ui/ui_manager.rb' - 'util/rake/fileinstall.rb'