This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
return unless defined?(DeprecationToolkit) | |
DeprecationToolkit::Configuration.warnings_treated_as_deprecation = [ | |
%r{^((?!/gems/).)* warning: Using the last argument as keyword parameters is deprecated}, | |
%r{^((?!/gems/).)* warning: Passing the keyword argument as the last hash parameter is deprecated}, | |
%r{^((?!/gems/).)* warning: Splitting the last argument into positional and keyword parameters is deprecated}, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
Warning.singleton_class.prepend( | |
Module.new do | |
DISABLED_WARNINGS = Regexp.union( | |
/_pry_ is deprecated, use pry_instance instead/, | |
/warning: The called method( `.+')? is defined here/, | |
) | |
def warn(warning) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'test_helper' | |
class FactoryBotTest < ActiveSupport::TestCase | |
test 'lint all factories' do | |
FactoryBot.lint(traits: true, verbose: true) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require: | |
- rubocop-rails | |
- rubocop-performance | |
AllCops: | |
Exclude: | |
- 'bin/**/*' | |
- 'db/schema.rb' | |
- 'node_modules/**/*' | |
- 'vendor/**/*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres: | |
container_name: my_rails_project_postgres | |
image: postgres:11.5-alpine | |
ports: ['5432:5432'] | |
environment: | |
POSTGRES_USER: ${USER} | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
update_configs: | |
- package_manager: "ruby:bundler" | |
update_schedule: "live" | |
directory: "/" | |
target_branch: "master" | |
allowed_updates: | |
- match: | |
update_type: "all" |