Skip to content

Commit a76d361

Browse files
committed
(MAINT) Rubocop: Add frozen_string_literal comment
1 parent 70143f0 commit a76d361

File tree

107 files changed

+214
-0
lines changed

Some content is hidden

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

107 files changed

+214
-0
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ require: rubocop-performance
22
inherit_from: .rubocop_todo.yml
33

44
AllCops:
5+
TargetRubyVersion: 2.3
56
Exclude:
67
# Ignore HTML related things
78
- '**/*.erb'
@@ -10,6 +11,7 @@ AllCops:
1011
- spec/fixtures/modules/**/*
1112
- spec/fixtures/ruby/**/*
1213

14+
1315
# DISABLED - not useful
1416
Bundler/OrderedGems:
1517
Enabled: false

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source ENV['GEM_SOURCE'] || "https://rubygems.org"
24

35
gemspec

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
if Bundler.rubygems.find_name('puppet_litmus').any?
24
require 'puppet_litmus/rake_tasks'
35

lib/puppet-strings.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# The root module for Puppet Strings.
24
module PuppetStrings
35
# The glob patterns used to search for files to document.

lib/puppet-strings/describe.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'json'
24
require 'puppet-strings/json'
35

lib/puppet-strings/json.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'json'
24

35
# The module for JSON related functionality.

lib/puppet-strings/markdown.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet-strings/json'
24

35
# module for parsing Yard Registries and generating markdown

lib/puppet-strings/markdown/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet-strings'
24
require 'puppet-strings/json'
35
require 'puppet-strings/yard'

lib/puppet-strings/markdown/data_type.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet-strings/markdown/base'
24

35
module PuppetStrings::Markdown

lib/puppet-strings/markdown/data_types.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require_relative 'data_type'
24

35
module PuppetStrings::Markdown

0 commit comments

Comments
 (0)