Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(StringLiterals): enforce double quotes
- Loading branch information
Showing
27 changed files
with
368 additions
and
322 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 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,6 +1,9 @@ | ||
versions: | ||
- rubocop-md | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-thread_safety | ||
|
||
rubocop_fail_level: warning | ||
check_scope: modified | ||
base_branch: origin/main |
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,14 +1,31 @@ | ||
require: | ||
- rubocop-performance | ||
- rubocop-thread_safety | ||
|
||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.7 | ||
|
||
Exclude: | ||
- test.rb | ||
|
||
require: | ||
- rubocop-md | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-thread_safety | ||
|
||
# Enforcing double quotes reduces the times where you need to switch to Crystal. | ||
Style/StringLiterals: | ||
EnforcedStyle: single_quotes | ||
EnforcedStyle: double_quotes | ||
|
||
# We do not need to support Ruby 1.9, so this is good to use. | ||
Style/SymbolArray: | ||
Enabled: true | ||
|
||
# Most readable form. | ||
Layout/HashAlignment: | ||
EnforcedHashRocketStyle: table | ||
EnforcedColonStyle: table | ||
|
||
# Check with yard instead. | ||
Style/Documentation: | ||
Enabled: false |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.2 |
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,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec |
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
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,23 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'rubocop/rake_task' | ||
|
||
RuboCop::RakeTask.new | ||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
require "rubocop/rake_task" | ||
require "yard" | ||
|
||
Rake::TestTask.new do |t| | ||
t.pattern = 'test.rb' | ||
t.pattern = "test.rb" | ||
t.verbose = true | ||
t.warning = true | ||
end | ||
|
||
namespace :test do | ||
task :coverage do | ||
ENV['COVERAGE'] = 'true' | ||
Rake::Task['test'].invoke | ||
end | ||
end | ||
RuboCop::RakeTask.new | ||
YARD::Rake::YardocTask.new | ||
|
||
Dir["tasks/**/*.rake"].each { |t| load t } | ||
|
||
task(:doc_stats) { ruby '-S yard stats' } | ||
task default: %i[test doc_stats rubocop] | ||
task default: %i[yard brutal rubocop:auto_correct test] |
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 +1 @@ | ||
3.1.2 | ||
3.1.3 |
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,8 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'spectus' | ||
require 'irb' | ||
require "bundler/setup" | ||
require "spectus" | ||
require "irb" | ||
|
||
IRB.start |
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
Oops, something went wrong.