Skip to content

Commit e7492be

Browse files
committed
Layout/EmptyLineAfterMagicComment
This commit enables the Rubocop Layout/EmptyLineAfterMagicComment cop and fixes all offenses.
1 parent 66d053b commit e7492be

File tree

996 files changed

+995
-4
lines changed

Some content is hidden

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

996 files changed

+995
-4
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ I18n/GetText/DecorateStringFormattingUsingPercent:
2222
I18n/RailsI18n/DecorateString:
2323
Enabled: false
2424

25-
# This cop supports safe auto-correction (--auto-correct).
26-
Layout/EmptyLineAfterMagicComment:
27-
Enabled: false
28-
2925
# This cop supports safe auto-correction (--auto-correct).
3026
# Configuration parameters: EnforcedStyleAlignWith, Severity.
3127
# SupportedStylesAlignWith: keyword, variable, start_of_line

lib/hiera/puppet_function.rb

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

45
# 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,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require 'forwardable'
34
class Hiera
45
class Scope

lib/hiera_puppet.rb

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

lib/puppet.rb

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

lib/puppet/agent.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require_relative '../puppet/application'
34
require_relative '../puppet/error'
45
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,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require_relative '../../puppet/util/json_lockfile'
34

45
# 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,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require_relative '../../puppet/util/pidlock'
34
require_relative '../../puppet/error'
45

lib/puppet/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require 'optparse'
34
require_relative '../puppet/util/command_line'
45
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,4 +1,5 @@
11
# frozen_string_literal: true
2+
23
require_relative '../../puppet/application'
34
require_relative '../../puppet/daemon'
45
require_relative '../../puppet/util/pidlock'

0 commit comments

Comments
 (0)