Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from zendesk/bquorning/standardrb
Lint Ruby with StandardRb instead of RuboCop
- Loading branch information
Showing
26 changed files
with
248 additions
and
318 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Auto generated files with errors to ignore. | ||
# Remove from this list as you refactor files. | ||
--- | ||
ignore: | ||
- lib/active_record_host_pool/connection_adapter_mixin.rb: | ||
- Style/EmptyMethod | ||
- Style/SingleLineMethods | ||
- Style/ArgumentsForwarding | ||
- lib/active_record_host_pool/connection_proxy.rb: | ||
- Style/ArgumentsForwarding | ||
- lib/active_record_host_pool/pool_proxy.rb: | ||
- Style/ArgumentsForwarding |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
eval_gemfile 'gemfiles/rails6.1.gemfile' | ||
eval_gemfile "gemfiles/rails6.1.gemfile" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
require 'bundler/setup' | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'rubocop/rake_task' | ||
require "bundler/setup" | ||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
require "rubocop/rake_task" | ||
require "standard/rake" | ||
|
||
# Pushing to rubygems is handled by a github workflow | ||
ENV['gem_push'] = 'false' | ||
ENV["gem_push"] = "false" | ||
|
||
Rake::TestTask.new do |test| | ||
test.pattern = 'test/test_*.rb' | ||
test.pattern = "test/test_*.rb" | ||
test.verbose = true | ||
test.warning = true | ||
end | ||
|
||
task default: ['rubocop', 'test'] | ||
|
||
RuboCop::RakeTask.new | ||
task default: ["test", "standard:fix"] |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../' | ||
gemspec path: "../" | ||
|
||
gem 'activerecord', '~> 6.1.0' | ||
gem 'mysql2', '~> 0.5' | ||
gem "activerecord", "~> 6.1.0" | ||
gem "mysql2", "~> 0.5" | ||
|
||
eval_gemfile 'common.rb' | ||
eval_gemfile "common.rb" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec path: '../' | ||
gemspec path: "../" | ||
|
||
gem 'activerecord', '~> 7.0.0' | ||
gem 'mysql2', '~> 0.5' | ||
gem "activerecord", "~> 7.0.0" | ||
gem "mysql2", "~> 0.5" | ||
|
||
eval_gemfile 'common.rb' | ||
eval_gemfile "common.rb" |
Oops, something went wrong.