diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-07 15:27:14 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-07 15:30:16 -0800 |
commit | 456d46652adb4fe13f4fc4dca8e2e6f8b0544743 (patch) | |
tree | df34547a39ddee2d78ec2b99b406847f0d9d6dd2 | |
parent | 49fe410e3c0bc355cd5d9dbde4eab3679928a489 (diff) | |
download | chef-456d46652adb4fe13f4fc4dca8e2e6f8b0544743.tar.gz |
Chefstyle fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | Gemfile.lock | 6 | ||||
-rw-r--r-- | lib/chef/cookbook_site_streaming_uploader.rb | 2 | ||||
-rw-r--r-- | lib/chef/win32/api/error.rb | 4 | ||||
-rw-r--r-- | lib/chef/win32/api/net.rb | 2 | ||||
-rw-r--r-- | lib/chef/win32/eventlog.rb | 2 | ||||
-rw-r--r-- | spec/support/shared/functional/securable_resource.rb | 4 | ||||
-rw-r--r-- | spec/unit/provider_resolver_spec.rb | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 7c2bf52d5b..cf74686959 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ GIT remote: https://github.com/chef/chefstyle.git - revision: 6177d8b414add867bc89c8bab374f2e39cc717fe + revision: 8d9aed96d01f93a1b14583f902b7504cf61b9f72 branch: master specs: - chefstyle (0.7.0) + chefstyle (0.8.0) rubocop (= 0.52.1) GIT @@ -237,7 +237,7 @@ GEM octokit (4.8.0) sawyer (~> 0.8.0, >= 0.5.3) parallel (1.12.1) - parser (2.5.0.2) + parser (2.5.0.3) ast (~> 2.4.0) parslet (1.8.2) plist (3.4.0) diff --git a/lib/chef/cookbook_site_streaming_uploader.rb b/lib/chef/cookbook_site_streaming_uploader.rb index 1641992eac..c082710da3 100644 --- a/lib/chef/cookbook_site_streaming_uploader.rb +++ b/lib/chef/cookbook_site_streaming_uploader.rb @@ -31,7 +31,7 @@ class Chef # inspired by http://stanislavvitvitskiy.blogspot.com/2008/12/multipart-post-in-ruby.html class CookbookSiteStreamingUploader - DefaultHeaders = { "accept" => "application/json", "x-chef-version" => ::Chef::VERSION } # rubocop:disable Style/ConstantName + DefaultHeaders = { "accept" => "application/json", "x-chef-version" => ::Chef::VERSION } # rubocop:disable Naming/ConstantName class << self diff --git a/lib/chef/win32/api/error.rb b/lib/chef/win32/api/error.rb index 12ccdb5ee9..758eb98874 100644 --- a/lib/chef/win32/api/error.rb +++ b/lib/chef/win32/api/error.rb @@ -194,12 +194,12 @@ class Chef ERROR_INVALID_EXE_SIGNATURE = 191 ERROR_EXE_MARKED_INVALID = 192 ERROR_BAD_EXE_FORMAT = 193 - ERROR_ITERATED_DATA_EXCEEDS_64k = 194 # rubocop:disable Style/ConstantName + ERROR_ITERATED_DATA_EXCEEDS_64k = 194 # rubocop:disable Naming/ConstantName ERROR_INVALID_MINALLOCSIZE = 195 ERROR_DYNLINK_FROM_INVALID_RING = 196 ERROR_IOPL_NOT_ENABLED = 197 ERROR_INVALID_SEGDPL = 198 - ERROR_AUTODATASEG_EXCEEDS_64k = 199 # rubocop:disable Style/ConstantName + ERROR_AUTODATASEG_EXCEEDS_64k = 199 # rubocop:disable Naming/ConstantName ERROR_RING2SEG_MUST_BE_MOVABLE = 200 ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201 ERROR_INFLOOP_IN_RELOC_CHAIN = 202 diff --git a/lib/chef/win32/api/net.rb b/lib/chef/win32/api/net.rb index abf0dd83ec..169c68bbdf 100644 --- a/lib/chef/win32/api/net.rb +++ b/lib/chef/win32/api/net.rb @@ -45,7 +45,7 @@ class Chef USE_FORCE = 1 USE_LOTS_OF_FORCE = 2 #every windows API should support this flag - NERR_Success = 0 # rubocop:disable Style/ConstantName + NERR_Success = 0 # rubocop:disable Naming/ConstantName ERROR_MORE_DATA = 234 ffi_lib "netapi32" diff --git a/lib/chef/win32/eventlog.rb b/lib/chef/win32/eventlog.rb index 418d72e65e..e8c63bf13a 100644 --- a/lib/chef/win32/eventlog.rb +++ b/lib/chef/win32/eventlog.rb @@ -26,6 +26,6 @@ if Chef::Platform.windows? end require "win32/eventlog" - Chef::Win32EventLogLoaded = true # rubocop:disable Style/ConstantName + Chef::Win32EventLogLoaded = true # rubocop:disable Naming/ConstantName end end diff --git a/spec/support/shared/functional/securable_resource.rb b/spec/support/shared/functional/securable_resource.rb index 95f4f4bd49..2ca93bdcd0 100644 --- a/spec/support/shared/functional/securable_resource.rb +++ b/spec/support/shared/functional/securable_resource.rb @@ -81,7 +81,7 @@ shared_context "use Windows permissions", :windows_only do SID ||= Chef::ReservedNames::Win32::Security::SID ACE ||= Chef::ReservedNames::Win32::Security::ACE ACL ||= Chef::ReservedNames::Win32::Security::ACL - SecurableObject ||= Chef::ReservedNames::Win32::Security::SecurableObject # rubocop:disable Style/ConstantName + SecurableObject ||= Chef::ReservedNames::Win32::Security::SecurableObject # rubocop:disable Naming/ConstantName end def get_security_descriptor(path) @@ -439,7 +439,7 @@ shared_examples_for "a securable resource without existing target" do context "with a mode attribute" do if windows? - Security ||= Chef::ReservedNames::Win32::API::Security # rubocop:disable Style/ConstantName + Security ||= Chef::ReservedNames::Win32::API::Security # rubocop:disable Naming/ConstantName end it "respects mode in string form as an octal number" do diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb index 5b9edcbd4a..a913c82a1e 100644 --- a/spec/unit/provider_resolver_spec.rb +++ b/spec/unit/provider_resolver_spec.rb @@ -563,7 +563,7 @@ describe Chef::ProviderResolver do csh: [ Chef::Resource::Csh, Chef::Provider::Script ], directory: [ Chef::Resource::Directory, Chef::Provider::Directory ], dpkg_package: [ Chef::Resource::DpkgPackage, Chef::Provider::Package::Dpkg ], - dsc_script: [ Chef::Resource::DscScript, Chef::Provider::DscScript ], + dsc_script: [ Chef::Resource::DscScript, Chef::Provider::DscScript ], dscl_user: [ Chef::Resource::User::DsclUser, Chef::Provider::User::Dscl ], execute: [ Chef::Resource::Execute, Chef::Provider::Execute ], file: [ Chef::Resource::File, Chef::Provider::File ], |