diff --git a/.rubocop.yml b/.rubocop.yml index ac8623638c73b..88d52c68be542 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -83,20 +83,8 @@ Style/FrozenStringLiteralComment: Enabled: true EnforcedStyle: always Include: - - 'activesupport/**/*' - - 'activemodel/**/*' - - 'actioncable/**/*' - - 'activejob/**/*' - - 'activerecord/**/*' - - 'activestorage/**/*' - - 'actionmailer/**/*' - - 'actionview/**/*' - - 'actionpack/**/*' - - 'ci/**/*' - - 'guides/**/*' - - 'tasks/**/*' - - 'tools/**/*' Exclude: + - 'railties/**/*' - 'actionview/test/**/*.builder' - 'actionview/test/**/*.ruby' - 'actionpack/test/**/*.builder' diff --git a/Gemfile b/Gemfile index 5e7d9b5b2e3d7..7fc8aa7552182 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } diff --git a/Rakefile b/Rakefile index 1421851900295..a67f8fd028b26 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "net/http" $:.unshift __dir__ diff --git a/rails.gemspec b/rails.gemspec index 31eee025bff62..4b57377871335 100644 --- a/rails.gemspec +++ b/rails.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip Gem::Specification.new do |s| diff --git a/version.rb b/version.rb index 7bacf2e0baaf2..92b5e0392a3ef 100644 --- a/version.rb +++ b/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Rails # Returns the version of the currently loaded Rails as a Gem::Version def self.gem_version