house_style 1.3.1 → 2.0.0
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 +41 -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 +16 -1
- data/rails/style.yml +31 -0
- data/rake/rubocop.yml +1 -0
- data/rspec/rubocop.yml +10 -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 -17
- metadata +68 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6e14babccb0eeebb8d0d558a49472836dccee7364425f81474e49ce7f8b219a7
|
4
|
+
data.tar.gz: 715dd28aded88cccb79af7144086533a1ba616de99f2c06db3f7e9dbc1905281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f6c9b7406989e259d9ee3a6e5d6c1ed1022e2ff3dbf58045aac74ced8d3e62f08e198fc70227beee5c1f9874da03191bdb9963b99cf682d19b1008b077b3ae6
|
7
|
+
data.tar.gz: 1ff1cea9a8d4db282e7abd27654bd25f45604c7348b52577b82f4d96a01a0d0129ada77cd31cf4c5fe901f49e4f228296e1346971153fccad7c551abc3d04037
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,46 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.0.0
|
4
|
+
### New features
|
5
|
+
|
6
|
+
- Add new rubocop extensions: rubocop-performance & rubocop-rake. Both enabled by default on Ruby configuration.
|
7
|
+
|
8
|
+
### Bug fixes
|
9
|
+
|
10
|
+
- Restrict extensions versions to avoid introducing new cops in the apps depending on house_style without previously configuing them here.
|
11
|
+
- Exclude most Rails default configuration files for our cops to decrease the number of conflicts during Rails upgrades.
|
12
|
+
|
13
|
+
### Changes
|
14
|
+
|
15
|
+
- Update Travis CI configuration and add a default Rake task (rubocop)
|
16
|
+
- Upgrade development dependencies: Bundler & Rake.
|
17
|
+
- Upgrade rubocop to 1.15.0, rubocop-rails to 2.10.1 and rubocop-rspec to 2.3.0.
|
18
|
+
- Remove old pre-1.0 post-install message.
|
19
|
+
|
20
|
+
## 1.6.0
|
21
|
+
- [FIX] Require Rubocop higher than 0.49 to fix security issue: https://nvd.nist.gov/vuln/detail/CVE-2017-8418
|
22
|
+
- [FIX] Rename `IndentHash` to `IndentFirstHashElement`, and require Rubocop 0.68 or higher because of this change.
|
23
|
+
- Rails cops are now split into a different gem `rubocop-rails` that we include by default.
|
24
|
+
- Disable new Rails cops InverseOf & HasManyOrHasOneDependent.
|
25
|
+
- Exclude spec files for Lint/AmbiguousBlockAssociation as recommended in https://github.com/rubocop-hq/rubocop/issues/4222#issuecomment-290655562
|
26
|
+
- Exclude specific rake configuration file for RSpec/ContextWording.
|
27
|
+
- Specify `indented` as the default value for `IndentFirstArrayElement`.
|
28
|
+
- Enforce `single_quotes` for `StringLiterals` by default.
|
29
|
+
|
30
|
+
|
31
|
+
## 1.5.1
|
32
|
+
- [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.
|
33
|
+
- [FIX] `SpaceInsideHashLiteralBraces` now belongs to `Layout` instead of `Style`
|
34
|
+
- [FIX] Disabling new added cop `Style/AccessModifierDeclarations`. We use inline declarations (`private :foo :bar`) as default in our codebase.
|
35
|
+
|
36
|
+
## 1.5.0
|
37
|
+
- updated rubocop to 0.63.1
|
38
|
+
|
39
|
+
## 1.4.0
|
40
|
+
|
41
|
+
- updated rubocop to 0.52.0
|
42
|
+
- rename cops with changed names and remove deprecated definitions.
|
43
|
+
|
3
44
|
## 1.3.0
|
4
45
|
|
5
46
|
- updated rubocop to 0.46.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 = ['Scott Matthewman']
|
10
|
-
spec.email = ['
|
6
|
+
spec.version = '2.0.0'
|
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
|
-
Style/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,4 +1,8 @@
|
|
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/**/*
|
@@ -7,3 +11,14 @@ AllCops:
|
|
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,12 +2,20 @@ 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
|
13
21
|
RSpec/NotToNot:
|
@@ -17,8 +25,6 @@ Style/BlockDelimiters:
|
|
17
25
|
- spec/factories/**/*.rb
|
18
26
|
Style/Documentation:
|
19
27
|
Enabled: false
|
20
|
-
Style/SpaceInsideHashLiteralBraces:
|
21
|
-
Enabled: false
|
22
28
|
Style/SymbolProc:
|
23
29
|
Exclude:
|
24
30
|
- 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,24 +45,14 @@ Style/Copyright:
|
|
31
45
|
Enabled: false
|
32
46
|
Style/Documentation:
|
33
47
|
Enabled: false
|
34
|
-
Style/EmptyLineBetweenDefs:
|
35
|
-
AllowAdjacentOneLineDefs: true
|
36
|
-
Style/Encoding:
|
37
|
-
EnforcedStyle: when_needed
|
38
48
|
Style/FrozenStringLiteralComment:
|
39
49
|
Enabled: false
|
40
50
|
Style/GuardClause:
|
41
51
|
MinBodyLength: 3
|
42
52
|
Style/HashSyntax:
|
43
53
|
EnforcedStyle: ruby19_no_mixed_keys
|
44
|
-
Style/IfUnlessModifier:
|
45
|
-
MaxLineLength: 100
|
46
|
-
Style/IndentHash:
|
47
|
-
EnforcedStyle: consistent
|
48
54
|
Style/MethodCalledOnDoEndBlock:
|
49
55
|
Enabled: true
|
50
|
-
Style/MultilineOperationIndentation:
|
51
|
-
Enabled: false
|
52
56
|
Style/NonNilCheck:
|
53
57
|
IncludeSemanticChanges: true
|
54
58
|
Style/NumericLiterals:
|
@@ -56,6 +60,7 @@ Style/NumericLiterals:
|
|
56
60
|
Style/SignalException:
|
57
61
|
EnforcedStyle: semantic
|
58
62
|
Style/StringLiterals:
|
59
|
-
|
63
|
+
EnforcedStyle: 'single_quotes'
|
64
|
+
Enabled: true
|
60
65
|
Style/StringMethods:
|
61
66
|
Enabled: true
|
metadata
CHANGED
@@ -1,81 +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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Altmetric
|
7
8
|
- Scott Matthewman
|
8
|
-
autorequire:
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rubocop
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- - "
|
18
|
+
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
20
|
+
version: '1.0'
|
20
21
|
- - "<"
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
23
|
+
version: '1.16'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
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
|
26
37
|
requirements:
|
27
38
|
- - "~>"
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
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:
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
30
73
|
- - "<"
|
31
74
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0
|
75
|
+
version: '1.0'
|
33
76
|
- !ruby/object:Gem::Dependency
|
34
77
|
name: rubocop-rspec
|
35
78
|
requirement: !ruby/object:Gem::Requirement
|
36
79
|
requirements:
|
37
80
|
- - "~>"
|
38
81
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
82
|
+
version: 2.3.0
|
40
83
|
type: :runtime
|
41
84
|
prerelease: false
|
42
85
|
version_requirements: !ruby/object:Gem::Requirement
|
43
86
|
requirements:
|
44
87
|
- - "~>"
|
45
88
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
89
|
+
version: 2.3.0
|
47
90
|
- !ruby/object:Gem::Dependency
|
48
91
|
name: bundler
|
49
92
|
requirement: !ruby/object:Gem::Requirement
|
50
93
|
requirements:
|
51
94
|
- - "~>"
|
52
95
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
96
|
+
version: '2.0'
|
54
97
|
type: :development
|
55
98
|
prerelease: false
|
56
99
|
version_requirements: !ruby/object:Gem::Requirement
|
57
100
|
requirements:
|
58
101
|
- - "~>"
|
59
102
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
103
|
+
version: '2.0'
|
61
104
|
- !ruby/object:Gem::Dependency
|
62
105
|
name: rake
|
63
106
|
requirement: !ruby/object:Gem::Requirement
|
64
107
|
requirements:
|
65
108
|
- - "~>"
|
66
109
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
110
|
+
version: '13.0'
|
68
111
|
type: :development
|
69
112
|
prerelease: false
|
70
113
|
version_requirements: !ruby/object:Gem::Requirement
|
71
114
|
requirements:
|
72
115
|
- - "~>"
|
73
116
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
117
|
+
version: '13.0'
|
75
118
|
description: Configuration files and other snippets to help you apply standards across
|
76
119
|
multiple projects
|
77
120
|
email:
|
78
|
-
-
|
121
|
+
- engineering@altmetric.com
|
122
|
+
- scott.matthewman@gmail.com
|
79
123
|
executables: []
|
80
124
|
extensions: []
|
81
125
|
extra_rdoc_files: []
|
@@ -98,10 +142,16 @@ files:
|
|
98
142
|
- lib/generators/house_style/templates/db_migrate_rubocop.yml
|
99
143
|
- lib/generators/house_style/templates/rspec-rubocop.yml
|
100
144
|
- lib/generators/house_style/templates/rubocop.yml
|
145
|
+
- performance/default_rules.yml
|
146
|
+
- performance/rubocop.yml
|
101
147
|
- rails/db_migrate.yml
|
148
|
+
- rails/default_rules.yml
|
102
149
|
- rails/rubocop.yml
|
150
|
+
- rails/style.yml
|
151
|
+
- rake/rubocop.yml
|
103
152
|
- rspec/rubocop.yml
|
104
153
|
- ruby/configuration.yml
|
154
|
+
- ruby/default_rules.yml
|
105
155
|
- ruby/metrics.yml
|
106
156
|
- ruby/rubocop.yml
|
107
157
|
- ruby/style.yml
|
@@ -109,11 +159,7 @@ homepage: https://github.com/altmetric/house_style
|
|
109
159
|
licenses:
|
110
160
|
- MIT
|
111
161
|
metadata: {}
|
112
|
-
post_install_message:
|
113
|
-
If you are updating house_style from version 1.0.0 or older, note that you can
|
114
|
-
now remove any reference to TargetRubyVersion in your project's .rubocop.yml
|
115
|
-
file. You should specify a .ruby-version file for your entire project, and that
|
116
|
-
will be taken into account by rubocop also.
|
162
|
+
post_install_message:
|
117
163
|
rdoc_options: []
|
118
164
|
require_paths:
|
119
165
|
- lib
|
@@ -128,9 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
174
|
- !ruby/object:Gem::Version
|
129
175
|
version: '0'
|
130
176
|
requirements: []
|
131
|
-
|
132
|
-
|
133
|
-
signing_key:
|
177
|
+
rubygems_version: 3.2.15
|
178
|
+
signing_key:
|
134
179
|
specification_version: 4
|
135
180
|
summary: A centralised store of house style rules
|
136
181
|
test_files: []
|