factbase 0.5.2 → 0.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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.0pdd.yml +2 -19
  3. data/.github/workflows/actionlint.yml +4 -20
  4. data/.github/workflows/benchmark.yml +10 -25
  5. data/.github/workflows/codecov.yml +6 -20
  6. data/.github/workflows/copyrights.yml +4 -19
  7. data/.github/workflows/markdown-lint.yml +4 -19
  8. data/.github/workflows/pdd.yml +4 -19
  9. data/.github/workflows/rake.yml +5 -21
  10. data/.github/workflows/reuse.yml +19 -0
  11. data/.github/workflows/xcop.yml +4 -19
  12. data/.github/workflows/yamllint.yml +4 -21
  13. data/.gitignore +1 -0
  14. data/.rubocop.yml +5 -21
  15. data/.rultor.yml +3 -19
  16. data/.simplecov +2 -19
  17. data/Gemfile +8 -24
  18. data/Gemfile.lock +40 -31
  19. data/LICENSES/MIT.txt +21 -0
  20. data/README.md +40 -10
  21. data/REUSE.toml +25 -0
  22. data/Rakefile +3 -28
  23. data/benchmarks/simple.rb +55 -24
  24. data/factbase.gemspec +2 -19
  25. data/lib/factbase/accum.rb +4 -21
  26. data/lib/factbase/churn.rb +44 -0
  27. data/lib/factbase/fact.rb +2 -19
  28. data/lib/factbase/flatten.rb +2 -19
  29. data/lib/factbase/inv.rb +6 -25
  30. data/lib/factbase/light.rb +32 -0
  31. data/lib/factbase/looged.rb +6 -27
  32. data/lib/factbase/pre.rb +6 -25
  33. data/lib/factbase/query.rb +4 -21
  34. data/lib/factbase/query_once.rb +2 -19
  35. data/lib/factbase/rules.rb +5 -26
  36. data/lib/factbase/syntax.rb +2 -19
  37. data/lib/factbase/tallied.rb +93 -0
  38. data/lib/factbase/taped.rb +113 -0
  39. data/lib/factbase/tee.rb +2 -19
  40. data/lib/factbase/term.rb +3 -20
  41. data/lib/factbase/term_once.rb +2 -19
  42. data/lib/factbase/terms/aggregates.rb +4 -21
  43. data/lib/factbase/terms/aliases.rb +2 -19
  44. data/lib/factbase/terms/casting.rb +2 -19
  45. data/lib/factbase/terms/debug.rb +2 -19
  46. data/lib/factbase/terms/defn.rb +2 -19
  47. data/lib/factbase/terms/logical.rb +3 -20
  48. data/lib/factbase/terms/math.rb +2 -19
  49. data/lib/factbase/terms/meta.rb +4 -21
  50. data/lib/factbase/terms/ordering.rb +3 -20
  51. data/lib/factbase/terms/strings.rb +2 -19
  52. data/lib/factbase/terms/system.rb +2 -19
  53. data/lib/factbase/to_json.rb +2 -19
  54. data/lib/factbase/to_xml.rb +2 -19
  55. data/lib/factbase/to_yaml.rb +2 -19
  56. data/lib/factbase.rb +48 -50
  57. data/test/factbase/terms/test_aggregates.rb +2 -19
  58. data/test/factbase/terms/test_aliases.rb +2 -19
  59. data/test/factbase/terms/test_casting.rb +2 -19
  60. data/test/factbase/terms/test_debug.rb +2 -19
  61. data/test/factbase/terms/test_defn.rb +2 -19
  62. data/test/factbase/terms/test_logical.rb +2 -19
  63. data/test/factbase/terms/test_math.rb +2 -19
  64. data/test/factbase/terms/test_meta.rb +2 -19
  65. data/test/factbase/terms/test_ordering.rb +2 -19
  66. data/test/factbase/terms/test_strings.rb +2 -19
  67. data/test/factbase/terms/test_system.rb +2 -19
  68. data/test/factbase/test_accum.rb +2 -19
  69. data/test/factbase/test_churn.rb +40 -0
  70. data/test/factbase/test_fact.rb +2 -19
  71. data/test/factbase/test_flatten.rb +2 -19
  72. data/test/factbase/test_inv.rb +2 -19
  73. data/test/factbase/test_looged.rb +6 -23
  74. data/test/factbase/test_pre.rb +2 -19
  75. data/test/factbase/test_query.rb +2 -19
  76. data/test/factbase/test_rules.rb +2 -19
  77. data/test/factbase/test_syntax.rb +2 -19
  78. data/test/factbase/test_tallied.rb +71 -0
  79. data/test/factbase/test_taped.rb +36 -0
  80. data/test/factbase/test_tee.rb +2 -19
  81. data/test/factbase/test_term.rb +2 -19
  82. data/test/factbase/test_to_json.rb +2 -19
  83. data/test/factbase/test_to_xml.rb +2 -19
  84. data/test/factbase/test_to_yaml.rb +2 -19
  85. data/test/test__helper.rb +3 -19
  86. data/test/test_factbase.rb +81 -50
  87. metadata +12 -3
  88. data/.yamllint.yml +0 -29
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2024-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'minitest/autorun'
24
7
  require 'loog'
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2024-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'minitest/autorun'
24
7
  require 'loog'
