-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simple RuboCop fixes * Add `max_line_length` into EditorConfig Duplicate value from RuboCop config. * Remove RuboCop config file from `.gitignore` * Breaking changes with optional arguments There were RuboCop offenses, and I think keyword approaches is better. * Add Changelog entries * Fix error with `Image.file` * Resolve RuboCop offense about global variable I don't know a way better, the whole approach is not the best. * Replace manual `autoload` list with dynamic one * Resolve RuboCop offense about block length in `scripts/reference` * Add `.rubocop_todo` file Resolve these issues later. * Add `rubocop-performance` and `rubocop-rake` gems Resolve new offenses. * Add `inherit_mode` for RuboCop config * Resolve Ruby warning about `-` char in Regex * Add RuboCop GitHub Action * Add `bundle exec` for GitHub Actions * Rename `autoload_abbreviations` into `autoload_acronyms` * Resolve a new RuboCop offense * Add file exclusions for `Style/AsciiComments` RuboCop cop Also turn them into mask by locale. * Revert breaking changes, return positional arguments Leave keyword arguments, add deprecation warning for positional. --------- Co-authored-by: marocchino <marocchino@users.noreply.github.com>
- Loading branch information
1 parent
9b93e54
commit 14eed86
Showing
62 changed files
with
478 additions
and
353 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: RuboCop | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: RuboCop lint | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 'ruby' | ||
bundler-cache: true # 'bundle install' and cache | ||
- run: bundle exec rake rubocop |
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 |
---|---|---|
|
@@ -17,4 +17,3 @@ Gemfile.lock | |
.ruby-gemset | ||
.ruby-version | ||
.rvmrc | ||
.rubocop.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
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,6 @@ | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
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 |
---|---|---|
@@ -1,4 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
group :development do | ||
gem 'rake', '~> 13.0' | ||
end | ||
|
||
group :development, :lint do | ||
gem 'rubocop' | ||
gem 'rubocop-performance' | ||
gem 'rubocop-rake' | ||
end | ||
|
||
group :development, :test do | ||
gem 'test-unit' | ||
end |
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.