Skip to content

Commit 0b465f9

Browse files
committed
Rubocopped.
1 parent 8b4e0b9 commit 0b465f9

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.rubocop.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ AllCops:
66
- db/schema.rb
77
- db/seeds.rb
88
- db/migrate/*
9-
# Travis installs gems in the vendor directory, which causes rubocop to try
10-
# and cop our gems. We don't want it to.
11-
- vendor/**/*
12-
- 'test/**/*'
139
- 'spec/**/*'
1410
- 'config/routes.rb'
1511
- 'config/initializers/secret_token.rb'
@@ -18,10 +14,7 @@ AllCops:
1814
- 'bin/*'
1915
- 'config/application.rb'
2016
- 'config/initializers/content_security_policy.rb'
21-
# Exclude auto-generated GraphQL classes
22-
- 'app/controllers/graphql_controller.rb'
23-
- 'app/graphql/mutations/base_*'
24-
- 'app/graphql/types/base_*'
17+
- 'config/initializers/new_framework_defaults_7_0.rb'
2518

2619
# The cop is meant to enforce conventions regarding variables containing numbers
2720
# However in 0.43.0 it is bugged. Both changed on master and disabled by default

config/boot.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
1+
# frozen_string_literal: true
22

3-
require "bundler/setup" # Set up gems listed in the Gemfile.
4-
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
3+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4+
5+
require 'bundler/setup' # Set up gems listed in the Gemfile.
6+
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.

config/environment.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# frozen_string_literal: true
2+
13
# Load the Rails application.
2-
require_relative "application"
4+
require_relative 'application'
35

46
# Initialize the Rails application.
57
Rails.application.initialize!
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# frozen_string_literal: true
2+
13
# Be sure to restart your server when you modify this file.
24

35
# Configure parameters to be filtered from the log file. Use this to limit dissemination of
46
# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
57
# notations and behaviors.
6-
Rails.application.config.filter_parameters += [
7-
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
8+
Rails.application.config.filter_parameters += %i[
9+
passw secret token _key crypt salt certificate otp ssn
810
]

config/initializers/inflections.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# Be sure to restart your server when you modify this file.
23

34
# Add new inflection rules using the following format. Inflections

config/initializers/new_framework_defaults_7_0.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# Be sure to restart your server when you modify this file.
23
#
34
# This file eases your Rails 7.0 framework defaults upgrade.

0 commit comments

Comments
 (0)