sequra-style 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ef5824fc0eb53c8564a6c0e4e8b4d1c6769f77ca37c4e1af7e2b85deba79734
4
- data.tar.gz: ea08dd64de41f8e991e1bb4b0ac2024340ea61543e28feec4ac5a21bc7f89e8f
3
+ metadata.gz: 72bcd70c9706050c262b4d8fb94f7f02569f694f37370acd709cf6de6a236424
4
+ data.tar.gz: fd300c502ae4701d531f028397b1e60632abfdb1d013576dbb438b5602e87d33
5
5
  SHA512:
6
- metadata.gz: 9219216a850c296e2b8f231ecfb785f4a1e6f48f9f1932f0ac700a7d695e91f8c4c85dcfe4a1bf5fa09d9d0c8a511ff898f3f26c47bd6f21af4fb1832b07c000
7
- data.tar.gz: 3dc6dedc86628ea7766ac8df72566c73c2b96eba69d4b1c2ae38747149804e751622e354cf9c50a2aced06ca0cad06bbbb6e5713b8a340587580a0c75adc3f3d
6
+ metadata.gz: b0c96cb8be13c500c2616bada1dc60e5d056f1fe46acf774c3747c46edab96a048be90b7496ec6c9e043091d4116a30e45a5859228d112a2a6b9d43e84cdf451
7
+ data.tar.gz: 76afd51994025cb47f90a64ae9e40b3d27ab1c3a98841ae1744bd759caa58c3a2a79fc14d2d112e142e0e48990b9e724fd1485ec744d81734fb195ecae38d001
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## [1.5.0](https://github.com/sequra/sequra-style/compare/v1.4.0...v1.5.0) (2025-12-01)
11
+
12
+
13
+ ### Features
14
+
15
+ * disable example length rule ([#43](https://github.com/sequra/sequra-style/issues/43)) ([be34b58](https://github.com/sequra/sequra-style/commit/be34b58f85e9fa0602ccb1baa6228927d6144a5b))
16
+
3
17
  ## [1.4.0](https://github.com/sequra/sequra-style/compare/v1.3.3...v1.4.0) (2025-10-22)
4
18
 
5
19
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sequra-style (1.4.0)
4
+ sequra-style (1.6.0)
5
5
  rubocop (~> 1)
6
6
  rubocop-performance (~> 1)
7
7
  rubocop-rails (~> 2)
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 (we need to point to GitHub since it's not published):
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", git: "https://github.com/sequra/sequra-style", require: false
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
- NewCops: disable
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 their block
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: start_of_line
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
@@ -297,7 +335,10 @@ RSpec/ContextMethod:
297
335
  Severity: info
298
336
 
299
337
  RSpec/ExampleLength:
300
- Max: 16
338
+ # WORKAROUND: `Enabled: false` is ignored due to a loading order bug with
339
+ # `inherit_gem` and `rubocop-rspec` plugins. We set a high Max to silence it
340
+ # while keeping the plugin definition self-contained in this gem.
341
+ Max: 999
301
342
 
302
343
  RSpec/MultipleExpectations:
303
344
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Sequra
2
2
  module Style
3
- VERSION = "1.4.0"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
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.0
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-11-12 00:00:00.000000000 Z
11
+ date: 2025-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop