fablicop 1.4.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07eb16fa26e1f0316ef778a520a56f77408b5c9e93677e1a6758a035e97cf299
4
- data.tar.gz: cc78bd7069639395950bbf9aeccd42a7f4884481b1403792aa13a91da6159a7f
3
+ metadata.gz: d17d26bea73be0170dc33d115e62dce8e31e117c28ebd15f0d4e13194b170976
4
+ data.tar.gz: 6daa7320a0ceac473bfff0e0e61a5d98644f15f49b399220e98417e13ab3d20a
5
5
  SHA512:
6
- metadata.gz: 8ca4df2f25fc58700fc64ecb106ee876c309a6ee5fbd5d7c12411e11a1361880cfef6b1983ba38c9b1bba5aac1328c7b877aa81d1d5cb0aa56ed005774f67130
7
- data.tar.gz: 9ca49292c708a1062ab5aacd8020a5b19476e4c472a63fbeae92a59ca3fdb1b6997916379b305a1f00fa5f566ab0f1af06a539104ee395940c03551a350c3ddd
6
+ metadata.gz: 6cf903907362483a5e1cabb39fe9bd4fe3c7a83fb59bd2766460f77b192995e38b5336841367e90fb524241d9554a2f00edaaf0f460fbcdc4ea7bbfd5dc0cd61
7
+ data.tar.gz: 43ae6430aafa6e1ae7d8fd684bb5231a10106a67f2dd3ed7d792d479c81d98b89f97b01b00ae46f5e16e11585ebac74aabce81df8721b2c703cfb8fc7ad34fe6
data/CHANGELOG.md CHANGED
@@ -2,7 +2,31 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/Fablic/fablicop/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.0...HEAD)
5
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.6.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Disable Naming/VariableNumber [\#89](https://github.com/Fablic/fablicop/pull/89) ([yykamei](https://github.com/yykamei))
10
+
11
+ ## [v1.6.0](https://github.com/Fablic/fablicop/tree/v1.6.0) (2022-07-26)
12
+
13
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.5.0...v1.6.0)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Enable `Style/Documentation` [\#86](https://github.com/Fablic/fablicop/pull/86) ([yykamei](https://github.com/yykamei))
18
+
19
+ ## [v1.5.0](https://github.com/Fablic/fablicop/tree/v1.5.0) (2022-07-21)
20
+
21
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.1...v1.5.0)
22
+
23
+ **Merged pull requests:**
24
+
25
+ - Disable Metrics aside from NestedBlocks [\#83](https://github.com/Fablic/fablicop/pull/83) ([DaisukeHirabayashi](https://github.com/DaisukeHirabayashi))
26
+
27
+ ## [v1.4.1](https://github.com/Fablic/fablicop/tree/v1.4.1) (2022-06-28)
28
+
29
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.0...v1.4.1)
6
30
 
7
31
  **Closed issues:**
8
32
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![fablicop](https://img.shields.io/gem/v/fablicop?label=fablicop)
1
+ <a href="https://rubygems.org/gems/fablicop"><img alt="fablicop" src="https://img.shields.io/gem/v/fablicop"></a>
2
2
 
3
3
  # fablicop
4
4
 
@@ -51,9 +51,9 @@ Style/TrailingCommaInHashLiteral:
51
51
  Style/TrailingCommaInArguments:
52
52
  EnforcedStyleForMultiline: comma
53
53
 
54
- # We sometimes omit the top-level documentation for classes/modules.
54
+ # We learned documentation is important.
55
55
  Style/Documentation:
56
- Enabled: false
56
+ Enabled: true
57
57
 
58
58
  # We sometimes want to use `self` anyway.
59
59
  Style/RedundantSelf:
@@ -207,40 +207,38 @@ Lint/ParenthesesAsGroupedExpression:
207
207
 
208
208
  ##################### Metrics ##################################
209
209
 
210
- # There is something wrong with more than 20 lines aside from migration files.
210
+ Metrics/AbcSize:
211
+ Enabled: false
212
+
213
+ Metrics/BlockLength:
214
+ Enabled: false
215
+
216
+ Metrics/ClassLength:
217
+ Enabled: false
218
+
219
+ Metrics/CyclomaticComplexity:
220
+ Enabled: false
221
+
211
222
  Metrics/MethodLength:
212
- Max: 20
213
- Exclude:
214
- - "db/migrate/*.rb"
223
+ Enabled: false
224
+
225
+ Metrics/ModuleLength:
226
+ Enabled: false
215
227
 
216
- # We want to measure this metrics without keyword arguments.
217
228
  Metrics/ParameterLists:
218
229
  CountKeywordArgs: false
219
230
 
220
- Metrics/BlockLength:
221
- Max: 100
222
- Exclude:
223
- - "spec/**/*.rb"
224
- - "test/**/*.rb"
225
- - "app/admin/*.rb"
226
- - "config/**/*.rb"
227
-
228
- # We discussed internally about this parameter and decided to follow this configuration.
229
- # https://github.com/onk/onkcop/blob/8066859d3d00328146c1da9e57bdd4a951974ef2/config/rubocop.yml#L113-L116
230
- Metrics/AbcSize:
231
- Max: 20
232
- Exclude:
233
- - "test/**/*.rb"
234
-
235
- Metrics/ClassLength:
236
- Exclude:
237
- - "test/**/*.rb"
231
+ Metrics/PerceivedComplexity:
232
+ Enabled: false
238
233
 
239
234
  # Does the variable name for an exception object really matter?
240
235
  # There are many things to think about before taking care of it.
241
236
  Naming/RescuedExceptionsVariableName:
242
237
  Enabled: false
243
238
 
239
+ Naming/VariableNumber:
240
+ Enabled: false
241
+
244
242
  ##################### RSpec ##################################
245
243
 
246
244
  # disabling to not to show errors if there is no when/with/without in the context
data/lib/fablicop/cli.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'fileutils'
4
4
 
5
5
  module Fablicop
6
+ # CLI handles command-line inputs.
6
7
  class CLI
7
8
  def self.start(args)
8
9
  action_name = retrieve_command_name(args)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fablicop
4
- VERSION = '1.4.1'
4
+ VERSION = '1.7.0'
5
5
  end
data/lib/fablicop.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'fablicop/cli'
4
4
  require 'fablicop/version'
5
5
 
6
+ # Rakuma's RuboCop configuration set.
6
7
  module Fablicop
7
8
  # Your code goes here...
8
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fablicop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tommy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-06-28 00:00:00.000000000 Z
13
+ date: 2022-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop