[devtools] sync
This commit is contained in:
parent
acf675b557
commit
209a3706a5
|
@ -34,7 +34,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: gem install ossy --no-document
|
||||
- name: Compile file templates
|
||||
run: tmp/devtools/bin/compile-templates $GITHUB_REPOSITORY
|
||||
run: tmp/devtools/bin/compile-templates
|
||||
- name: Update workflow files from devtools
|
||||
run: tmp/devtools/bin/sync-workflows
|
||||
- name: Update configuration files from devtools
|
||||
|
|
144
.rubocop.yml
144
.rubocop.yml
|
@ -8,71 +8,6 @@ AllCops:
|
|||
- Gemfile.devtools
|
||||
- "*.gemspec"
|
||||
|
||||
Style/StringLiterals:
|
||||
Enabled: true
|
||||
EnforcedStyle: single_quotes
|
||||
|
||||
Style/AccessModifierDeclarations:
|
||||
Enabled: false
|
||||
|
||||
Style/BlockDelimiters:
|
||||
Enabled: false
|
||||
|
||||
Style/SymbolArray:
|
||||
Exclude:
|
||||
- "spec/**/*_spec.rb"
|
||||
|
||||
Style/ConditionalAssignment:
|
||||
Enabled: false
|
||||
|
||||
Style/ClassAndModuleChildren:
|
||||
Exclude:
|
||||
- "spec/**/*_spec.rb"
|
||||
|
||||
Style/EachWithObject:
|
||||
Enabled: false
|
||||
|
||||
Style/ParallelAssignment:
|
||||
Enabled: false
|
||||
|
||||
Style/Alias:
|
||||
Enabled: true
|
||||
EnforcedStyle: prefer_alias_method
|
||||
|
||||
Style/LambdaCall:
|
||||
Enabled: false
|
||||
|
||||
Style/StabbyLambdaParentheses:
|
||||
Enabled: false
|
||||
|
||||
Style/FormatString:
|
||||
Enabled: false
|
||||
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
Style/AsciiComments:
|
||||
Enabled: false
|
||||
|
||||
Style/DateTime:
|
||||
Enabled: false
|
||||
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
|
||||
Style/TrailingUnderscoreVariable:
|
||||
Enabled: false
|
||||
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
|
||||
Lint/HandleExceptions:
|
||||
Exclude:
|
||||
- "spec/spec_helper.rb"
|
||||
|
||||
Lint/BooleanSymbol:
|
||||
Enabled: false
|
||||
|
||||
Layout/SpaceInLambdaLiteral:
|
||||
Enabled: false
|
||||
|
||||
|
@ -83,12 +18,24 @@ Layout/MultilineMethodCallIndentation:
|
|||
Layout/IndentFirstArrayElement:
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Layout/SpaceInsideHashLiteralBraces:
|
||||
Enabled: true
|
||||
EnforcedStyle: no_space
|
||||
EnforcedStyleForEmptyBraces: no_space
|
||||
|
||||
Lint/HandleExceptions:
|
||||
Exclude:
|
||||
- "spec/spec_helper.rb"
|
||||
|
||||
Lint/BooleanSymbol:
|
||||
Enabled: false
|
||||
|
||||
Naming/PredicateName:
|
||||
Enabled: false
|
||||
|
||||
Naming/FileName:
|
||||
Exclude:
|
||||
- "lib/dry-*.rb"
|
||||
- "lib/*-*.rb"
|
||||
|
||||
Naming/MethodName:
|
||||
Enabled: false
|
||||
|
@ -98,6 +45,8 @@ Naming/MemoizedInstanceVariableName:
|
|||
|
||||
Metrics/LineLength:
|
||||
Max: 100
|
||||
Exclude:
|
||||
- "spec/**/*_spec.rb"
|
||||
|
||||
Metrics/MethodLength:
|
||||
Enabled: false
|
||||
|
@ -114,3 +63,66 @@ Metrics/AbcSize:
|
|||
Metrics/CyclomaticComplexity:
|
||||
Enabled: true
|
||||
Max: 12
|
||||
|
||||
Style/AccessModifierDeclarations:
|
||||
Enabled: false
|
||||
|
||||
Style/Alias:
|
||||
Enabled: true
|
||||
EnforcedStyle: prefer_alias_method
|
||||
|
||||
Style/AsciiComments:
|
||||
Enabled: false
|
||||
|
||||
Style/BlockDelimiters:
|
||||
Enabled: false
|
||||
|
||||
Style/ClassAndModuleChildren:
|
||||
Exclude:
|
||||
- "spec/**/*_spec.rb"
|
||||
|
||||
Style/ConditionalAssignment:
|
||||
Enabled: false
|
||||
|
||||
Style/DateTime:
|
||||
Enabled: false
|
||||
|
||||
Style/Documentation:
|
||||
Enabled: false
|
||||
|
||||
Style/EachWithObject:
|
||||
Enabled: false
|
||||
|
||||
Style/FormatString:
|
||||
Enabled: false
|
||||
|
||||
Style/GuardClause:
|
||||
Enabled: false
|
||||
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
|
||||
Style/LambdaCall:
|
||||
Enabled: false
|
||||
|
||||
Style/ParallelAssignment:
|
||||
Enabled: false
|
||||
|
||||
Style/StabbyLambdaParentheses:
|
||||
Enabled: false
|
||||
|
||||
Style/StringLiterals:
|
||||
Enabled: true
|
||||
EnforcedStyle: double_quotes
|
||||
ConsistentQuotesInMultiline: false
|
||||
|
||||
Style/StringLiteralsInInterpolation:
|
||||
Enabled: true
|
||||
EnforcedStyle: double_quotes
|
||||
|
||||
Style/SymbolArray:
|
||||
Exclude:
|
||||
- "spec/**/*_spec.rb"
|
||||
|
||||
Style/TrailingUnderscoreVariable:
|
||||
Enabled: false
|
||||
|
|
|
@ -6,14 +6,14 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|||
|
||||
group :test do
|
||||
# 0.18.x breaks codacy result parser
|
||||
gem 'simplecov', '0.17.1', require: false, platforms: :ruby
|
||||
gem "simplecov", "0.17.1", require: false, platforms: :ruby
|
||||
|
||||
gem 'codacy-coverage', require: false, platforms: :ruby
|
||||
gem "codacy-coverage", require: false, platforms: :ruby
|
||||
|
||||
gem 'warning' if RUBY_VERSION >= '2.4.0'
|
||||
gem "warning" if RUBY_VERSION >= "2.4.0"
|
||||
end
|
||||
|
||||
group :tools do
|
||||
# this is the same version that we use on codacy
|
||||
gem 'rubocop', '0.71.0'
|
||||
gem "rubocop", "0.71.0"
|
||||
end
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# this file is managed by dry-rb/devtools
|
||||
|
||||
if ENV['COVERAGE'] == 'true'
|
||||
require 'codacy-coverage'
|
||||
if ENV["COVERAGE"] == "true"
|
||||
require "codacy-coverage"
|
||||
|
||||
Codacy::Reporter.start
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# this file is managed by dry-rb/devtools project
|
||||
|
||||
require 'warning'
|
||||
require "warning"
|
||||
|
||||
Warning.ignore(%r{rspec/core})
|
||||
Warning.ignore(%r{rspec/mocks})
|
||||
|
|
Loading…
Reference in New Issue