-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FC-745 Disable SchemaComment, update dependencies #8
Draft
karniv00l
wants to merge
4
commits into
fairmoney:master
Choose a base branch
from
karniv00l:FC-745-SchemaComment
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,5 +13,8 @@ | |
# IntelliJ IDEA files | ||
.idea | ||
|
||
.DS_Store | ||
|
||
# build | ||
*.gem | ||
|
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,12 @@ | ||
Naming/FileName: | ||
Exclude: | ||
- lib/rubocop-fairmoney.rb | ||
|
||
AllCops: | ||
NewCops: enable | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Naming/HeredocDelimiterNaming: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in rubocop-fairmoney.gemspec | ||
gemspec | ||
|
||
gem "rake", "~> 12.0" | ||
gem "rspec", "~> 3.0" | ||
gem "rubocop", "~> 1.13" | ||
gem "rubocop-performance", require: false | ||
gem "rubocop-rails", require: false | ||
gem "rubocop-rake", require: false | ||
gem "rubocop-rspec", require: false | ||
gem "rubocop-thread_safety", require: false | ||
gem 'activesupport', '~> 6' | ||
gem 'rake', '~> 12.0' | ||
gem 'rspec', '~> 3.0' | ||
gem 'rubocop', '~> 1.13' | ||
gem 'rubocop-performance', require: false | ||
gem 'rubocop-rails', require: false | ||
gem 'rubocop-rake', require: false | ||
gem 'rubocop-rspec', require: false | ||
gem 'rubocop-thread_safety', require: 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
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 |
---|---|---|
|
@@ -104,3 +104,6 @@ Style/MissingElse: | |
Style/StringHashKeys: | ||
Exclude: | ||
- 'config/routes.rb' | ||
|
||
Rails/SchemaComment: | ||
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,2 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'fairmoney/no_if_in_test_descriptions' |
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,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module RuboCop | ||
module Fairmoney | ||
VERSION = "1.0.3" | ||
VERSION = '1.0.3' | ||
end | ||
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,34 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'lib/rubocop/fairmoney/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "rubocop-fairmoney" | ||
spec.name = 'rubocop-fairmoney' | ||
spec.version = RuboCop::Fairmoney::VERSION | ||
spec.authors = ["Matthieu Gendreau"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Matthieu Gendreau'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = "Custom code style checking for FairMoney." | ||
spec.summary = 'Custom code style checking for FairMoney.' | ||
spec.description = <<-EOF | ||
A plugin for RuboCop code style enforcing & linting tool. It includes Rubocop configuration | ||
used at FairMoney. | ||
EOF | ||
spec.homepage = "https://fairmoney.ng/" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") | ||
spec.homepage = 'https://fairmoney.ng/' | ||
spec.license = 'MIT' | ||
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') # rubocop:disable Gemspec/RequiredRubyVersion | ||
|
||
spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com' | ||
|
||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = "https://github.com/fairmoney/rubocop-fairmoney" | ||
spec.metadata["changelog_uri"] = "https://github.com/fairmoney/rubocop-fairmoney/blob/master/CHANGELOG.md" | ||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = 'https://github.com/fairmoney/rubocop-fairmoney' | ||
spec.metadata['changelog_uri'] = 'https://github.com/fairmoney/rubocop-fairmoney/blob/master/CHANGELOG.md' | ||
|
||
# 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. | ||
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.bindir = "exe" | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_runtime_dependency 'rubocop' | ||
spec.add_runtime_dependency 'rubocop-performance' | ||
|
@@ -37,4 +39,3 @@ Gem::Specification.new do |spec| | |
spec.add_runtime_dependency 'rubocop-rspec' | ||
spec.add_runtime_dependency 'rubocop-thread_safety' | ||
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,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe RuboCop::Fairmoney do | ||
it "has a version number" do | ||
it 'has a version number' do | ||
expect(RuboCop::Fairmoney::VERSION).not_to be nil | ||
end | ||
end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated
require