diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-03 13:28:01 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-03 13:28:01 -0800 |
commit | 49b6276e5a6cb07a1923376c956080e3d425ee23 (patch) | |
tree | a5dd3cced8753e39e555e4ad3ccd828beb4e3c59 /lib/chef/exceptions.rb | |
parent | 209a9cc2f3eaa1c2046bae485d69d52f4e11399e (diff) | |
download | chef-49b6276e5a6cb07a1923376c956080e3d425ee23.tar.gz |
auto-fixing some easy copschefstyle/fixes
3 Performance/CaseWhenSplat: Place when conditions with a splat at the end of the when branches.
1 Style/ElseAlignment: Align else with if.
1 Style/EvenOdd: Replace with Fixnum#even?.
1 Style/MethodDefParentheses: Use def with parentheses when there are parameters.
3 Style/PercentQLiterals: Do not use %Q unless interpolation is needed. Use %q.
3 Style/SpaceAfterColon: Space missing after colon.
2 Style/SpaceAfterMethodName: Do not put a space between a method name and the opening parenthesis.
2 Style/Tab: Tab detected.
1 Style/TrailingUnderscoreVariable: Do not use trailing _s in parallel assignment.
1 Style/UnneededCapitalW: Do not use %W unless interpolation is needed. If not, use %w.
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r-- | lib/chef/exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb index 9a2e9ae3a3..6fe364a91b 100644 --- a/lib/chef/exceptions.rb +++ b/lib/chef/exceptions.rb @@ -205,7 +205,7 @@ class Chef class ImmutableAttributeModification < NoMethodError def initialize super "Node attributes are read-only when you do not specify which precedence level to set. " + - %Q{To set an attribute use code like `node.default["key"] = "value"'} + %q{To set an attribute use code like `node.default["key"] = "value"'} end end |