data/test/test__helper.rb CHANGED
@@ -1,28 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2024-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  $stdout.sync = true
24
7
 
25
8
  require 'simplecov'
9
+ SimpleCov.external_at_exit = true
26
10
  SimpleCov.start
27
11
 
28
12
  require 'simplecov-cobertura'
@@ -1,24 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2024-2025 Yegor Bugayenko
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the 'Software'), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in all
13
- # copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
22
5
 
23
6
  require 'minitest/autorun'
24
7
  require 'loog'
@@ -119,24 +102,19 @@ class TestFactbase < Minitest::Test
119
102
  assert_equal(1, fb.size)
120
103
  end
121
104
 
122
- def test_makes_duplicate
123
- fb1 = Factbase.new
124
- fb1.insert
125
- assert_equal(1, fb1.size)
126
- fb2 = fb1.dup
127
- fb2.insert
128
- assert_equal(1, fb1.size)
129
- assert_equal(2, fb2.size)
105
+ def test_txn_returns_boolean
106
+ fb = Factbase.new
107
+ assert_equal(1, fb.txn(&:insert))
108
+ assert_equal(1, fb.txn { |fbt| fbt.insert.bar = 42 })
109
+ assert_equal(0, fb.txn { |fbt| fbt.query('(always)').each.to_a })
110
+ assert_equal(2, fb.txn { |fbt| fbt.query('(always)').each { |f| f.hello = 33 } })
111
+ assert_equal(1, fb.txn { |fbt| fbt.query('(always)').each.to_a[0].zzz = 33 })
130
112
  end
131
113
 
132
- def test_txn_returns_boolean
114
+ def test_appends_in_txn
133
115
  fb = Factbase.new
134
- assert_kind_of(FalseClass, fb.txn { true })
135
- assert_kind_of(TrueClass, fb.txn(&:insert))
136
- assert(fb.txn { |fbt| fbt.insert.bar = 42 })
137
- refute(fb.txn { |fbt| fbt.query('(always)').each.to_a })
116
+ fb.insert.foo = 443
138
117
  assert(fb.txn { |fbt| fbt.query('(always)').each { |f| f.hello = 33 } })
139
- assert(fb.txn { |fbt| fbt.query('(always)').each.to_a[0].zzz = 33 })
140
118
  end
141
119
 
142
120
  def test_run_txn
@@ -157,6 +135,16 @@ class TestFactbase < Minitest::Test
157
135
  assert_equal(2, fb.size)
158
136
  end
159
137
 
138
+ def test_deals_with_arrays_in_txn
139
+ fb = Factbase.new
140
+ f = fb.insert
141
+ f.foo = 1
142
+ f.foo = 2
143
+ fb.txn do |fbt|
144
+ assert_equal(1, fbt.query('(gt foo 0)').each.to_a.size)
145
+ end
146
+ end
147
+
160
148
  def test_run_txn_via_query
161
149
  fb = Factbase.new
162
150
  fb.insert.foo = 1
@@ -226,31 +214,75 @@ class TestFactbase < Minitest::Test
226
214
  fbt.insert.bar = 33
227
215
  raise Factbase::Rollback
228
216
  end
229
- refute(modified)
217
+ assert_equal(0, modified)
230
218
  assert_equal(0, fb.query('(always)').each.to_a.size)
