generated from r7kamura/rubocop-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from github/kh-suggestions
Suggestions for PR #1
- Loading branch information
Showing
20 changed files
with
109 additions
and
90 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
strategy: | ||
matrix: | ||
ruby: | ||
- '2.6' | ||
- '2.7' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
|
||
vendor/ | ||
# rspec failure tracking | ||
.rspec_status |
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,9 +1,9 @@ | ||
AllCops: | ||
NewCops: enable | ||
SuggestExtensions: false | ||
TargetRubyVersion: 2.6 | ||
inherit_gem: | ||
rubocop-github: | ||
- config/default.yml | ||
- config/rails.yml | ||
|
||
Naming/FileName: | ||
Enabled: true | ||
Exclude: | ||
- "rubocop-rails-accessibility.gemspec" | ||
- "rubocop-rails-accessibility.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in rubocop-rails-accessibility.gemspec | ||
gemspec | ||
|
||
gem 'rake', '~> 13.0' | ||
gem 'rspec', '~> 3.0' | ||
gem 'rubocop', '~> 1.21' |
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,6 +1,5 @@ | ||
require: | ||
- rubocop/cop/rubocop_rails_accessibility_cops | ||
- rubocop-performance | ||
|
||
AllCops: | ||
DisabledByDefault: true | ||
|
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
4 changes: 2 additions & 2 deletions
4
lib/rubocop/cop/rubocop-rails-accessibility/no_positive_tabindex.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
6 changes: 3 additions & 3 deletions
6
lib/rubocop/cop/rubocop-rails-accessibility/no_redundant_image_alt.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,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'pathname' | ||
require 'yaml' | ||
require "pathname" | ||
require "yaml" | ||
|
||
require_relative 'inject' | ||
require_relative 'version' | ||
require_relative 'rubocop-rails-accessibility/image_has_alt' | ||
require_relative 'rubocop-rails-accessibility/link_has_href' | ||
require_relative 'rubocop-rails-accessibility/no_positive_tabindex' | ||
require_relative 'rubocop-rails-accessibility/no_redundant_image_alt' | ||
require_relative "inject" | ||
require_relative "version" | ||
require_relative "rubocop-rails-accessibility/image_has_alt" | ||
require_relative "rubocop-rails-accessibility/link_has_href" | ||
require_relative "rubocop-rails-accessibility/no_positive_tabindex" | ||
require_relative "rubocop-rails-accessibility/no_redundant_image_alt" |
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 | ||
|
||
module RubocopRailsAccessibility | ||
VERSION = '0.1.0' | ||
VERSION = "0.1.0" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'lib/rubocop/cop/version' | ||
require_relative "lib/rubocop/cop/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'rubocop-rails-accessibility' | ||
spec.name = "rubocop-rails-accessibility" | ||
spec.version = RubocopRailsAccessibility::VERSION | ||
spec.authors = ['dummy'] | ||
spec.email = ['[email protected]'] | ||
spec.authors = ["dummy"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = 'Custom extension for RuboCop.' | ||
spec.homepage = 'https://github.com/dummy/rubocop-rails-accessibility' | ||
spec.license = 'MIT' | ||
spec.required_ruby_version = '>= 2.6.0' | ||
spec.summary = "Custom extension for RuboCop." | ||
spec.homepage = "https://github.com/dummy/rubocop-rails-accessibility" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = ">= 2.7.0" | ||
|
||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = spec.homepage | ||
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md" | ||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = spec.homepage | ||
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md" | ||
spec.metadata["rubygems_mfa_required"] = "true" | ||
|
||
spec.add_development_dependency 'actionview' | ||
spec.add_development_dependency 'minitest' | ||
spec.add_dependency "rubocop", ">= 1.0.0" | ||
|
||
spec.add_development_dependency "actionview" | ||
spec.add_development_dependency "minitest" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
spec.add_development_dependency "rubocop-github" | ||
spec.add_development_dependency "rubocop-rails" | ||
spec.add_development_dependency "rubocop-performance" | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
|
@@ -28,9 +35,7 @@ Gem::Specification.new do |spec| | |
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) | ||
end | ||
end | ||
spec.bindir = 'exe' | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_runtime_dependency 'rubocop' | ||
spec.require_paths = ["lib"] | ||
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
Oops, something went wrong.