-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace MadRubocop with Standard Ruby, a Ruby Style Guide with linter & automatic code fixer, to adopt community styles, and fix all offenses.
- Loading branch information
Showing
22 changed files
with
169 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,7 @@ | ||
# Styles are inherited from Mad Rubocop | ||
require: | ||
# Standard's config uses custom cops, so it must be loaded | ||
- standard | ||
|
||
inherit_gem: | ||
mad_rubocop: .rubocop.yml | ||
|
||
# Styles that are modified from the defaults | ||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
Exclude: | ||
- "**/*.pb.rb" | ||
|
||
Style/BlockDelimiters: | ||
Description: >- | ||
Avoid using {...} for multi-line blocks (multiline chaining is always ugly). | ||
Prefer {...} over do...end for single-line blocks. | ||
Exclude: | ||
- "spec/**/*" | ||
|
||
Style/HashSyntax: | ||
Description: >- | ||
Prefer Ruby 1.8 hash syntax { :a => 1, :b => 2 } over 1.9 syntax { a: 1, b: 2 }. | ||
EnforcedStyle: hash_rockets | ||
Exclude: | ||
- "Gemfile" | ||
|
||
Layout/SpaceAroundOperators: | ||
Exclude: | ||
- "*.gemspec" | ||
standard: config/base.yml | ||
standard-performance: config.base.yml |
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 @@ | ||
parallel: true # default: false | ||
ruby_version: 3.0 # default: RUBY_VERSION |
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
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
Oops, something went wrong.