sequra-style 1.5.0 → 1.7.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 +14 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/default.yml +46 -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: 79fe3ef476a7b23398e9a16f0af6a574713134a9a3052030987471b7496bbcac
|
|
4
|
+
data.tar.gz: f9f631c3b099331008c01bf2f259fb349ca2a5e1d65f87838ffe8ee42ae91010
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa3dd6da896e503004e075652dc9215eb0b0a2441fb34c0c7f880b373aca553ec31f3104aceb7ed1a50897a263a1b87e2f6d5379dbf55cb7c49d872cd99b18c5
|
|
7
|
+
data.tar.gz: 69fecba36d8e1b3e48e60f71c30a040a7210e13e9893d1256adadd242bd60784e1066d26904e5c7400431399b347cf0c02e0a07f621aef497851d9ec40a79dd4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.0](https://github.com/sequra/sequra-style/compare/v1.6.0...v1.7.0) (2025-12-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Exclue db/schema.rb in all cops ([#48](https://github.com/sequra/sequra-style/issues/48)) ([fd170fd](https://github.com/sequra/sequra-style/commit/fd170fd504112d063b1431a17f43cab62af3fcb4))
|
|
9
|
+
|
|
10
|
+
## [1.6.0](https://github.com/sequra/sequra-style/compare/v1.5.0...v1.6.0) (2025-12-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Relax some rules ([#45](https://github.com/sequra/sequra-style/issues/45)) ([bf97bee](https://github.com/sequra/sequra-style/commit/bf97bee12ff7ae202e16e31181a807d6415fa642))
|
|
16
|
+
|
|
3
17
|
## [1.5.0](https://github.com/sequra/sequra-style/compare/v1.4.0...v1.5.0) (2025-12-01)
|
|
4
18
|
|
|
5
19
|
|
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,47 @@ 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
|
+
- db/schema.rb
|
|
16
|
+
|
|
17
|
+
# Exclude migration files created before December 2025:
|
|
18
|
+
# NOTE: Do not keep adding new exlcusions here. New migrations after this are expected to comply with the current style
|
|
19
|
+
# guide.
|
|
20
|
+
- db/*/2011*.rb
|
|
21
|
+
- db/*/2012*.rb
|
|
22
|
+
- db/*/2013*.rb
|
|
23
|
+
- db/*/2014*.rb
|
|
24
|
+
- db/*/2015*.rb
|
|
25
|
+
- db/*/2016*.rb
|
|
26
|
+
- db/*/2017*.rb
|
|
27
|
+
- db/*/2018*.rb
|
|
28
|
+
- db/*/2019*.rb
|
|
29
|
+
- db/*/2020*.rb
|
|
30
|
+
- db/*/2021*.rb
|
|
31
|
+
- db/*/2022*.rb
|
|
32
|
+
- db/*/2023*.rb
|
|
33
|
+
- db/*/2024*.rb
|
|
34
|
+
- db/*/202501*.rb
|
|
35
|
+
- db/*/202502*.rb
|
|
36
|
+
- db/*/202503*.rb
|
|
37
|
+
- db/*/202504*.rb
|
|
38
|
+
- db/*/202505*.rb
|
|
39
|
+
- db/*/202506*.rb
|
|
40
|
+
- db/*/202507*.rb
|
|
41
|
+
- db/*/202508*.rb
|
|
42
|
+
- db/*/202509*.rb
|
|
43
|
+
- db/*/202510*.rb
|
|
44
|
+
- db/*/202511*.rb
|
|
45
|
+
- db/*/20251201*.rb
|
|
46
|
+
- db/*/20251202*.rb
|
|
47
|
+
- db/*/20251203*.rb
|
|
15
48
|
|
|
16
49
|
Performance:
|
|
17
50
|
Enabled: true
|
|
18
|
-
Exclude:
|
|
19
|
-
- "**/spec/**/*"
|
|
20
51
|
|
|
21
52
|
Rails:
|
|
22
53
|
Enabled: true
|
|
@@ -39,6 +70,11 @@ Rails/RefuteMethods:
|
|
|
39
70
|
Include:
|
|
40
71
|
- "**/spec/**/*"
|
|
41
72
|
|
|
73
|
+
Rails/SkipsModelValidations:
|
|
74
|
+
Enabled: true
|
|
75
|
+
Exclude:
|
|
76
|
+
- "**/spec/**/*"
|
|
77
|
+
|
|
42
78
|
Rails/TimeZone:
|
|
43
79
|
Enabled: true
|
|
44
80
|
|
|
@@ -132,16 +168,15 @@ Layout/EmptyLinesAroundMethodBody:
|
|
|
132
168
|
Layout/EmptyLinesAroundModuleBody:
|
|
133
169
|
Enabled: true
|
|
134
170
|
|
|
135
|
-
# Align block 'end's with the start of
|
|
171
|
+
# Align block 'end's either with the start of the block or with the first
|
|
172
|
+
# character of the line containing the start of the block
|
|
136
173
|
Layout/BlockAlignment:
|
|
137
174
|
Enabled: true
|
|
138
|
-
EnforcedStyleAlignWith:
|
|
139
|
-
Severity: info
|
|
175
|
+
EnforcedStyleAlignWith: either
|
|
140
176
|
|
|
141
177
|
# Enforce empty line between method definitions
|
|
142
178
|
Layout/EmptyLineBetweenDefs:
|
|
143
179
|
Enabled: true
|
|
144
|
-
Severity: info
|
|
145
180
|
|
|
146
181
|
Layout/FirstArgumentIndentation:
|
|
147
182
|
Enabled: true
|
|
@@ -239,6 +274,10 @@ Layout/TrailingWhitespace:
|
|
|
239
274
|
Lint/Debugger:
|
|
240
275
|
Enabled: true
|
|
241
276
|
|
|
277
|
+
# Detect redundant disabling of cops and automatically remove them with --autocorrect
|
|
278
|
+
Lint/RedundantCopDisableDirective:
|
|
279
|
+
Enabled: true
|
|
280
|
+
|
|
242
281
|
# Use quotes for string literals when they are enough.
|
|
243
282
|
Style/RedundantPercentQ:
|
|
244
283
|
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.7.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-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|