Skip to content

Commit

Permalink
[#1] Fix warnings from git-action with rubocop auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malparty committed Jun 8, 2021
1 parent 2d8c333 commit fd66c40
Show file tree
Hide file tree
Showing 27 changed files with 55 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/channels/application_cable/channel.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Channel < ActionCable::Channel::Base
end
Expand Down
2 changes: 2 additions & 0 deletions app/channels/application_cable/connection.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ApplicationCable
class Connection < ActionCable::Connection::Base
end
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ApplicationController < ActionController::Base
include Localization
end
2 changes: 2 additions & 0 deletions app/controllers/concerns/localization.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Localization
extend ActiveSupport::Concern

Expand Down
2 changes: 2 additions & 0 deletions app/helpers/application_helper.rb
@@ -1,2 +1,4 @@
# frozen_string_literal: true

module ApplicationHelper
end
2 changes: 2 additions & 0 deletions app/jobs/application_job.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked
Expand Down
2 changes: 2 additions & 0 deletions app/mailers/application_mailer.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base
default from: 'from@example.com'
layout 'mailer'
Expand Down
2 changes: 2 additions & 0 deletions app/models/application_record.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
4 changes: 3 additions & 1 deletion config.ru
@@ -1,6 +1,8 @@
# frozen_string_literal: true

# This file is used by Rack-based servers to start the application.

require_relative "config/environment"
require_relative 'config/environment'

run Rails.application
Rails.application.load_server
2 changes: 2 additions & 0 deletions spec/codebase/codebase_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe 'Codebase', codebase: true do
Expand Down
2 changes: 2 additions & 0 deletions spec/rails_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../config/environment', __dir__)

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
Expand Down
2 changes: 2 additions & 0 deletions spec/support/assets.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.when_first_matching_example_defined(type: :system) do
# On CI we use Docker and the assets are precompiled (in the Dockerfile) already
Expand Down
2 changes: 2 additions & 0 deletions spec/support/bullet.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
if Bullet.enable?
config.before(:each) do
Expand Down
2 changes: 2 additions & 0 deletions spec/support/capybara.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'selenium-webdriver'
require 'capybara'
require 'capybara/rspec'
Expand Down
2 changes: 2 additions & 0 deletions spec/support/database_cleaner.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
Expand Down
2 changes: 2 additions & 0 deletions spec/support/devise.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.include Devise::Test::ControllerHelpers, type: :controller
config.include Devise::Test::ControllerHelpers, type: :view
Expand Down
2 changes: 2 additions & 0 deletions spec/support/disable_animation.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rack
# disable CSS3 and jQuery animations in test mode for speed, consistency and avoiding timing issues.
# Usage for Rails:
Expand Down
2 changes: 2 additions & 0 deletions spec/support/request_helpers.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Request
module JsonHelpers
def json_response
Expand Down
2 changes: 2 additions & 0 deletions spec/support/retry.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rspec/retry'

RSpec.configure do |config|
Expand Down
2 changes: 2 additions & 0 deletions spec/support/shoulda_matchers.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
Expand Down
2 changes: 2 additions & 0 deletions spec/support/sidekiq.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'sidekiq/testing'

RSpec.configure do |config|
Expand Down
2 changes: 2 additions & 0 deletions spec/support/simplecov.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'simplecov'
require 'simplecov-json'
require 'simplecov-lcov'
Expand Down
2 changes: 2 additions & 0 deletions spec/support/system.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.before(:each, type: :system) do
# use headless_chrome, by default
Expand Down
2 changes: 2 additions & 0 deletions spec/support/vcr.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'vcr'

VCR.configure do |c|
Expand Down
2 changes: 2 additions & 0 deletions spec/support/webdrivers.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Configure VCR and WebMock to work with webdrivers
# https://github.com/titusfortner/webdrivers/wiki/Using-with-VCR-or-WebMock
if defined?(VCR)
Expand Down
2 changes: 2 additions & 0 deletions spec/support/webpack.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.configure do |config|
config.when_first_matching_example_defined(type: :system) do
if ENV['TEST_SKIP_ASSET'].blank?
Expand Down

0 comments on commit fd66c40

Please sign in to comment.