house_style 1.4.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +0 -4
- data/.travis.yml +6 -3
- data/CHANGELOG.md +42 -0
- data/Rakefile +8 -0
- data/house_style.gemspec +11 -17
- data/performance/default_rules.yml +32 -0
- data/performance/rubocop.yml +4 -0
- data/rails/db_migrate.yml +6 -6
- data/rails/default_rules.yml +34 -0
- data/rails/rubocop.yml +17 -2
- data/rails/style.yml +31 -0
- data/rake/rubocop.yml +1 -0
- data/rspec/rubocop.yml +14 -4
- data/ruby/configuration.yml +3 -17
- data/ruby/default_rules.yml +60 -0
- data/ruby/metrics.yml +0 -9
- data/ruby/rubocop.yml +3 -0
- data/ruby/style.yml +22 -13
- metadata +67 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0d97fcf3d417e9b2f9404237d22bd93a43109191ef45b76b684fac26464110a0
|
4
|
+
data.tar.gz: ff9d0ce2f87ff9cd26f7d9d8b113f2343af8a0897e26fedeb8444c5dfef7b918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdf864d25274dd3f26ec155598354868099a60459ccccbd31af33f6a23819d1ea63c95fa3dd8b376d88aed64227cb4c5f8eb487330039442a3f4e208712600da
|
7
|
+
data.tar.gz: f464f7fb8fc406771dc93f5e6e580bdd76f6c52b41e55ca97da478f474177d38fb60e13e0c1171b53010e77f1c272f8bd31f83ceb52e03cf8058db55ff30a862
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,47 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.0.1
|
4
|
+
### Bug fixes
|
5
|
+
- Ignore other database schemas in /db for Rails apps
|
6
|
+
- Disable `RSpec/MultipleExpectations` cop.
|
7
|
+
- Tweak `RSpec/MultipleMemoizedHelpers` to 10.
|
8
|
+
|
9
|
+
## 2.0.0
|
10
|
+
### New features
|
11
|
+
|
12
|
+
- Add new rubocop extensions: rubocop-performance & rubocop-rake. Both enabled by default on Ruby configuration.
|
13
|
+
|
14
|
+
### Bug fixes
|
15
|
+
|
16
|
+
- Restrict extensions versions to avoid introducing new cops in the apps depending on house_style without previously configuing them here.
|
17
|
+
- Exclude most Rails default configuration files for our cops to decrease the number of conflicts during Rails upgrades.
|
18
|
+
|
19
|
+
### Changes
|
20
|
+
|
21
|
+
- Update Travis CI configuration and add a default Rake task (rubocop)
|
22
|
+
- Upgrade development dependencies: Bundler & Rake.
|
23
|
+
- Upgrade rubocop to 1.15.0, rubocop-rails to 2.10.1 and rubocop-rspec to 2.3.0.
|
24
|
+
- Remove old pre-1.0 post-install message.
|
25
|
+
|
26
|
+
## 1.6.0
|
27
|
+
- [FIX] Require Rubocop higher than 0.49 to fix security issue: https://nvd.nist.gov/vuln/detail/CVE-2017-8418
|
28
|
+
- [FIX] Rename `IndentHash` to `IndentFirstHashElement`, and require Rubocop 0.68 or higher because of this change.
|
29
|
+
- Rails cops are now split into a different gem `rubocop-rails` that we include by default.
|
30
|
+
- Disable new Rails cops InverseOf & HasManyOrHasOneDependent.
|
31
|
+
- Exclude spec files for Lint/AmbiguousBlockAssociation as recommended in https://github.com/rubocop-hq/rubocop/issues/4222#issuecomment-290655562
|
32
|
+
- Exclude specific rake configuration file for RSpec/ContextWording.
|
33
|
+
- Specify `indented` as the default value for `IndentFirstArrayElement`.
|
34
|
+
- Enforce `single_quotes` for `StringLiterals` by default.
|
35
|
+
|
36
|
+
|
37
|
+
## 1.5.1
|
38
|
+
- [FIX] Remove `Include` values. Since 0.57 `Include` overwrites the hardcoded defaults. All values here are already included in the defaults, so no point in defining them here anymore.
|
39
|
+
- [FIX] `SpaceInsideHashLiteralBraces` now belongs to `Layout` instead of `Style`
|
40
|
+
- [FIX] Disabling new added cop `Style/AccessModifierDeclarations`. We use inline declarations (`private :foo :bar`) as default in our codebase.
|
41
|
+
|
42
|
+
## 1.5.0
|
43
|
+
- updated rubocop to 0.63.1
|
44
|
+
|
3
45
|
## 1.4.0
|
4
46
|
|
5
47
|
- updated rubocop to 0.52.0
|
data/Rakefile
CHANGED
data/house_style.gemspec
CHANGED
@@ -1,32 +1,26 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
4
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
3
|
|
6
4
|
Gem::Specification.new do |spec|
|
7
5
|
spec.name = 'house_style'
|
8
|
-
spec.version = '
|
9
|
-
spec.authors = ['
|
10
|
-
spec.email = ['
|
6
|
+
spec.version = '2.0.1'
|
7
|
+
spec.authors = ['Altmetric', 'Scott Matthewman']
|
8
|
+
spec.email = ['engineering@altmetric.com', 'scott.matthewman@gmail.com']
|
11
9
|
|
12
10
|
spec.summary = 'A centralised store of house style rules'
|
13
11
|
spec.description = 'Configuration files and other snippets to help you apply standards across multiple projects'
|
14
12
|
spec.homepage = 'https://github.com/altmetric/house_style'
|
15
13
|
spec.license = 'MIT'
|
16
14
|
|
17
|
-
spec.post_install_message = <<-ENDOFMESSAGE
|
18
|
-
If you are updating house_style from version 1.0.0 or older, note that you can
|
19
|
-
now remove any reference to TargetRubyVersion in your project's .rubocop.yml
|
20
|
-
file. You should specify a .ruby-version file for your entire project, and that
|
21
|
-
will be taken into account by rubocop also.
|
22
|
-
ENDOFMESSAGE
|
23
|
-
|
24
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
16
|
spec.require_paths = ['lib']
|
26
17
|
|
27
|
-
spec.add_dependency 'rubocop', '
|
28
|
-
spec.add_dependency 'rubocop-
|
18
|
+
spec.add_dependency 'rubocop', '>= 1.0', '< 1.16'
|
19
|
+
spec.add_dependency 'rubocop-performance', '~> 1.11.3'
|
20
|
+
spec.add_dependency 'rubocop-rails', '~> 2.10.1'
|
21
|
+
spec.add_dependency 'rubocop-rake', '< 1.0'
|
22
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.3.0'
|
29
23
|
|
30
|
-
spec.add_development_dependency 'bundler', '~>
|
31
|
-
spec.add_development_dependency 'rake', '~>
|
24
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
32
26
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Performance/AncestorsInclude:
|
2
|
+
Enabled: true
|
3
|
+
Performance/BigDecimalWithNumericArgument:
|
4
|
+
Enabled: true
|
5
|
+
Performance/BlockGivenWithExplicitBlock:
|
6
|
+
Enabled: true
|
7
|
+
Performance/CollectionLiteralInLoop:
|
8
|
+
Enabled: true
|
9
|
+
Performance/ConstantRegexp:
|
10
|
+
Enabled: true
|
11
|
+
Performance/MapCompact:
|
12
|
+
Enabled: true
|
13
|
+
Performance/MethodObjectAsBlock:
|
14
|
+
Enabled: true
|
15
|
+
Performance/RedundantEqualityComparisonBlock:
|
16
|
+
Enabled: true
|
17
|
+
Performance/RedundantSortBlock:
|
18
|
+
Enabled: true
|
19
|
+
Performance/RedundantSplitRegexpArgument:
|
20
|
+
Enabled: true
|
21
|
+
Performance/RedundantStringChars:
|
22
|
+
Enabled: true
|
23
|
+
Performance/ReverseFirst:
|
24
|
+
Enabled: true
|
25
|
+
Performance/SortReverse:
|
26
|
+
Enabled: true
|
27
|
+
Performance/Squeeze:
|
28
|
+
Enabled: true
|
29
|
+
Performance/StringInclude:
|
30
|
+
Enabled: true
|
31
|
+
Performance/Sum:
|
32
|
+
Enabled: true
|
data/rails/db_migrate.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
1
|
+
Layout/EmptyLineBetweenDefs:
|
2
|
+
Enabled: false
|
3
|
+
Layout/LineLength:
|
4
|
+
Enabled: false
|
5
|
+
Metrics/AbcSize:
|
2
6
|
Enabled: false
|
3
|
-
Metrics/
|
7
|
+
Metrics/ClassLength:
|
4
8
|
Enabled: false
|
5
9
|
Metrics/MethodLength:
|
6
10
|
Enabled: false
|
@@ -8,9 +12,5 @@ Style/BlockDelimiters:
|
|
8
12
|
Enabled: false
|
9
13
|
Style/Documentation:
|
10
14
|
Enabled: false
|
11
|
-
Layout/EmptyLineBetweenDefs:
|
12
|
-
Enabled: false
|
13
15
|
Style/StringLiterals:
|
14
16
|
Enabled: false
|
15
|
-
Metrics/AbcSize:
|
16
|
-
Enabled: false
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Rails/ActiveRecordCallbacksOrder:
|
2
|
+
Enabled: true
|
3
|
+
Rails/AfterCommitOverride:
|
4
|
+
Enabled: true
|
5
|
+
Rails/AttributeDefaultBlockValue:
|
6
|
+
Enabled: true
|
7
|
+
Rails/FindById:
|
8
|
+
Enabled: true
|
9
|
+
Rails/Inquiry:
|
10
|
+
Enabled: true
|
11
|
+
Rails/MailerName:
|
12
|
+
Enabled: true
|
13
|
+
Rails/MatchRoute:
|
14
|
+
Enabled: true
|
15
|
+
Rails/NegateInclude:
|
16
|
+
Enabled: true
|
17
|
+
Rails/Pluck:
|
18
|
+
Enabled: true
|
19
|
+
Rails/PluckInWhere:
|
20
|
+
Enabled: true
|
21
|
+
Rails/RenderInline:
|
22
|
+
Enabled: true
|
23
|
+
Rails/RenderPlainText:
|
24
|
+
Enabled: true
|
25
|
+
Rails/SquishedSQLHeredocs:
|
26
|
+
Enabled: true
|
27
|
+
Rails/TimeZoneAssignment:
|
28
|
+
Enabled: true
|
29
|
+
Rails/WhereEquals:
|
30
|
+
Enabled: true
|
31
|
+
Rails/WhereExists:
|
32
|
+
Enabled: true
|
33
|
+
Rails/WhereNot:
|
34
|
+
Enabled: true
|
data/rails/rubocop.yml
CHANGED
@@ -1,9 +1,24 @@
|
|
1
|
-
inherit_from:
|
1
|
+
inherit_from:
|
2
|
+
- ../ruby/rubocop.yml
|
3
|
+
- ./default_rules.yml
|
4
|
+
- ./style.yml
|
5
|
+
|
2
6
|
AllCops:
|
3
7
|
Exclude:
|
4
8
|
- bin/**/*
|
5
9
|
- vendor/**/*
|
6
|
-
- db
|
10
|
+
- db/*schema.rb
|
7
11
|
- lib/tasks/cucumber.rake
|
8
12
|
Rails:
|
9
13
|
Enabled: true
|
14
|
+
Rails/InverseOf:
|
15
|
+
Enabled: false
|
16
|
+
Rails/HasManyOrHasOneDependent:
|
17
|
+
Enabled: false
|
18
|
+
Rails/EnvironmentVariableAccess:
|
19
|
+
Enabled: true
|
20
|
+
AllowReads: true
|
21
|
+
Rails/ShortI18n:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
require: rubocop-rails
|
data/rails/style.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Exclude Rails default configuration files that offend our cops to avoid
|
2
|
+
# conflicts during Rails upgrades
|
3
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
4
|
+
Exclude:
|
5
|
+
- config/environments/production.rb
|
6
|
+
|
7
|
+
Rails/FilePath:
|
8
|
+
Exclude:
|
9
|
+
- config/environments/development.rb
|
10
|
+
|
11
|
+
Style/GlobalStdStream:
|
12
|
+
Exclude:
|
13
|
+
- config/environments/production.rb
|
14
|
+
|
15
|
+
Style/StringLiterals:
|
16
|
+
Exclude:
|
17
|
+
- config/application.rb
|
18
|
+
- config/boot.rb
|
19
|
+
- config/environment.rb
|
20
|
+
- config/environments/development.rb
|
21
|
+
- config/environments/production.rb
|
22
|
+
- config/environments/test.rb
|
23
|
+
- config/initializers/**
|
24
|
+
- config/puma.rb
|
25
|
+
- config.ru
|
26
|
+
- Rakefile
|
27
|
+
|
28
|
+
Style/SymbolArray:
|
29
|
+
Exclude:
|
30
|
+
- config/initializers/filter_parameter_logging.rb
|
31
|
+
|
data/rake/rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require: rubocop-rake
|
data/rspec/rubocop.yml
CHANGED
@@ -2,14 +2,26 @@ inherit_from: ../ruby/rubocop.yml
|
|
2
2
|
|
3
3
|
require: rubocop-rspec
|
4
4
|
|
5
|
-
|
5
|
+
Layout/LineLength:
|
6
|
+
Enabled: false
|
7
|
+
Layout/SpaceInsideHashLiteralBraces:
|
6
8
|
Enabled: false
|
7
|
-
|
9
|
+
Lint/AmbiguousBlockAssociation:
|
10
|
+
Exclude:
|
11
|
+
- spec/**/*
|
12
|
+
Metrics/BlockLength:
|
8
13
|
Enabled: false
|
9
14
|
Metrics/ModuleLength:
|
10
15
|
Enabled: false
|
16
|
+
RSpec/ContextWording:
|
17
|
+
Exclude:
|
18
|
+
- spec/support/shared_contexts/rake.rb
|
11
19
|
RSpec/ExampleLength:
|
12
20
|
Enabled: false
|
21
|
+
RSpec/MultipleExpectations:
|
22
|
+
Enabled: false
|
23
|
+
RSpec/MultipleMemoizedHelpers:
|
24
|
+
Max: 10
|
13
25
|
RSpec/NotToNot:
|
14
26
|
EnforcedStyle: to_not
|
15
27
|
Style/BlockDelimiters:
|
@@ -17,8 +29,6 @@ Style/BlockDelimiters:
|
|
17
29
|
- spec/factories/**/*.rb
|
18
30
|
Style/Documentation:
|
19
31
|
Enabled: false
|
20
|
-
Style/SpaceInsideHashLiteralBraces:
|
21
|
-
Enabled: false
|
22
32
|
Style/SymbolProc:
|
23
33
|
Exclude:
|
24
34
|
- spec/factories/**/*.rb
|
data/ruby/configuration.yml
CHANGED
@@ -4,23 +4,9 @@ AllCops:
|
|
4
4
|
ExtraDetails: true
|
5
5
|
UseCache: true
|
6
6
|
|
7
|
-
Include:
|
8
|
-
- '**/*.gemspec'
|
9
|
-
- '**/*.podspec'
|
10
|
-
- '**/*.jbuilder'
|
11
|
-
- '**/*.rake'
|
12
|
-
- '**/*.opal'
|
13
|
-
- '**/config.ru'
|
14
|
-
- '**/Gemfile'
|
15
|
-
- '**/Rakefile'
|
16
|
-
- '**/Capfile'
|
17
|
-
- '**/Guardfile'
|
18
|
-
- '**/Podfile'
|
19
|
-
- '**/Thorfile'
|
20
|
-
- '**/Vagrantfile'
|
21
|
-
- '**/Berksfile'
|
22
|
-
- '**/Cheffile'
|
23
|
-
- '**/Vagabondfile'
|
24
7
|
Exclude:
|
25
8
|
- 'vendor/**/*'
|
26
9
|
- 'bin/**/*'
|
10
|
+
|
11
|
+
Gemspec/RequiredRubyVersion:
|
12
|
+
Enabled: false
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Gemspec/DateAssignment:
|
2
|
+
Enabled: true
|
3
|
+
Layout/SpaceBeforeBrackets:
|
4
|
+
Enabled: true
|
5
|
+
Lint/AmbiguousAssignment:
|
6
|
+
Enabled: true
|
7
|
+
Lint/DeprecatedConstants:
|
8
|
+
Enabled: true
|
9
|
+
Lint/DuplicateBranch:
|
10
|
+
Enabled: true
|
11
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
12
|
+
Enabled: true
|
13
|
+
Lint/EmptyBlock:
|
14
|
+
Enabled: true
|
15
|
+
Lint/EmptyClass:
|
16
|
+
Enabled: true
|
17
|
+
Lint/LambdaWithoutLiteralBlock:
|
18
|
+
Enabled: true
|
19
|
+
Lint/NoReturnInBeginEndBlocks:
|
20
|
+
Enabled: true
|
21
|
+
Lint/NumberedParameterAssignment:
|
22
|
+
Enabled: true
|
23
|
+
Lint/OrAssignmentToConstant:
|
24
|
+
Enabled: true
|
25
|
+
Lint/RedundantDirGlobSort:
|
26
|
+
Enabled: true
|
27
|
+
Lint/SymbolConversion:
|
28
|
+
Enabled: true
|
29
|
+
Lint/ToEnumArguments:
|
30
|
+
Enabled: true
|
31
|
+
Lint/TripleQuotes:
|
32
|
+
Enabled: true
|
33
|
+
Lint/UnexpectedBlockArity:
|
34
|
+
Enabled: true
|
35
|
+
Lint/UnmodifiedReduceAccumulator:
|
36
|
+
Enabled: true
|
37
|
+
Style/ArgumentsForwarding:
|
38
|
+
Enabled: true
|
39
|
+
Style/CollectionCompact:
|
40
|
+
Enabled: true
|
41
|
+
Style/DocumentDynamicEvalDefinition:
|
42
|
+
Enabled: true
|
43
|
+
Style/EndlessMethod:
|
44
|
+
Enabled: true
|
45
|
+
Style/HashConversion:
|
46
|
+
Enabled: true
|
47
|
+
Style/HashExcept:
|
48
|
+
Enabled: true
|
49
|
+
Style/IfWithBooleanLiteralBranches:
|
50
|
+
Enabled: true
|
51
|
+
Style/NegatedIfElseCondition:
|
52
|
+
Enabled: true
|
53
|
+
Style/NilLambda:
|
54
|
+
Enabled: true
|
55
|
+
Style/RedundantArgument:
|
56
|
+
Enabled: true
|
57
|
+
Style/StringChars:
|
58
|
+
Enabled: true
|
59
|
+
Style/SwapValues:
|
60
|
+
Enabled: true
|
data/ruby/metrics.yml
CHANGED
@@ -1,11 +1,2 @@
|
|
1
|
-
Metrics/LineLength:
|
2
|
-
Max: 120
|
3
|
-
Details: >-
|
4
|
-
If lines are too short, methods become hard to read because you must
|
5
|
-
constantly jump from line to line. If lines are too long, following
|
6
|
-
the flow can be hard because it becomes harder to scan back and
|
7
|
-
locate the start of the next line. 80 characters is generally a bit
|
8
|
-
too short; 120 characters is a good compromise.
|
9
1
|
Metrics/MethodLength:
|
10
2
|
Max: 10
|
11
|
-
|
data/ruby/rubocop.yml
CHANGED
data/ruby/style.yml
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
Layout/EmptyLineBetweenDefs:
|
2
|
+
AllowAdjacentOneLineDefs: true
|
3
|
+
Layout/FirstArrayElementIndentation:
|
4
|
+
EnforcedStyle: consistent
|
5
|
+
Layout/FirstHashElementIndentation:
|
6
|
+
EnforcedStyle: consistent
|
7
|
+
Layout/MultilineOperationIndentation:
|
8
|
+
Enabled: false
|
9
|
+
Layout/MultilineMethodCallIndentation:
|
10
|
+
EnforcedStyle: indented
|
11
|
+
Layout/LineLength:
|
12
|
+
Max: 120
|
13
|
+
Details: >-
|
14
|
+
If lines are too short, methods become hard to read because you must
|
15
|
+
constantly jump from line to line. If lines are too long, following
|
16
|
+
the flow can be hard because it becomes harder to scan back and
|
17
|
+
locate the start of the next line. 80 characters is generally a bit
|
18
|
+
too short; 120 characters is a good compromise.
|
19
|
+
Style/AccessModifierDeclarations:
|
20
|
+
Enabled: false
|
1
21
|
Style/BlockDelimiters:
|
2
22
|
EnforcedStyle: semantic
|
3
23
|
FunctionalMethods:
|
@@ -17,12 +37,6 @@ Style/BlockDelimiters:
|
|
17
37
|
- let!
|
18
38
|
- subject
|
19
39
|
- watch
|
20
|
-
Style/BracesAroundHashParameters:
|
21
|
-
EnforcedStyle: context_dependent
|
22
|
-
Details: >-
|
23
|
-
When the last (or only) argument to a method is a Hash,
|
24
|
-
omit the { } braces. The exception is if the preceding
|
25
|
-
argument is also a Hash.
|
26
40
|
Style/CollectionMethods:
|
27
41
|
Enabled: true
|
28
42
|
Style/CommandLiteral:
|
@@ -31,20 +45,14 @@ Style/Copyright:
|
|
31
45
|
Enabled: false
|
32
46
|
Style/Documentation:
|
33
47
|
Enabled: false
|
34
|
-
Layout/EmptyLineBetweenDefs:
|
35
|
-
AllowAdjacentOneLineDefs: true
|
36
48
|
Style/FrozenStringLiteralComment:
|
37
49
|
Enabled: false
|
38
50
|
Style/GuardClause:
|
39
51
|
MinBodyLength: 3
|
40
52
|
Style/HashSyntax:
|
41
53
|
EnforcedStyle: ruby19_no_mixed_keys
|
42
|
-
Layout/IndentHash:
|
43
|
-
EnforcedStyle: consistent
|
44
54
|
Style/MethodCalledOnDoEndBlock:
|
45
55
|
Enabled: true
|
46
|
-
Layout/MultilineOperationIndentation:
|
47
|
-
Enabled: false
|
48
56
|
Style/NonNilCheck:
|
49
57
|
IncludeSemanticChanges: true
|
50
58
|
Style/NumericLiterals:
|
@@ -52,6 +60,7 @@ Style/NumericLiterals:
|
|
52
60
|
Style/SignalException:
|
53
61
|
EnforcedStyle: semantic
|
54
62
|
Style/StringLiterals:
|
55
|
-
|
63
|
+
EnforcedStyle: 'single_quotes'
|
64
|
+
Enabled: true
|
56
65
|
Style/StringMethods:
|
57
66
|
Enabled: true
|
metadata
CHANGED
@@ -1,83 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: house_style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Scott Matthewman
|
8
7
|
- Altmetric
|
9
|
-
|
8
|
+
- Scott Matthewman
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
20
|
+
version: '1.0'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '1.16'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '1.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rubocop-performance
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
27
37
|
requirements:
|
28
38
|
- - "~>"
|
29
39
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
40
|
+
version: 1.11.3
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.11.3
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rubocop-rails
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.10.1
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.10.1
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rubocop-rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
31
66
|
- - "<"
|
32
67
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
68
|
+
version: '1.0'
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "<"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
34
76
|
- !ruby/object:Gem::Dependency
|
35
77
|
name: rubocop-rspec
|
36
78
|
requirement: !ruby/object:Gem::Requirement
|
37
79
|
requirements:
|
38
80
|
- - "~>"
|
39
81
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
82
|
+
version: 2.3.0
|
41
83
|
type: :runtime
|
42
84
|
prerelease: false
|
43
85
|
version_requirements: !ruby/object:Gem::Requirement
|
44
86
|
requirements:
|
45
87
|
- - "~>"
|
46
88
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
89
|
+
version: 2.3.0
|
48
90
|
- !ruby/object:Gem::Dependency
|
49
91
|
name: bundler
|
50
92
|
requirement: !ruby/object:Gem::Requirement
|
51
93
|
requirements:
|
52
94
|
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
96
|
+
version: '2.0'
|
55
97
|
type: :development
|
56
98
|
prerelease: false
|
57
99
|
version_requirements: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
101
|
- - "~>"
|
60
102
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
103
|
+
version: '2.0'
|
62
104
|
- !ruby/object:Gem::Dependency
|
63
105
|
name: rake
|
64
106
|
requirement: !ruby/object:Gem::Requirement
|
65
107
|
requirements:
|
66
108
|
- - "~>"
|
67
109
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
110
|
+
version: '13.0'
|
69
111
|
type: :development
|
70
112
|
prerelease: false
|
71
113
|
version_requirements: !ruby/object:Gem::Requirement
|
72
114
|
requirements:
|
73
115
|
- - "~>"
|
74
116
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
117
|
+
version: '13.0'
|
76
118
|
description: Configuration files and other snippets to help you apply standards across
|
77
119
|
multiple projects
|
78
120
|
email:
|
79
|
-
- scott.matthewman@gmail.com
|
80
121
|
- engineering@altmetric.com
|
122
|
+
- scott.matthewman@gmail.com
|
81
123
|
executables: []
|
82
124
|
extensions: []
|
83
125
|
extra_rdoc_files: []
|
@@ -100,10 +142,16 @@ files:
|
|
100
142
|
- lib/generators/house_style/templates/db_migrate_rubocop.yml
|
101
143
|
- lib/generators/house_style/templates/rspec-rubocop.yml
|
102
144
|
- lib/generators/house_style/templates/rubocop.yml
|
145
|
+
- performance/default_rules.yml
|
146
|
+
- performance/rubocop.yml
|
103
147
|
- rails/db_migrate.yml
|
148
|
+
- rails/default_rules.yml
|
104
149
|
- rails/rubocop.yml
|
150
|
+
- rails/style.yml
|
151
|
+
- rake/rubocop.yml
|
105
152
|
- rspec/rubocop.yml
|
106
153
|
- ruby/configuration.yml
|
154
|
+
- ruby/default_rules.yml
|
107
155
|
- ruby/metrics.yml
|
108
156
|
- ruby/rubocop.yml
|
109
157
|
- ruby/style.yml
|
@@ -111,11 +159,7 @@ homepage: https://github.com/altmetric/house_style
|
|
111
159
|
licenses:
|
112
160
|
- MIT
|
113
161
|
metadata: {}
|
114
|
-
post_install_message:
|
115
|
-
If you are updating house_style from version 1.0.0 or older, note that you can
|
116
|
-
now remove any reference to TargetRubyVersion in your project's .rubocop.yml
|
117
|
-
file. You should specify a .ruby-version file for your entire project, and that
|
118
|
-
will be taken into account by rubocop also.
|
162
|
+
post_install_message:
|
119
163
|
rdoc_options: []
|
120
164
|
require_paths:
|
121
165
|
- lib
|
@@ -130,9 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
174
|
- !ruby/object:Gem::Version
|
131
175
|
version: '0'
|
132
176
|
requirements: []
|
133
|
-
|
134
|
-
|
135
|
-
signing_key:
|
177
|
+
rubygems_version: 3.2.15
|
178
|
+
signing_key:
|
136
179
|
specification_version: 4
|
137
180
|
summary: A centralised store of house style rules
|
138
181
|
test_files: []
|