sequra-style 1.5.0 → 1.6.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/default.yml +45 -7
- data/lib/sequra/style/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72bcd70c9706050c262b4d8fb94f7f02569f694f37370acd709cf6de6a236424
|
|
4
|
+
data.tar.gz: fd300c502ae4701d531f028397b1e60632abfdb1d013576dbb438b5602e87d33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0c96cb8be13c500c2616bada1dc60e5d056f1fe46acf774c3747c46edab96a048be90b7496ec6c9e043091d4116a30e45a5859228d112a2a6b9d43e84cdf451
|
|
7
|
+
data.tar.gz: 76afd51994025cb47f90a64ae9e40b3d27ab1c3a98841ae1744bd759caa58c3a2a79fc14d2d112e142e0e48990b9e724fd1485ec744d81734fb195ecae38d001
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.0](https://github.com/sequra/sequra-style/compare/v1.5.0...v1.6.0) (2025-12-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Relax some rules ([#45](https://github.com/sequra/sequra-style/issues/45)) ([bf97bee](https://github.com/sequra/sequra-style/commit/bf97bee12ff7ae202e16e31181a807d6415fa642))
|
|
9
|
+
|
|
3
10
|
## [1.5.0](https://github.com/sequra/sequra-style/compare/v1.4.0...v1.5.0) (2025-12-01)
|
|
4
11
|
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -4,10 +4,10 @@ SeQura code style guide and shared configuration.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Add this line to your application's Gemfile (
|
|
7
|
+
Add this line to your application's Gemfile (the gem is automatically released to [rubygems.org](https://rubygems.org/gems/sequra-style)):
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem "sequra-style",
|
|
10
|
+
gem "sequra-style", require: false
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
@@ -24,4 +24,6 @@ Use the following directives in a `.rubocop.yml` file:
|
|
|
24
24
|
inherit_gem:
|
|
25
25
|
sequra-style:
|
|
26
26
|
- default.yml
|
|
27
|
+
|
|
28
|
+
# Add any project-specific cop settings here
|
|
27
29
|
```
|
data/default.yml
CHANGED
|
@@ -7,16 +7,46 @@ AllCops:
|
|
|
7
7
|
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
|
8
8
|
# to ignore them, so only the ones explicitly set in this file are enabled.
|
|
9
9
|
DisabledByDefault: true
|
|
10
|
+
NewCops: disable
|
|
10
11
|
Exclude:
|
|
11
12
|
- "**/vendor/**/*"
|
|
12
13
|
- "**/node_modules/**/*"
|
|
13
14
|
- "local_files/**/*"
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
# Exclude migration files created before December 2025:
|
|
17
|
+
# NOTE: Do not keep adding new exlcusions here. New migrations after this are expected to comply with the current style
|
|
18
|
+
# guide.
|
|
19
|
+
- db/*/2011*.rb
|
|
20
|
+
- db/*/2012*.rb
|
|
21
|
+
- db/*/2013*.rb
|
|
22
|
+
- db/*/2014*.rb
|
|
23
|
+
- db/*/2015*.rb
|
|
24
|
+
- db/*/2016*.rb
|
|
25
|
+
- db/*/2017*.rb
|
|
26
|
+
- db/*/2018*.rb
|
|
27
|
+
- db/*/2019*.rb
|
|
28
|
+
- db/*/2020*.rb
|
|
29
|
+
- db/*/2021*.rb
|
|
30
|
+
- db/*/2022*.rb
|
|
31
|
+
- db/*/2023*.rb
|
|
32
|
+
- db/*/2024*.rb
|
|
33
|
+
- db/*/202501*.rb
|
|
34
|
+
- db/*/202502*.rb
|
|
35
|
+
- db/*/202503*.rb
|
|
36
|
+
- db/*/202504*.rb
|
|
37
|
+
- db/*/202505*.rb
|
|
38
|
+
- db/*/202506*.rb
|
|
39
|
+
- db/*/202507*.rb
|
|
40
|
+
- db/*/202508*.rb
|
|
41
|
+
- db/*/202509*.rb
|
|
42
|
+
- db/*/202510*.rb
|
|
43
|
+
- db/*/202511*.rb
|
|
44
|
+
- db/*/20251201*.rb
|
|
45
|
+
- db/*/20251202*.rb
|
|
46
|
+
- db/*/20251203*.rb
|
|
15
47
|
|
|
16
48
|
Performance:
|
|
17
49
|
Enabled: true
|
|
18
|
-
Exclude:
|
|
19
|
-
- "**/spec/**/*"
|
|
20
50
|
|
|
21
51
|
Rails:
|
|
22
52
|
Enabled: true
|
|
@@ -39,6 +69,11 @@ Rails/RefuteMethods:
|
|
|
39
69
|
Include:
|
|
40
70
|
- "**/spec/**/*"
|
|
41
71
|
|
|
72
|
+
Rails/SkipsModelValidations:
|
|
73
|
+
Enabled: true
|
|
74
|
+
Exclude:
|
|
75
|
+
- "**/spec/**/*"
|
|
76
|
+
|
|
42
77
|
Rails/TimeZone:
|
|
43
78
|
Enabled: true
|
|
44
79
|
|
|
@@ -132,16 +167,15 @@ Layout/EmptyLinesAroundMethodBody:
|
|
|
132
167
|
Layout/EmptyLinesAroundModuleBody:
|
|
133
168
|
Enabled: true
|
|
134
169
|
|
|
135
|
-
# Align block 'end's with the start of
|
|
170
|
+
# Align block 'end's either with the start of the block or with the first
|
|
171
|
+
# character of the line containing the start of the block
|
|
136
172
|
Layout/BlockAlignment:
|
|
137
173
|
Enabled: true
|
|
138
|
-
EnforcedStyleAlignWith:
|
|
139
|
-
Severity: info
|
|
174
|
+
EnforcedStyleAlignWith: either
|
|
140
175
|
|
|
141
176
|
# Enforce empty line between method definitions
|
|
142
177
|
Layout/EmptyLineBetweenDefs:
|
|
143
178
|
Enabled: true
|
|
144
|
-
Severity: info
|
|
145
179
|
|
|
146
180
|
Layout/FirstArgumentIndentation:
|
|
147
181
|
Enabled: true
|
|
@@ -239,6 +273,10 @@ Layout/TrailingWhitespace:
|
|
|
239
273
|
Lint/Debugger:
|
|
240
274
|
Enabled: true
|
|
241
275
|
|
|
276
|
+
# Detect redundant disabling of cops and automatically remove them with --autocorrect
|
|
277
|
+
Lint/RedundantCopDisableDirective:
|
|
278
|
+
Enabled: true
|
|
279
|
+
|
|
242
280
|
# Use quotes for string literals when they are enough.
|
|
243
281
|
Style/RedundantPercentQ:
|
|
244
282
|
Enabled: true
|
data/lib/sequra/style/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequra-style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sequra engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|