Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.2
3.1.0
8 changes: 3 additions & 5 deletions ft-rubocop-config.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "ft-rubocop-config"
spec.version = '0.1.1'
spec.version = '0.1.2'
spec.authors = ["Fundthrough"]
spec.email = ["oborodai@fundthrough.com"]

Expand All @@ -21,13 +20,12 @@ Gem::Specification.new do |spec|
spec.metadata["source_code_uri"] = "https://github.com/Fundthrough/ft-rubocop-config"
spec.metadata["changelog_uri"] = "https://github.com/Fundthrough/ft-rubocop-config/tree/main/CHANGELOG.md"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end

# 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('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end

Expand Down
20 changes: 9 additions & 11 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ Layout/LineLength:
Max: 120

Metrics/AbcSize:
Max: 20
Enabled: false

Metrics/MethodLength:
Max: 15
Exclude:
- 'db/**/*.rb'
Enabled: false

Metrics/ClassLength:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Metrics/BlockLength:
Exclude:
- 'lib/tasks/*.rake'
- 'spec/**/*_spec.rb'
- 'config/routes.rb'
Enabled: false

# We allow methods like 'is_something' instead of 'something?' in serializers
Naming/PredicateName:
Expand All @@ -31,8 +32,5 @@ Naming/PredicateName:
Style/StringLiterals:
EnforcedStyle: double_quotes

Documentation:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false