diff options
author | Michael Herold <michael.j.herold@gmail.com> | 2017-02-01 08:03:45 -0600 |
---|---|---|
committer | Michael Herold <michael.j.herold@gmail.com> | 2017-02-04 14:38:00 -0600 |
commit | b2f94a486650587573fea808cf0b1dbb06bc57e5 (patch) | |
tree | 5c1c075c9be1523b62c94a3a107b9051bbcd400a /.rubocop_todo.yml | |
parent | 24caf3564e3073c68227590e72bf43e0a604ac68 (diff) | |
download | hashie-b2f94a486650587573fea808cf0b1dbb06bc57e5.tar.gz |
Allow Mash subclasses to disable warnings
Since we are transitively used as a dependency in many projects, we
should have given the ability to toggle this behavior off. The logging
feature is more of a "help people get started with Mash" feature. If
you're using Hashie in a library, it's likely that you already know the
tradeoffs of attempting to override methods on the object.
To use this feature, you only have to subclass Mash and then call the
class method:
```ruby
class KeyStore < Hashie::Mash
disable_warnings
end
```
Diffstat (limited to '.rubocop_todo.yml')
-rw-r--r-- | .rubocop_todo.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0afd71c..63464d3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2016-06-01 14:51:33 -0700 using RuboCop version 0.34.2. +# on 2017-02-01 08:14:39 -0600 using RuboCop version 0.34.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 @@ -11,30 +11,30 @@ Lint/NestedMethodDefinition: Exclude: - 'lib/hashie/extensions/indifferent_access.rb' -# Offense count: 8 +# Offense count: 10 Metrics/AbcSize: Max: 29 # Offense count: 2 # Configuration parameters: CountComments. Metrics/ClassLength: - Max: 191 + Max: 200 -# Offense count: 6 +# Offense count: 8 Metrics/CyclomaticComplexity: Max: 11 -# Offense count: 231 +# Offense count: 239 # Configuration parameters: AllowURI, URISchemes. Metrics/LineLength: Max: 170 -# Offense count: 16 +# Offense count: 17 # Configuration parameters: CountComments. Metrics/MethodLength: Max: 28 -# Offense count: 5 +# Offense count: 6 Metrics/PerceivedComplexity: Max: 10 @@ -43,12 +43,12 @@ Style/CaseEquality: Exclude: - 'lib/hashie/hash.rb' -# Offense count: 32 +# Offense count: 34 # Configuration parameters: Exclude. Style/Documentation: Enabled: false -# Offense count: 10 +# Offense count: 11 Style/DoubleNegation: Exclude: - 'lib/hashie/dash.rb' |