Skip to content

Commit

Permalink
This rule is stupid... it has ne forzen_string pragmae
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob authored Mar 15, 2018
1 parent 24b05de commit 8cdfaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplecov/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SimpleCov
VERSION = "0.16.0"
VERSION = "0.16.0".freeze
end

2 comments on commit 8cdfaaa

@bquorning
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is because you have TargetRubyVersion: 1.9 in .rubocop.yml. The pragma only applies to Ruby >= 2.3, so for older rubies Rubocop will still remind you to freeze string constants.

@PragTob
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I see - thank you!

Please sign in to comment.