зеркало из https://github.com/github/pages-gem.git
Use rubocop-github gem to check our code
This commit is contained in:
Родитель
6d094ae0ff
Коммит
6fc908a189
23
.rubocop.yml
23
.rubocop.yml
|
@ -15,6 +15,13 @@
|
|||
#
|
||||
# If you disable a check, document why.
|
||||
|
||||
inherit_gem:
|
||||
rubocop-github:
|
||||
- config/default.yml
|
||||
|
||||
require:
|
||||
- rubocop-performance
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.3
|
||||
Exclude:
|
||||
|
@ -48,10 +55,10 @@ Style/HashSyntax:
|
|||
EnforcedStyle: hash_rockets
|
||||
Severity: error
|
||||
|
||||
Layout/AlignHash:
|
||||
Layout/HashAlignment:
|
||||
SupportedLastArgumentHashStyles: always_ignore
|
||||
|
||||
Layout/AlignParameters:
|
||||
Layout/ParameterAlignment:
|
||||
Enabled: false # This is usually true, but we often want to roll back to
|
||||
# the start of a line.
|
||||
|
||||
|
@ -78,7 +85,7 @@ Metrics/BlockLength:
|
|||
- github-pages.gemspec
|
||||
- !ruby/regexp /spec\/.*.rb/
|
||||
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Max: 90
|
||||
Severity: warning
|
||||
Exclude:
|
||||
|
@ -122,9 +129,6 @@ Metrics/ParameterLists:
|
|||
Metrics/AbcSize:
|
||||
Max: 20
|
||||
|
||||
Layout/IndentFirstHashElement:
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Style/SignalException:
|
||||
EnforcedStyle: only_raise
|
||||
|
||||
|
@ -134,10 +138,13 @@ Layout/MultilineMethodCallIndentation:
|
|||
Layout/MultilineOperationIndentation:
|
||||
EnforcedStyle: indented
|
||||
|
||||
Layout/IndentFirstArgument:
|
||||
Layout/FirstArgumentIndentation:
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Layout/IndentFirstArrayElement:
|
||||
Layout/FirstHashElementIndentation:
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Layout/FirstArrayElementIndentation:
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Layout/ExtraSpacing:
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -8,5 +8,7 @@ gemspec
|
|||
gem "jekyll-octicons"
|
||||
|
||||
group :test do
|
||||
gem "rubocop", "~> 0.79"
|
||||
gem "rubocop-performance"
|
||||
gem "webmock"
|
||||
end
|
||||
|
|
|
@ -30,5 +30,5 @@ Gem::Specification.new do |s|
|
|||
s.add_development_dependency("jekyll_test_plugin_malicious", "~> 0.2")
|
||||
s.add_development_dependency("pry", "~> 0.10")
|
||||
s.add_development_dependency("rspec", "~> 3.3")
|
||||
s.add_development_dependency("rubocop", "~> 0.76") # CVE-2017-8418
|
||||
s.add_development_dependency("rubocop-github", "0.14.0")
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче