Skip to content

Commit f9d9f56

Browse files
committed
ppveyor rubocop
1 parent 5c6467c commit f9d9f56

File tree

12 files changed

+13
-11
lines changed

12 files changed

+13
-11
lines changed

.rubocop_todo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ Style/HashSyntax:
22
EnforcedStyle: hash_rockets
33
RSpec/NamedSubject:
44
Enabled: false
5+
Lint/ScriptPermission:
6+
Enabled: false

lib/puppet/parser/functions/regexpescape.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Puppet::Parser::Functions
66
Regexp escape a string or array of strings.
77
Requires either a single string or an array as an input.
88
DOC
9-
) do |arguments| # rubocop:disable Style/ClosingParenthesisIndentation
9+
) do |arguments| # rubocop:disable Layout/ClosingParenthesisIndentation
1010
raise(Puppet::ParseError, "regexpescape(): Wrong number of arguments given (#{arguments.size} for 1)") if arguments.empty?
1111

1212
value = arguments[0]

spec/acceptance/deprecation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop Mistake???
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
describe 'deprecation function' do

spec/acceptance/fqdn_rand_string_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop Mistake???
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
describe 'fqdn_rand_string function' do

spec/acceptance/is_a_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop Mistake???
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
if return_puppet_version =~ %r{^4}

spec/acceptance/loadjson_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop Error
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
tmpdir = default.tmpdir('stdlib')

spec/acceptance/loadyaml_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop Error
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
tmpdir = default.tmpdir('stdlib')

spec/acceptance/pw_hash_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper_acceptance'
33

44
# Windows and OS X do not have useful implementations of crypt(3)

spec/functions/validate_x509_rsa_key_pair_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper'
22

33
describe 'validate_x509_rsa_key_pair' do
4-
# rubocop:disable Lint/IndentHeredoc : Heredoc's are meant to be indented in this way
4+
# rubocop:disable Layout/IndentHeredoc : Heredoc's are meant to be indented in this way
55
let(:valid_cert) do
66
<<DOC
77
-----BEGIN CERTIFICATE-----

spec/unit/facter/package_provider_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop error??
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper'
33
require 'puppet/type'
44
require 'puppet/type/package'

spec/unit/facter/service_provider_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop error??
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper'
33
require 'puppet/type'
44
require 'puppet/type/service'

spec/unit/puppet/parser/functions/enclose_ipv6_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env ruby -S rspec # rubocop:disable Lint/ScriptPermission : Rubocop error??
1+
#! /usr/bin/env ruby -S rspec
22
require 'spec_helper'
33

44
describe 'the enclose_ipv6 function' do

0 commit comments

Comments
 (0)