Skip to content

Commit 3170daa

Browse files
committed
(PUP-11841) Add frozen_string_literal
1 parent 46eddcf commit 3170daa

File tree

997 files changed

+996
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

997 files changed

+996
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,12 +1217,6 @@ Style/FormatString:
12171217
Style/FormatStringToken:
12181218
Enabled: false
12191219

1220-
# This cop supports safe auto-correction (--auto-correct).
1221-
# Configuration parameters: EnforcedStyle.
1222-
# SupportedStyles: always, always_true, never
1223-
Style/FrozenStringLiteralComment:
1224-
Enabled: false
1225-
12261220
# This cop supports safe auto-correction (--auto-correct).
12271221
Style/GlobalStdStream:
12281222
Exclude:

lib/hiera/puppet_function.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require 'hiera_puppet'
23

34
# Provides the base class for the puppet functions hiera, hiera_array, hiera_hash, and hiera_include.

lib/hiera/scope.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require 'forwardable'
23
class Hiera
34
class Scope

lib/hiera_puppet.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
Puppet.features.hiera?
23
require 'hiera/scope'
34
require_relative 'puppet'

lib/puppet.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative 'puppet/version'
23
require_relative 'puppet/concurrent/synchronized'
34

lib/puppet/agent.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative '../puppet/application'
23
require_relative '../puppet/error'
34
require_relative '../puppet/util/at_fork'

lib/puppet/agent/disabler.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative '../../puppet/util/json_lockfile'
23

34
# This module is responsible for encapsulating the logic for

lib/puppet/agent/locker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative '../../puppet/util/pidlock'
23
require_relative '../../puppet/error'
34

lib/puppet/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require 'optparse'
23
require_relative '../puppet/util/command_line'
34
require_relative '../puppet/util/constant_inflector'

lib/puppet/application/agent.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative '../../puppet/application'
23
require_relative '../../puppet/daemon'
34
require_relative '../../puppet/util/pidlock'

0 commit comments

Comments
 (0)