house_style 2.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: house_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Altmetric
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-05-11 00:00:00.000000000 Z
12
+ date: 2022-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,76 +17,62 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.0'
20
+ version: '1.31'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '1.23'
23
+ version: '2.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '1.0'
30
+ version: '1.31'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.23'
33
+ version: '2.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rubocop-performance
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.11.3
40
+ version: '1.11'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.11.3
47
+ version: '1.11'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rubocop-rails
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.12.3
54
+ version: '2.12'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.12.3
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:
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '1.0'
61
+ version: '2.12'
76
62
  - !ruby/object:Gem::Dependency
77
63
  name: rubocop-rspec
78
64
  requirement: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 2.5.0
68
+ version: '2.5'
83
69
  type: :runtime
84
70
  prerelease: false
85
71
  version_requirements: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 2.5.0
75
+ version: '2.5'
90
76
  - !ruby/object:Gem::Dependency
91
77
  name: bundler
92
78
  requirement: !ruby/object:Gem::Requirement
@@ -135,27 +121,19 @@ files:
135
121
  - LICENSE.txt
136
122
  - README.md
137
123
  - Rakefile
138
- - bin/console
139
- - bin/setup
124
+ - features/rubocop.yml
140
125
  - house_style.gemspec
141
126
  - lib/generators/house_style/install_generator.rb
142
127
  - lib/generators/house_style/templates/db_migrate_rubocop.yml
143
128
  - lib/generators/house_style/templates/features_rubocop.yml
144
129
  - lib/generators/house_style/templates/rspec_rubocop.yml
145
130
  - lib/generators/house_style/templates/rubocop.yml
146
- - performance/default_rules.yml
147
131
  - performance/rubocop.yml
148
132
  - rails/db_migrate.yml
149
- - rails/default_rules.yml
150
133
  - rails/rubocop.yml
151
- - rails/style.yml
152
- - rake/rubocop.yml
153
134
  - rspec/rubocop.yml
154
135
  - ruby/configuration.yml
155
- - ruby/default_rules.yml
156
- - ruby/metrics.yml
157
136
  - ruby/rubocop.yml
158
- - ruby/style.yml
159
137
  homepage: https://github.com/altmetric/house_style
160
138
  licenses:
161
139
  - MIT
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'house_style'
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require 'pry'
11
- # Pry.start
12
-
13
- require 'irb'
14
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
@@ -1,32 +0,0 @@
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
@@ -1,34 +0,0 @@
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/style.yml DELETED
@@ -1,29 +0,0 @@
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
- - Rakefile
26
-
27
- Style/SymbolArray:
28
- Exclude:
29
- - config/initializers/filter_parameter_logging.rb
data/rake/rubocop.yml DELETED
@@ -1 +0,0 @@
1
- require: rubocop-rake
@@ -1,60 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- Metrics/MethodLength:
2
- Max: 10
data/ruby/style.yml DELETED
@@ -1,66 +0,0 @@
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
21
- Style/BlockDelimiters:
22
- EnforcedStyle: semantic
23
- FunctionalMethods:
24
- - before
25
- - given
26
- - given!
27
- - watch
28
- - times
29
- - try
30
- # logger methods that can take blocks
31
- - debug
32
- - error
33
- - info
34
- - warning
35
- # Rubocop defaults which may otherwise be overwritten
36
- - let
37
- - let!
38
- - subject
39
- - watch
40
- Style/CollectionMethods:
41
- Enabled: true
42
- Style/CommandLiteral:
43
- EnforcedStyle: mixed
44
- Style/Copyright:
45
- Enabled: false
46
- Style/Documentation:
47
- Enabled: false
48
- Style/FrozenStringLiteralComment:
49
- Enabled: false
50
- Style/GuardClause:
51
- MinBodyLength: 3
52
- Style/HashSyntax:
53
- EnforcedStyle: ruby19_no_mixed_keys
54
- Style/MethodCalledOnDoEndBlock:
55
- Enabled: true
56
- Style/NonNilCheck:
57
- IncludeSemanticChanges: true
58
- Style/NumericLiterals:
59
- MinDigits: 6
60
- Style/SignalException:
61
- EnforcedStyle: semantic
62
- Style/StringLiterals:
63
- EnforcedStyle: 'single_quotes'
64
- Enabled: true
65
- Style/StringMethods:
66
- Enabled: true