rubocop-rickselby 0.8.0 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64c7d00eef7082d1ba3bdac5c6724cbfff023c4bd89a904bbe18861423ad203a
4
- data.tar.gz: 61eff822cb5073adf003324f33170c3d137fd18ae5eb01bc83356deb667b0543
3
+ metadata.gz: 3812f1b6de377a02fd1f5549933ff501ccc40bd5438ba3e580e8ac52f17dc45d
4
+ data.tar.gz: 11389a4981293f95621d48cc61af2e342a284638ff57f8712b847d987008d69f
5
5
  SHA512:
6
- metadata.gz: b07011be5eb87f099552d44994adaa9d2f3ecc746fed38c6003afdd41ed9b1b54ed1149cd41dcc902ddadab28428866d40f643a5b7efa6ea4a08034b1f0083bd
7
- data.tar.gz: '080e914a9688308617033503ff6eb968a561e1aebe73898256816b8814e3d5d22d9df72a0ded890ba642b515b21414da45819e765ebe9b9bcb7353ca569f35d4'
6
+ metadata.gz: 5e5f42b850f221b58493ea04a3f2d675294dbe58df9f9626b031f496df76895e024acf468c46c0165c72b585eced2426a5815c732b0006c0a3c778d8cb5cce91
7
+ data.tar.gz: 54ddbb701368ced64cc48a12f11e298dfdab7c099951316147ee6fd0767578c5463917f1aa5707b2c1c1b782996f8fed48fe0cb824c641c30de4209e240cf152
data/config/default.yml CHANGED
@@ -10,10 +10,132 @@ AllCops:
10
10
  Bundler/GemVersion:
11
11
  Enabled: true
12
12
 
13
- # Allow short parameter names (e.g. coords(x, y))
13
+ Gemspec/DependencyVersion:
14
+ Enabled: true
15
+
16
+ Layout/BlockAlignment:
17
+ EnforcedStyleAlignWith: start_of_block
18
+
19
+ Layout/FirstArrayElementLineBreak:
20
+ Enabled: true
21
+
22
+ Layout/FirstHashElementLineBreak:
23
+ Enabled: true
24
+
25
+ Layout/HashAlignment:
26
+ EnforcedColonStyle: table
27
+ EnforcedHashRocketStyle: table
28
+
29
+ Layout/MultilineArrayLineBreaks:
30
+ Enabled: true
31
+
32
+ Layout/MultilineAssignmentLayout:
33
+ Enabled: true
34
+ EnforcedStyle: same_line
35
+
36
+ Layout/MultilineHashKeyLineBreaks:
37
+ Enabled: true
38
+
39
+ Layout/RedundantLineBreak:
40
+ Enabled: true
41
+ InspectBlocks: true
42
+
43
+ # Allow coordinate parameter names (along with the rest of the defaults, which must be redefined here)
14
44
  Naming/MethodParameterName:
15
- MinNameLength: 1
45
+ AllowedNames:
46
+ - as
47
+ - at
48
+ - by
49
+ - cc
50
+ - db
51
+ - id
52
+ - if
53
+ - in
54
+ - io
55
+ - ip
56
+ - of
57
+ - 'on'
58
+ - os
59
+ - pp
60
+ - to
61
+ - x
62
+ - y
63
+ - z
64
+
65
+ Style/AsciiComments:
66
+ Enabled: true
67
+
68
+ Style/AutoResourceCleanup:
69
+ Enabled: true
70
+
71
+ Style/CaseLikeIf:
72
+ MinBranchesCount: 2
73
+
74
+ Style/ClassMethodsDefinitions:
75
+ Enabled: true
76
+ EnforcedStyle: self_class
77
+
78
+ Style/CollectionMethods:
79
+ Enabled: true
80
+
81
+ Style/DateTime:
82
+ Enabled: true
83
+
84
+ Style/FloatDivision:
85
+ EnforcedStyle: fdiv
86
+
87
+ Style/IpAddresses:
88
+ Enabled: true
89
+
90
+ Style/MethodCallWithArgsParentheses:
91
+ Enabled: true
92
+ AllowParenthesesInCamelCaseMethod: true
93
+ AllowParenthesesInChaining: true
94
+ AllowParenthesesInMultilineCall: true
95
+ EnforcedStyle: omit_parentheses
96
+
97
+ Style/MethodCalledOnDoEndBlock:
98
+ Enabled: true
99
+
100
+ Style/OptionHash:
101
+ Enabled: true
102
+
103
+ Style/Send:
104
+ Enabled: true
105
+
106
+ Style/StaticClass:
107
+ Enabled: true
16
108
 
17
109
  # Double quotes everywhere so they don't have to change if interpolation is added to a string
18
110
  Style/StringLiterals:
19
111
  EnforcedStyle: double_quotes
112
+
113
+ Style/StringMethods:
114
+ Enabled: true
115
+
116
+ Style/SymbolArray:
117
+ MinSize: 1
118
+
119
+ Style/StringLiteralsInInterpolation:
120
+ EnforcedStyle: double_quotes
121
+
122
+ Style/TernaryParentheses:
123
+ EnforcedStyle: require_parentheses_when_complex
124
+
125
+ Style/TopLevelMethodDefinition:
126
+ Enabled: true
127
+
128
+ Style/TrailingCommaInArguments:
129
+ EnforcedStyleForMultiline: consistent_comma
130
+
131
+ Style/TrailingCommaInArrayLiteral:
132
+ EnforcedStyleForMultiline: consistent_comma
133
+
134
+ Style/TrailingCommaInHashLiteral:
135
+ EnforcedStyleForMultiline: consistent_comma
136
+
137
+ Style/UnlessLogicalOperators:
138
+ Enabled: true
139
+
140
+ Style/WordArray:
141
+ MinSize: 1
data/config/rails.yml CHANGED
@@ -2,6 +2,9 @@ require:
2
2
  - rubocop-rails
3
3
  - rubocop-rails-accessibility
4
4
 
5
+ AllCops:
6
+ ActiveSupportExtensionsEnabled: true
7
+
5
8
  # Config blocks can be very long
6
9
  Metrics/BlockLength:
7
10
  Exclude:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Rickselby
5
- VERSION = "0.8.0"
5
+ VERSION = "0.9.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rickselby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Selby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.4.10
91
+ rubygems_version: 3.5.3
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Code styling for my projects