231
219
  end
232
220
 
221
+ def test_simple_concurrent_inserts
222
+ fb = Factbase.new
223
+ t = Concurrent.processor_count * 20
224
+ Threads.new(t).assert do
225
+ fb.insert
226
+ end
227
+ assert_equal(t, fb.size)
228
+ end
229
+
230
+ def test_simple_concurrent_inserts_in_txns
231
+ fb = Factbase.new
232
+ t = Concurrent.processor_count * 7
233
+ mul = 23
234
+ Threads.new(t).assert do
235
+ assert(
236
+ fb.txn do |fbt|
237
+ mul.times do |m|
238
+ fbt.insert.foo = m
239
+ end
240
+ end
241
+ )
242
+ end
243
+ assert_equal(t * mul, fb.size)
244
+ end
245
+
246
+ def test_simple_concurrent_inserts_in_txns_with_sleep
247
+ fb = Factbase.new
248
+ t = Concurrent.processor_count * 13
249
+ mul = 53
250
+ Threads.new(t).assert do
251
+ assert(
252
+ fb.txn do |fbt|
253
+ sleep(0.01)
254
+ mul.times do |m|
255
+ fbt.insert.foo = m
256
+ end
257
+ end
258
+ )
259
+ end
260
+ assert_equal(t * mul, fb.size)
261
+ end
262
+
233
263
  def test_concurrent_inserts
234
264
  fb = Factbase.new
235
- Threads.new(100).assert do
265
+ t = Concurrent.processor_count * 20
266
+ Threads.new(t).assert do
236
267
  fact = fb.insert
237
268
  fact.foo = 42
238
269
  fact.bar = 49
239
270
  fact.value = fact.foo * fact.bar
240
271
  end
241
- assert_equal(100, fb.size)
242
- assert_equal(100, fb.query('(eq foo 42)').each.to_a.size)
243
- assert_equal(100, fb.query('(eq bar 49)').each.to_a.size)
244
- assert_equal(100, fb.query("(eq value #{42 * 49})").each.to_a.size)
272
+ assert_equal(t, fb.size)
273
+ assert_equal(t, fb.query('(eq foo 42)').each.to_a.size)
274
+ assert_equal(t, fb.query('(eq bar 49)').each.to_a.size)
275
+ assert_equal(t, fb.query("(eq value #{42 * 49})").each.to_a.size)
245
276
  end
246
277
 
247
278
  def test_different_values_when_concurrent_inserts
248
279
  fb = Factbase.new
249
- Threads.new(100).assert do |i|
280
+ t = Concurrent.processor_count * 16
281
+ Threads.new(t).assert do |i|
250
282
  fb.insert.foo = i
251
283
  end
252
- assert_equal(100, fb.size)
253
- Threads.new(100) do |i|
284
+ assert_equal(t, fb.size)
285
+ Threads.new(t) do |i|
254
286
  f = fb.query("(eq foo #{i})").each.to_a
255
287
  assert_equal(1, f.count)
256
288
  assert_equal(i, f.first.foo)
@@ -294,16 +326,16 @@ class TestFactbase < Minitest::Test
294
326
  # See details here https://github.com/yegor256/factbase/actions/runs/10492255419/job/29068637032
295
327
  def test_concurrent_transactions_inserts
296
328
  skip('Does not work')
297
- total = 100
329
+ t = Concurrent.processor_count * 19
298
330
  fb = Factbase.new
299
- Threads.new(total).assert do |i|
331
+ Threads.new(t).assert do |i|
300
332
  fb.txn do |fbt|
301
333
  fact = fbt.insert
302
334
  fact.thread_id = i
303
335
  end
304
336
  end
305
- assert_equal(total, fb.size)
306
- assert_equal(total, fb.query('(exists thread_id)').each.to_a.size)
337
+ assert_equal(t, fb.size)
338
+ assert_equal(t, fb.query('(exists thread_id)').each.to_a.size)
307
339
  end
308
340
 
309
341
  def test_concurrent_transactions_with_rollbacks
@@ -320,8 +352,8 @@ class TestFactbase < Minitest::Test
320
352
 
321
353
  def test_concurrent_transactions_successful
322
354
  fb = Factbase.new
