stringer-rss/stringer

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 400`
# on 2024-03-23 21:41:23 UTC using RuboCop version 1.62.1.
# 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: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
  Exclude:
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
    - 'db/migrate/20240314031221_create_good_job_labels_index.rb'
    - 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'

# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
  Exclude:
    - 'db/migrate/20230801025231_create_index_good_jobs_jobs_on_priority_created_at_when_unfinished.rb'
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
    - 'db/migrate/20240314031221_create_good_job_labels_index.rb'
    - 'db/migrate/20240314031222_remove_good_job_active_id_index.rb'
    - 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'

# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultilineFinalElement.
Layout/MultilineMethodArgumentLineBreaks:
  Exclude:
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'
    - 'db/migrate/20240314031221_create_good_job_labels_index.rb'
    - 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'

# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredClasses.
# AllowedMethods: ago, from_now, second, seconds, minute, minutes, hour, hours, day, days, week, weeks, fortnight, fortnights, in_milliseconds
# IgnoredClasses: Time, DateTime
Lint/NumberConversion:
  Exclude:
    - 'Rakefile'
    - 'app/commands/fever_api/authentication.rb'
    - 'app/commands/story/mark_group_as_read.rb'
    - 'app/models/feed.rb'
    - 'app/models/story.rb'
    - 'app/repositories/story_repository.rb'
    - 'spec/models/feed_spec.rb'
    - 'spec/models/story_spec.rb'

# Offense count: 3
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
Metrics/AbcSize:
  Exclude:
    - 'db/migrate/20230801025232_create_good_job_batches.rb'
    - 'db/migrate/20230801025233_create_good_job_executions.rb'
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'

# Offense count: 1
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
  Exclude:
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
  Exclude:
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'

# Offense count: 5
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
  Exclude:
    - 'app/models/story.rb'
    - 'app/repositories/story_repository.rb'
    - 'app/utils/opml_parser.rb'
    - 'app/utils/sample_story.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/PerceivedComplexity:
  Exclude:
    - 'db/migrate/20240314031219_recreate_good_job_cron_indexes_with_conditional.rb'

# Offense count: 2
# 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:
    - 'app/utils/sample_story.rb'

# Offense count: 4
RSpec/Be:
  Exclude:
    - 'spec/commands/feed/import_from_opml_spec.rb'

# Offense count: 12
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Exclude:
    - 'spec/commands/feed/create_spec.rb'
    - 'spec/commands/feed/fetch_one_spec.rb'
    - 'spec/commands/feed/find_new_stories_spec.rb'
    - 'spec/commands/feed/import_from_opml_spec.rb'
    - 'spec/integration/feed_importing_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
  Exclude:
    - 'spec/integration/feed_importing_spec.rb'

# Offense count: 33
# Configuration parameters: Max, CountAsOne.
RSpec/ExampleLength:
  Exclude:
    - 'spec/commands/feed/create_spec.rb'
    - 'spec/commands/feed/export_to_opml_spec.rb'
    - 'spec/commands/fever_api/read_favicons_spec.rb'
    - 'spec/commands/fever_api/read_feeds_groups_spec.rb'
    - 'spec/commands/fever_api/read_items_spec.rb'
    - 'spec/helpers/url_helpers_spec.rb'
    - 'spec/integration/feed_importing_spec.rb'
    - 'spec/models/feed_spec.rb'
    - 'spec/models/migration_status_spec.rb'
    - 'spec/models/story_spec.rb'
    - 'spec/repositories/group_repository_spec.rb'
    - 'spec/repositories/story_repository_spec.rb'
    - 'spec/system/good_job_spec.rb'
    - 'spec/tasks/remove_old_stories_spec.rb'
    - 'spec/utils/feed_discovery_spec.rb'
    - 'spec/utils/opml_parser_spec.rb'

# Offense count: 17
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allow, expect
RSpec/MessageExpectation:
  Exclude:
    - 'spec/commands/feed/fetch_one_spec.rb'
    - 'spec/models/migration_status_spec.rb'
    - 'spec/repositories/story_repository_spec.rb'
    - 'spec/tasks/remove_old_stories_spec.rb'
    - 'spec/utils/i18n_support_spec.rb'

# Offense count: 25
# Configuration parameters: Max.
RSpec/MultipleExpectations:
  Exclude:
    - 'spec/commands/feed/create_spec.rb'
    - 'spec/commands/feed/export_to_opml_spec.rb'
    - 'spec/commands/feed/import_from_opml_spec.rb'
    - 'spec/repositories/feed_repository_spec.rb'
    - 'spec/repositories/story_repository_spec.rb'
    - 'spec/requests/feeds_controller_spec.rb'
    - 'spec/tasks/remove_old_stories_spec.rb'
    - 'spec/utils/feed_discovery_spec.rb'
    - 'spec/utils/i18n_support_spec.rb'
    - 'spec/utils/opml_parser_spec.rb'

# Offense count: 5
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
  Exclude:
    - 'spec/commands/fever_api/write_mark_item_spec.rb'

# Offense count: 2
# Configuration parameters: Max, AllowedGroups.
RSpec/NestedGroups:
  Exclude:
    - 'spec/integration/feed_importing_spec.rb'

# Offense count: 26
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/commands/feed/create_spec.rb'
    - 'spec/commands/feed/fetch_one_spec.rb'
    - 'spec/commands/feed/find_new_stories_spec.rb'
    - 'spec/repositories/story_repository_spec.rb'
    - 'spec/tasks/remove_old_stories_spec.rb'
    - 'spec/utils/feed_discovery_spec.rb'

# Offense count: 2
# Configuration parameters: IgnoreScopes, Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
  Exclude:
    - 'app/models/feed.rb'

# Offense count: 3
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ReversibleMigrationMethodDefinition:
  Exclude:
    - 'db/migrate/20130423001740_drop_email_from_user.rb'
    - 'db/migrate/20130423180446_remove_author_from_stories.rb'
    - 'db/migrate/20130425222157_add_delayed_job.rb'

# Offense count: 9
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowImplicitReturn, AllowedReceivers.
Rails/SaveBang:
  Exclude:
    - 'app/commands/feed/create.rb'
    - 'app/commands/feed/import_from_opml.rb'
    - 'app/repositories/feed_repository.rb'
    - 'app/repositories/story_repository.rb'
    - 'app/repositories/user_repository.rb'
    - 'db/migrate/20130821020313_update_nil_entry_ids.rb'

# Offense count: 3
# Configuration parameters: ForbiddenMethods, AllowedMethods.
# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all
Rails/SkipsModelValidations:
  Exclude:
    - 'db/migrate/20140421224454_fix_invalid_unicode.rb'
    - 'db/migrate/20141102103617_fix_invalid_titles_with_unicode_line_endings.rb'
    - 'db/migrate/20230223231930_add_username_to_users.rb'

# Offense count: 5
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/ThreeStateBooleanColumn:
  Exclude:
    - 'db/migrate/20130412185253_add_new_fields_to_stories.rb'
    - 'db/migrate/20130425211008_add_setup_complete_to_user.rb'
    - 'db/migrate/20130513025939_add_keep_unread_to_stories.rb'
    - 'db/migrate/20130513044029_add_is_starred_status_for_stories.rb'
    - 'db/migrate/20230801025233_create_good_job_executions.rb'

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
  Exclude:
    - 'app/commands/feed/find_new_stories.rb'
    - 'app/repositories/story_repository.rb'
    - 'app/tasks/remove_old_stories.rb'
    - 'app/utils/sample_story.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/Validation:
  Exclude:
    - 'app/models/story.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
  Exclude:
    - 'db/migrate/20240314031223_create_index_good_job_jobs_for_candidate_lookup.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: return, return_nil
Style/ReturnNil:
  Exclude:
    - 'app/repositories/user_repository.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/StaticClass:
  Exclude:
    - 'app/repositories/feed_repository.rb'
    - 'app/repositories/group_repository.rb'
    - 'app/repositories/story_repository.rb'
    - 'app/repositories/user_repository.rb'

# Offense count: 1
Style/TopLevelMethodDefinition:
  Exclude:
    - 'spec/integration/feed_importing_spec.rb'