Add frozen string literal magic comment

This is enabled by default in later versions of Rubocop. Making this
change now removes this conflict for people running later versions.

Automatically fixed with `rubocop -a`
This commit is contained in:
Duncan Stuart 2019-08-12 13:34:03 +02:00
parent e39e1c5a81
commit f13c28d854
10 changed files with 21 additions and 0 deletions

View File

@ -54,6 +54,9 @@ Style/AndOr:
Style/Not:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Documentation:
Enabled: false # TODO: Enable again once we have more docs

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
ruby RUBY_VERSION

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "rubygems"
require "bundler/gem_tasks"
require "rspec/core/rake_task"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Pundit
# Finds policy and scope classes for given object.
# @api public

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "active_support/core_ext/array/conversions"
module Pundit

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "pundit/version"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
describe PostPolicy do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
describe Pundit::PolicyFinder do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "spec_helper"
describe Pundit do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "pundit"
require "pundit/rspec"