Permalink
Fetching contributors…
Cannot retrieve contributors at this time
269 lines (234 sloc) 8.47 KB
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-10-08 21:27:36 +0200 using RuboCop version 0.59.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: 8
# Cop supports --auto-correct.
# Configuration parameters: EnabledMethods.
Capybara/FeatureMethods:
Exclude:
- 'publify_core/spec/features/drafting_articles_spec.rb'
- 'publify_core/spec/features/login_spec.rb'
- 'publify_core/spec/features/setup_spec.rb'
- 'publify_core/spec/features/signup_spec.rb'
# Offense count: 3
Lint/UriEscapeUnescape:
Exclude:
- 'publify_core/app/models/article.rb'
- 'publify_core/lib/publify_textfilter_twitterfilter.rb'
# Offense count: 5
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'publify_core/app/helpers/authors_helper.rb'
- 'publify_core/app/models/article.rb'
- 'publify_core/app/models/blog.rb'
- 'publify_core/app/models/user.rb'
- 'publify_core/lib/spam_protection.rb'
# Offense count: 13
RSpec/AnyInstance:
Exclude:
- 'publify_core/spec/models/article_spec.rb'
- 'publify_core/spec/models/note_spec.rb'
# Offense count: 55
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'publify_core/spec/controllers/admin/content_controller_spec.rb'
- 'publify_core/spec/controllers/admin/feedback_controller_spec.rb'
- 'publify_core/spec/controllers/admin/notes_controller_spec.rb'
- 'publify_core/spec/controllers/admin/pages_controller_spec.rb'
- 'publify_core/spec/controllers/admin/seo_controller_spec.rb'
- 'publify_core/spec/controllers/articles_controller_spec.rb'
- 'publify_core/spec/controllers/notes_controller_spec.rb'
- 'publify_core/spec/helpers/base_helper_spec.rb'
- 'publify_core/spec/models/article_spec.rb'
- 'publify_core/spec/models/blog_spec.rb'
- 'publify_core/spec/models/content_spec.rb'
- 'publify_core/spec/models/feedback_spec.rb'
- 'publify_core/spec/models/note_spec.rb'
- 'publify_core/spec/models/user_spec.rb'
- 'spec/views/xml_sidebar/_content.html.erb_spec.rb'
# Offense count: 9
RSpec/DescribeClass:
Exclude:
- 'publify_core/spec/lib/publify_time_spec.rb'
- 'publify_core/spec/models/configuration_spec.rb'
- 'publify_core/spec/models/static_sidebar_spec.rb'
- 'publify_textfilter_code/spec/lib/publify_app/textfilter_code_spec.rb'
- 'spec/models/text_filter_spec.rb'
# Offense count: 1
RSpec/DescribeMethod:
Exclude:
- 'publify_core/spec/models/trackback_spec.rb'
# Offense count: 1
# Configuration parameters: CustomIncludeMethods.
RSpec/EmptyExampleGroup:
Exclude:
- 'publify_core/spec/models/ping_spec.rb'
# Offense count: 92
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
# Offense count: 13
RSpec/ExpectActual:
Exclude:
- 'spec/routing/**/*'
- 'publify_core/spec/routing/admin/content_spec.rb'
- 'publify_core/spec/routing/articles_routing_spec.rb'
- 'publify_core/spec/routing/xml_routing_spec.rb'
# Offense count: 15
RSpec/ExpectInHook:
Exclude:
- 'publify_core/spec/controllers/admin/redirects_controller_spec.rb'
- 'publify_core/spec/helpers/base_helper_spec.rb'
- 'publify_core/spec/models/note_spec.rb'
- 'publify_core/spec/models/trigger_spec.rb'
# Offense count: 9
# Configuration parameters: CustomTransform, IgnoreMethods.
RSpec/FilePath:
Exclude:
- 'publify_core/spec/helpers/author_helper_spec.rb'
- 'publify_core/spec/lib/publify_textfilter_markdown_spec.rb'
- 'publify_core/spec/lib/publify_textfilter_smartypants_spec.rb'
- 'publify_core/spec/lib/publify_textfilter_twitterfilter_spec.rb'
- 'publify_core/spec/lib/text_filter_plugin_spec.rb'
- 'publify_core/spec/lib/transforms_spec.rb'
- 'publify_core/spec/models/article/factory_spec.rb'
- 'publify_core/spec/models/trackback_spec.rb'
- 'spec/lib/publify_avatar_gravatar_spec.rb'
# Offense count: 313
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Enabled: false
# Offense count: 49
RSpec/LetSetup:
Enabled: false
# Offense count: 16
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Exclude:
- 'publify_core/spec/controllers/admin/notes_controller_spec.rb'
- 'publify_core/spec/helpers/base_helper_spec.rb'
- 'publify_core/spec/models/article/factory_spec.rb'
- 'publify_core/spec/models/article_spec.rb'
- 'publify_core/spec/models/content_spec.rb'
- 'publify_core/spec/models/note_spec.rb'
# Offense count: 3
RSpec/MultipleDescribes:
Exclude:
- 'publify_core/spec/lib/publify_time_spec.rb'
- 'publify_core/spec/models/configuration_spec.rb'
- 'publify_core/spec/views/comments/html_sanitization_spec.rb'
# Offense count: 141
# Configuration parameters: AggregateFailuresByDefault.
RSpec/MultipleExpectations:
Max: 10
# Offense count: 21
RSpec/NamedSubject:
Exclude:
- 'publify_core/spec/helpers/base_helper_spec.rb'
- 'publify_core/spec/models/article_spec.rb'
- 'publify_core/spec/models/content_spec.rb'
- 'publify_core/spec/models/page_spec.rb'
# Offense count: 123
RSpec/NestedGroups:
Max: 5
# Offense count: 2
RSpec/RepeatedDescription:
Exclude:
- 'publify_core/spec/controllers/admin/dashboard_controller_spec.rb'
# Offense count: 6
RSpec/RepeatedExample:
Exclude:
- 'publify_core/spec/models/configuration_spec.rb'
- 'publify_core/spec/models/user_spec.rb'
# Offense count: 2
RSpec/ScatteredSetup:
Exclude:
- 'publify_core/spec/controllers/admin/content_controller_spec.rb'
# Offense count: 6
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'publify_core/spec/controllers/admin/notes_controller_spec.rb'
- 'publify_core/spec/helpers/base_helper_spec.rb'
- 'publify_core/spec/models/note_spec.rb'
- 'spec/models/text_filter_spec.rb'
# Offense count: 16
# Configuration parameters: Include.
# Include: db/migrate/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/113_initial_schema.publify_core_engine.rb'
- 'db/migrate/20150807134129_simplify_redirect_relations.publify_core_engine.rb'
- 'db/migrate/20160110094906_remove_profiles_rights.publify_core_engine.rb'
- 'db/migrate/20160605154632_remove_profiles.publify_core_engine.rb'
# Offense count: 1
# Cop supports --auto-correct.
Rails/Presence:
Exclude:
- 'publify_core/app/models/blog.rb'
# Offense count: 2
# Cop supports --auto-correct.
Rails/RedundantReceiverInWithOptions:
Exclude:
- 'publify_core/app/controllers/content_controller.rb'
# Offense count: 3
Security/Eval:
Exclude:
- 'Gemfile'
- 'publify_core/lib/publify_plugins.rb'
# Offense count: 1
Security/Open:
Exclude:
- 'publify_core/app/controllers/admin/dashboard_controller.rb'
# Offense count: 5
Style/ClassVars:
Exclude:
- 'publify_core/app/controllers/admin/base_controller.rb'
- 'publify_core/lib/email_notify.rb'
- 'publify_core/lib/publify_plugins.rb'
- 'publify_core/lib/text_filter_plugin.rb'
# Offense count: 2
Style/CommentedKeyword:
Exclude:
- 'publify_core/lib/publify_plugins.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/EmptyLambdaParameter:
Exclude:
- 'publify_core/app/models/blog.rb'
- 'publify_core/app/models/feedback.rb'
- 'publify_core/app/models/sidebar.rb'
# Offense count: 3
Style/EvalWithLocation:
Exclude:
- 'publify_core/app/models/content_base.rb'
- 'publify_core/lib/publify_plugins.rb'
# Offense count: 20
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'db/migrate/20150808052637_add_blog_ids.publify_core_engine.rb'
- 'lib/publify_textfilter_flickr.rb'
- 'publify_core/app/controllers/admin/dashboard_controller.rb'
- 'publify_core/app/helpers/base_helper.rb'
- 'publify_core/db/migrate/20150808052637_add_blog_ids.rb'
- 'publify_textfilter_code/lib/publify_app/textfilter_code.rb'