-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from dblock/update-rubocop
Update rubocop, reduce logging level with Mongoid 6 in specs.
- Loading branch information
Showing
21 changed files
with
176 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,101 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2015-09-17 17:43:47 -0400 using RuboCop version 0.34.1. | ||
# on 2017-04-09 18:25:15 -0400 using RuboCop version 0.48.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 | ||
# Configuration parameters: Include. | ||
# Include: **/Gemfile, **/gems.rb | ||
Bundler/DuplicatedGem: | ||
Exclude: | ||
- 'Gemfile' | ||
|
||
# Offense count: 3 | ||
Lint/HandleExceptions: | ||
Exclude: | ||
- 'spec/unit/trackable_spec.rb' | ||
|
||
Metrics/ClassLength: | ||
Max: 103 | ||
# Offense count: 2 | ||
Lint/ParenthesesAsGroupedExpression: | ||
Exclude: | ||
- 'spec/integration/integration_spec.rb' | ||
|
||
# Offense count: 12 | ||
# Offense count: 21 | ||
Metrics/AbcSize: | ||
Max: 60 | ||
Max: 50 | ||
|
||
# Offense count: 100 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
Metrics/BlockLength: | ||
Max: 801 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 124 | ||
|
||
# Offense count: 4 | ||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
|
||
# Offense count: 199 | ||
# Configuration parameters: AllowURI, URISchemes. | ||
# Offense count: 435 | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 688 | ||
|
||
# Offense count: 7 | ||
# Offense count: 13 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 33 | ||
Max: 23 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountComments. | ||
Metrics/ModuleLength: | ||
Max: 223 | ||
Max: 176 | ||
|
||
# Offense count: 4 | ||
Metrics/PerceivedComplexity: | ||
Max: 12 | ||
|
||
# Offense count: 44 | ||
# Offense count: 12 | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'lib/mongoid/history.rb' | ||
- 'lib/mongoid/history/options.rb' | ||
- 'lib/mongoid/history/trackable.rb' | ||
- 'lib/mongoid/history/tracker.rb' | ||
- 'lib/mongoid/history/version.rb' | ||
- 'lib/mongoid/history/attributes/base.rb' | ||
- 'lib/mongoid/history/attributes/create.rb' | ||
- 'lib/mongoid/history/attributes/destroy.rb' | ||
- 'lib/mongoid/history/attributes/update.rb' | ||
- 'spec/integration/embedded_in_polymorphic_spec.rb' | ||
- 'spec/integration/integration_spec.rb' | ||
- 'spec/integration/multi_relation_spec.rb' | ||
- 'spec/integration/nested_embedded_documents_spec.rb' | ||
- 'spec/integration/nested_embedded_polymorphic_documents_spec.rb' | ||
- 'spec/integration/subclasses_spec.rb' | ||
- 'spec/support/mongoid_history.rb' | ||
- 'spec/unit/options_spec.rb' | ||
- 'spec/unit/singleton_methods_spec.rb' | ||
- 'spec/unit/trackable_spec.rb' | ||
- 'spec/unit/tracker_spec.rb' | ||
- 'spec/unit/attributes/base_spec.rb' | ||
- 'spec/unit/attributes/create_spec.rb' | ||
- 'spec/unit/attributes/destroy_spec.rb' | ||
- 'spec/unit/attributes/update_spec.rb' | ||
- 'lib/mongoid/history/options.rb' | ||
- 'lib/mongoid/history/trackable.rb' | ||
- 'lib/mongoid/history/tracker.rb' | ||
|
||
# Offense count: 6 | ||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
Style/EachWithObject: | ||
Exclude: | ||
- 'lib/mongoid/history/trackable.rb' | ||
- 'lib/mongoid/history/tracker.rb' | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Exclude. | ||
# Offense count: 2 | ||
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. | ||
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS | ||
Style/FileName: | ||
Exclude: | ||
- 'Dangerfile' | ||
- 'lib/mongoid-history.rb' | ||
|
||
# Offense count: 3 | ||
Style/MultilineBlockChain: | ||
# Offense count: 1 | ||
Style/IfInsideElse: | ||
Exclude: | ||
- 'lib/mongoid/history/trackable.rb' | ||
- 'lib/mongoid/history/tracker.rb' | ||
|
||
Style/ClassLength: | ||
# Offense count: 1 | ||
Style/MultilineBlockChain: | ||
Exclude: | ||
- 'lib/mongoid/history/options.rb' | ||
- 'lib/mongoid/history/tracker.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Mongoid | ||
module History | ||
VERSION = '0.6.2' | ||
VERSION = '0.6.2'.freeze | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.