323
- total = 100
324
- Threads.new(total).assert do |i|
355
+ t = Concurrent.processor_count * 17
356
+ Threads.new(t).assert do |i|
325
357
  fb.txn do |fbt|
326
358
  fact = fbt.insert
327
359
  fact.thread_id = i
@@ -329,7 +361,7 @@ class TestFactbase < Minitest::Test
329
361
  end
330
362
  end
331
363
  facts = fb.query('(exists thread_id)').each.to_a
332
- assert_equal(total, facts.size)
364
+ assert_equal(t, facts.size)
333
365
  facts.each do |fact|
334
366
  assert_equal(fact.value, fact.thread_id * 10)
335
367
  end
@@ -358,7 +390,6 @@ class TestFactbase < Minitest::Test
358
390
  Threads.new(2).assert do
359
391
  results = fb.query('(exists thread_id)').each.to_a
360
392
  assert_equal(2, results.size)
361
-
362
393
  thread_ids = results.map(&:thread_id)
363
394
  assert_equal((0..1).to_a, thread_ids.sort)
364
395
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-28 00:00:00.000000000 Z
11
+ date: 2025-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -143,6 +143,7 @@ files:
143
143
  - ".github/workflows/markdown-lint.yml"
144
144
  - ".github/workflows/pdd.yml"
145
145
  - ".github/workflows/rake.yml"
146
+ - ".github/workflows/reuse.yml"
146
147
  - ".github/workflows/xcop.yml"
147
148
  - ".github/workflows/yamllint.yml"
148
149
  - ".gitignore"
@@ -150,25 +151,30 @@ files:
150
151
  - ".rubocop.yml"
151
152
  - ".rultor.yml"
152
153
  - ".simplecov"
153
- - ".yamllint.yml"
154
154
  - Gemfile
155
155
  - Gemfile.lock
156
156
  - LICENSE.txt
157
+ - LICENSES/MIT.txt
157
158
  - README.md
159
+ - REUSE.toml
158
160
  - Rakefile
159
161
  - benchmarks/simple.rb
160
162
  - factbase.gemspec
161
163
  - lib/factbase.rb
162
164
  - lib/factbase/accum.rb
165
+ - lib/factbase/churn.rb
163
166
  - lib/factbase/fact.rb
164
167
  - lib/factbase/flatten.rb
165
168
  - lib/factbase/inv.rb
169
+ - lib/factbase/light.rb
166
170
  - lib/factbase/looged.rb
167
171
  - lib/factbase/pre.rb
168
172
  - lib/factbase/query.rb
169
173
  - lib/factbase/query_once.rb
170
174
  - lib/factbase/rules.rb
171
175
  - lib/factbase/syntax.rb
176
+ - lib/factbase/tallied.rb
177
+ - lib/factbase/taped.rb
172
178
  - lib/factbase/tee.rb
173
179
  - lib/factbase/term.rb
174
180
  - lib/factbase/term_once.rb
@@ -199,6 +205,7 @@ files:
199
205
  - test/factbase/terms/test_strings.rb
200
206
  - test/factbase/terms/test_system.rb
201
207
  - test/factbase/test_accum.rb
208
+ - test/factbase/test_churn.rb
202
209
  - test/factbase/test_fact.rb
203
210
  - test/factbase/test_flatten.rb
204
211
  - test/factbase/test_inv.rb
@@ -207,6 +214,8 @@ files:
207
214
  - test/factbase/test_query.rb
208
215
  - test/factbase/test_rules.rb
209
216
  - test/factbase/test_syntax.rb
217
+ - test/factbase/test_tallied.rb
218
+ - test/factbase/test_taped.rb
210
219
  - test/factbase/test_tee.rb
211
220
  - test/factbase/test_term.rb
212
221
  - test/factbase/test_to_json.rb
data/.yamllint.yml DELETED
@@ -1,29 +0,0 @@
1
- # Copyright (c) 2024-2025 Yegor Bugayenko
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the 'Software'), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in all
11
- # copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
- # SOFTWARE.
20
- ---
21
- extends: default
22
- rules:
23
- line-length: disable
24
- brackets:
25
- min-spaces-inside: 0
26
- max-spaces-inside: 2
27
- truthy:
28
- level: warning
29
- allowed-values: [ 'on', 'true', 'false', 'yes', 'no' ]