Skip to content

Commit 047a188

Browse files
committed
Uses the frozen_string_literal magic comment (will be the default in Ruby 3)
1 parent 898e8d4 commit 047a188

File tree

256 files changed

+512
-5
lines changed

Some content is hidden

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

256 files changed

+512
-5
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ Metrics/CyclomaticComplexity:
2222
Max: 8
2323
Style/Documentation:
2424
Enabled: false
25-
Style/FrozenStringLiteralComment:
26-
Enabled: false
2725
Style/FormatStringToken:
2826
Enabled: false

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24
gemspec

app/app.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 'models'
24
require_relative 'finders'
35
require_relative 'controllers'

app/controllers.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 'controllers/core'
24
require_relative 'controllers/custom_directories'
35
require_relative 'controllers/wp_version'

app/controllers/aliases.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
module WPScan
24
module Controller
35
# Controller to add the aliases in the CLI

app/controllers/core.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
module WPScan
24
module Controller
35
# Specific Core controller to include WordPress checks

app/controllers/custom_directories.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
module WPScan
24
module Controller
35
# Controller to ensure that the wp-content and wp-plugins

app/controllers/enumeration.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 'enumeration/cli_options'
24
require_relative 'enumeration/enum_methods'
35

app/controllers/enumeration/cli_options.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
module WPScan
24
module Controller
35
# Enumeration CLI Options

app/controllers/enumeration/enum_methods.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
module WPScan
24
module Controller
35
# Enumeration Methods

0 commit comments

Comments
 (0)