rubocop noise: fixes FrozenStringLiteralComment

Adding the .ruby-verison file triggered previously un-run cops, specifically:

  This cop is designed to help upgrade to Ruby 3.0. It will add the
  comment `# frozen_string_literal: true` to the top of files to enable
  frozen string literals. Frozen string literals will be default in Ruby
  3.0. The comment will be added below a shebang and encoding comment. The
  frozen string literal comment is only valid in Ruby 2.3+.

More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections)
This commit is contained in:
Mark Moser
2016-09-08 10:25:33 -05:00
parent 20614a7fce
commit 4bbd93ded1
114 changed files with 114 additions and 2 deletions

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
module Admin

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
module Admin

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
module Admin

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
module Admin

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
module Admin

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AdminControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class ApplicationControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CandidateControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuizControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class RecruiterControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class ReviewControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuestionAttachmentsTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuestionFlowTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CandidateMailerTest < ActionMailer::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/candidate_mailer
class CandidateMailerPreview < ActionMailer::Preview
def welcome

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/recruiter_mailer
class RecruiterMailerPreview < ActionMailer::Preview
def candidate_created

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/reviewer_mailer
class ReviewerMailerPreview < ActionMailer::Preview
def candidate_submission

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
class UserMailerPreview < ActionMailer::Preview
def password_reset

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class RecruiterMailerTest < ActionMailer::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class ReviewerMailerTest < ActionMailer::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class UserMailerTest < ActionMailer::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AnswerTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CandidateTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuestionTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuizTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class UserTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CryptSerializerTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class SkillConfigTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
ENV['RAILS_ENV'] ||= 'test'
# https://github.com/colszowka/simplecov

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
class AnswerValidatable
include ActiveModel::Validations

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
class EmailValidatable
include ActiveModel::Validations
attr_accessor :email

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
class InputOptionsValidatable
include ActiveModel::Validations
attr_accessor :input_type

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
# *_with_other answers expect a hash response:

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AnswerFormatValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AnswerFormatValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
# *_with_other answers expect a hash answer:

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AnswerFormatValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class AnswerFormatValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class EmailFormatValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class InputOptionsPresenceValidatorTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CandidateQuizQuestionTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class CandidateQuizTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class QuizStatusTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require 'test_helper'
class ReminderTest < ActiveSupport::TestCase