Skip to content

Commit 463de45

Browse files
authored
Merge pull request #595 from splitrb/fix-frozen-string-literal-comment
Add frozen_string_literal to all files that were missing it
2 parents c601da3 + 7bbd6b2 commit 463de45

File tree

9 files changed

+9
-20
lines changed

9 files changed

+9
-20
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ inherit_from: .rubocop_todo.yml
22

33
AllCops:
44
Exclude:
5+
- 'Appraisals'
6+
- 'gemfiles/**/*'
57
- 'spec/**/*.rb'

.rubocop_todo.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -437,26 +437,6 @@ Style/ExpandPathArguments:
437437
Exclude:
438438
- 'split.gemspec'
439439

440-
# Offense count: 13
441-
# Cop supports --auto-correct.
442-
# Configuration parameters: EnforcedStyle.
443-
# SupportedStyles: always, never
444-
Style/FrozenStringLiteralComment:
445-
Exclude:
446-
- 'Appraisals'
447-
- 'Gemfile'
448-
- 'Rakefile'
449-
- 'gemfiles/4.2.gemfile'
450-
- 'gemfiles/5.0.gemfile'
451-
- 'gemfiles/5.1.gemfile'
452-
- 'gemfiles/5.2.gemfile'
453-
- 'gemfiles/6.0.gemfile'
454-
- 'lib/split/algorithms/block_randomization.rb'
455-
- 'lib/split/goals_collection.rb'
456-
- 'lib/split/redis_interface.rb'
457-
- 'lib/split/user.rb'
458-
- 'split.gemspec'
459-
460440
# Offense count: 13
461441
# Configuration parameters: MinBodyLength.
462442
Style/GuardClause:

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
source "https://rubygems.org"
23

34
gemspec

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env rake
2+
# frozen_string_literal: true
23
require 'bundler/gem_tasks'
34
require 'rspec/core/rake_task'
45
require 'appraisal'

lib/split/algorithms/block_randomization.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
# Selects alternative with minimum count of participants
23
# If all counts are even (i.e. all are minimum), samples from all possible alternatives
34

lib/split/goals_collection.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
module Split
23
class GoalsCollection
34

lib/split/redis_interface.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
module Split
23
# Simplifies the interface to Redis.
34
class RedisInterface

lib/split/user.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

34
module Split

split.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- encoding: utf-8 -*-
2+
# frozen_string_literal: true
23
$:.push File.expand_path("../lib", __FILE__)
34
require "split/version"
45

0 commit comments

Comments
 (0)