Use frozen string literals

This commit is contained in:
Gui Vieira 2019-12-27 15:44:30 -08:00
parent 94b5b2a852
commit 4b6d98fd75
281 changed files with 559 additions and 2 deletions

View File

@ -136,8 +136,6 @@ Style/EvenOdd:
Enabled: false
Style/FormatString:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalVars:
Enabled: false
Style/GuardClause:

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Note: All of the dependencies here were obtained by running `rails new` with
# various versions of Rails and copying lines from the generated Gemfile. It's
# best to keep the gems here in the same order as they're listed there so you

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'appraisal', '2.2.0'

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'zeus'
require 'zeus/plan'
require_relative 'spec/support/tests/current_bundle'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
YARD::Templates::Engine.register_template_path(File.dirname(__FILE__) + '/templates')
require 'pygments.rb'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
def stylesheets_full_list
%w(css/solarized.css css/bootstrap.css css/global.css) + super
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
def stylesheets
%w(css/solarized.css css/bootstrap.css css/global.css) + super
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View File

@ -1 +1,3 @@
# frozen_string_literal: true
require 'shoulda/matchers'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'shoulda/matchers/configuration'
require 'shoulda/matchers/doublespeak'
require 'shoulda/matchers/error'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'shoulda/matchers/action_controller/filter_param_matcher'
require 'shoulda/matchers/action_controller/route_params'
require 'shoulda/matchers/action_controller/set_flash_matcher'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'delegate'
begin

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActionController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'shoulda/matchers/active_model/helpers'
require 'shoulda/matchers/active_model/qualifiers'
require 'shoulda/matchers/active_model/validation_matcher'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'bigdecimal'
require 'date'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "shoulda/matchers/active_record/association_matcher"
require "shoulda/matchers/active_record/association_matchers"
require "shoulda/matchers/active_record/association_matchers/counter_cache_matcher"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'active_support/core_ext/module/delegation'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'delegate'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveModel

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'thread'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'thread'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module ActiveRecord

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
# @private

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'forwardable'
module Shoulda

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module Doublespeak

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Shoulda
module Matchers
module Doublespeak

Some files were not shown because too many files have changed in this diff Show More