Permalink
Browse files

Ignore plug-in code for main RuboCop run

  • Loading branch information...
1 parent b0c9976 commit a3b896df083f7d8961489b39a3be9d05cc6c2f41 @mvz mvz committed Jul 16, 2016
Showing with 13 additions and 91 deletions.
  1. +3 −5 .rubocop.yml
  2. +10 −86 .rubocop_todo.yml
View
@@ -6,11 +6,9 @@ AllCops:
- 'config/**/*'
- 'db/**/*'
- 'tmp/**/*'
- - 'publify_core/config/**/*'
- - 'publify_core/db/**/*'
- - 'publify_core/spec/dummy/**/*'
- - 'publify_amazon_sidebar/bin/**/*'
- - 'publify_amazon_sidebar/spec/dummy/**/*'
+ - 'publify_core/**/*'
+ - 'publify_amazon_sidebar/**/*'
+ - 'publify_textfilter_code/**/*'
Rails:
Enabled: true
View
@@ -1,123 +1,47 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2016-06-28 07:07:50 +0200 using RuboCop version 0.41.1.
+# on 2016-07-16 12:15:49 +0200 using RuboCop version 0.41.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: 3
+# Offense count: 1
Lint/Eval:
Exclude:
- 'Gemfile'
- - 'lib/publify_plugins.rb'
-# Offense count: 75
+# Offense count: 2
Metrics/AbcSize:
Max: 61
-# Offense count: 11
-# Configuration parameters: CountComments.
-Metrics/ClassLength:
- Max: 240
-
-# Offense count: 16
+# Offense count: 1
Metrics/CyclomaticComplexity:
- Max: 17
+ Max: 14
-# Offense count: 833
+# Offense count: 97
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 274
-# Offense count: 69
+# Offense count: 5
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 47
# Offense count: 1
-# Configuration parameters: CountComments.
-Metrics/ModuleLength:
- Max: 201
-
-# Offense count: 1
-# Configuration parameters: CountKeywordArgs.
-Metrics/ParameterLists:
- Max: 6
-
-# Offense count: 8
Metrics/PerceivedComplexity:
Max: 17
-# Offense count: 2
-# Configuration parameters: Include.
-# Include: app/models/**/*.rb
-Rails/HasAndBelongsToMany:
- Exclude:
- - 'app/models/article.rb'
- - 'app/models/tag.rb'
-
-# Offense count: 73
+# Offense count: 4
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: strict, flexible
Rails/TimeZone:
- Enabled: false
-
-# Offense count: 8
-Style/AccessorMethodName:
Exclude:
- - 'app/controllers/admin/content_controller.rb'
- - 'app/controllers/admin/pages_controller.rb'
- - 'app/controllers/comments_controller.rb'
- - 'app/controllers/trackbacks_controller.rb'
- - 'app/models/content.rb'
- - 'spec/models/blog_spec.rb'
+ - 'spec/factories.rb'
-# Offense count: 8
+# Offense count: 1
Style/ClassVars:
Exclude:
- - 'app/controllers/admin/base_controller.rb'
- - 'app/models/feedback.rb'
- - 'lib/email_notify.rb'
- - 'lib/publify_plugins.rb'
- - 'lib/text_filter_plugin.rb'
- 'spec/support/mocks/http_mock.rb'
-
-# Offense count: 7
-# Configuration parameters: AllowedVariables.
-Style/GlobalVars:
- Exclude:
- - 'app/services/admin/token_checker.rb'
- - 'spec/services/admin/token_checker_spec.rb'
-
-# Offense count: 6
-# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
-# NamePrefix: is_, has_, have_
-# NamePrefixBlacklist: is_, has_, have_
-# NameWhitelist: is_a?
-Style/PredicateName:
- Exclude:
- - 'spec/**/*'
- - 'app/helpers/authors_helper.rb'
- - 'app/models/article.rb'
- - 'app/models/blog.rb'
- - 'app/models/user.rb'
- - 'lib/spam_protection.rb'
- - 'lib/stateful.rb'
-
-# Offense count: 19
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
-# SupportedStyles: slashes, percent_r, mixed
-Style/RegexpLiteral:
- Exclude:
- - 'app/models/blog.rb'
- - 'app/models/note.rb'
- - 'app/models/ping.rb'
- - 'app/models/redirect.rb'
- - 'lib/format.rb'
- - 'lib/spam_protection.rb'
- - 'lib/tasks/release.rake'
- - 'lib/text_filter_plugin.rb'
- - 'spec/models/content_spec.rb'

0 comments on commit a3b896d

Please sign in to comment.