fablicop 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: c18a179d1a9561baecc377d75c37c2411bbf3e62c574c8d34550745f467ae24e
4
- data.tar.gz: 70209ca3b77e0ee5007a30361538f7387ae5b07fa14cb42f6c7939123975e47c
3
+ metadata.gz: 3009bbd7fcdc4b17292c8cf0aad70726ab589bc517761f3e6153229217780258
4
+ data.tar.gz: 70f85187231e6cc60ffe4f917c5d16f285d629e3a78bdefab0279c37de1620a9
5
5
  SHA512:
6
- metadata.gz: 4371dcf93f67af17574377009d5c0f0aedaa3edcefa24511605fd5866494f08fc7b5fa09f68e130972b3956dea9b4638a95c672d443f77a887dbd921baf59b35
7
- data.tar.gz: 5f65be5e687ec38f54887676608344c0d44975a7d09b3be34a5ad636f3b011a3a087b0a8776b3bf56cbbd04ccaccca389627bb8e24041ded9978e720d52f17dc
6
+ metadata.gz: 7e6b3d2d17bcf9e6cd99636ce1a62b0135968c35ee0d40e401fe370d4106482139c2205a54686c86b3798f4437e338a7e94581e2f5f9b071172a975790b5caec
7
+ data.tar.gz: 7c8a089dd68490cad6ea5fa0b53f86189b171f193e93dc5760918635941ef47e0ff98c3e089cbaf04c28aa9a5961396c7a8f660eb3640551ac6f24e6ba7a0e4a
@@ -0,0 +1,29 @@
1
+ name: Changelog
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ workflow_dispatch:
7
+ jobs:
8
+ changelog:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: yykamei/actions-date@main
13
+ id: date
14
+ - uses: yykamei/actions-update-changelog@main
15
+ with:
16
+ since-tag: v1.1.0
17
+ - uses: yykamei/actions-git-push@main
18
+ with:
19
+ commit-message: Update CHANGELOG.md
20
+ branch: update-changelog-${{ steps.date.outputs.date }}
21
+ - uses: yykamei/actions-gh-pr-create@main
22
+ with:
23
+ branch: update-changelog-${{ steps.date.outputs.date }}
24
+ title: Update CHANGELOG.md
25
+ label: chore
26
+ body: |
27
+ *This pull request was automatically created to make CHANGELOG.md the latest*.
28
+
29
+ Check the files changes and merge if the changes make sense.
data/CHANGELOG.md CHANGED
@@ -2,13 +2,102 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/Fablic/fablicop/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.1...HEAD)
5
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.5.0...HEAD)
6
6
 
7
+ **Merged pull requests:**
8
+
9
+ - Enable `Style/Documentation` [\#86](https://github.com/Fablic/fablicop/pull/86) ([yykamei](https://github.com/yykamei))
10
+
11
+ ## [v1.5.0](https://github.com/Fablic/fablicop/tree/v1.5.0) (2022-07-21)
12
+
13
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.1...v1.5.0)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Disable Metrics aside from NestedBlocks [\#83](https://github.com/Fablic/fablicop/pull/83) ([DaisukeHirabayashi](https://github.com/DaisukeHirabayashi))
18
+
19
+ ## [v1.4.1](https://github.com/Fablic/fablicop/tree/v1.4.1) (2022-06-28)
20
+
21
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.0...v1.4.1)
22
+
23
+ **Closed issues:**
24
+
25
+ - Disable Style/NumericPredicate [\#79](https://github.com/Fablic/fablicop/issues/79)
26
+
27
+ **Merged pull requests:**
28
+
29
+ - Disable Style/NumericPredicate [\#80](https://github.com/Fablic/fablicop/pull/80) ([sourcewc](https://github.com/sourcewc))
30
+
31
+ ## [v1.4.0](https://github.com/Fablic/fablicop/tree/v1.4.0) (2022-04-27)
32
+
33
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.3.0...v1.4.0)
34
+
35
+ **Merged pull requests:**
36
+
37
+ - Disable Style/NumericLiterals and Style/IfUnlessModifier [\#76](https://github.com/Fablic/fablicop/pull/76) ([yykamei](https://github.com/yykamei))
7
38
  - Disable RSpec/DescribedClass [\#75](https://github.com/Fablic/fablicop/pull/75) ([yykamei](https://github.com/yykamei))
8
39
 
40
+ ## [v1.3.0](https://github.com/Fablic/fablicop/tree/v1.3.0) (2022-04-25)
41
+
42
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.1...v1.3.0)
43
+
44
+ **Merged pull requests:**
45
+
46
+ - Update rubocop requirement from \>= 1.14, \< 1.28 to \>= 1.14, \< 1.29 [\#74](https://github.com/Fablic/fablicop/pull/74) ([dependabot[bot]](https://github.com/apps/dependabot))
47
+
9
48
  ## [v1.2.1](https://github.com/Fablic/fablicop/tree/v1.2.1) (2022-04-15)
10
49
 
11
50
  [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.0...v1.2.1)
12
51
 
13
- - Update rubocop requirement from ~> 1.14.0 to >= 1.14, < 1.28 [\#71](https://github.com/Fablic/fablicop/pull/71) ([dependabot](https://github.com/apps/dependabot))
52
+ **Closed issues:**
53
+
54
+ - Change RSpec/ExampleLength MAX value from 5 -\> 7 [\#69](https://github.com/Fablic/fablicop/issues/69)
55
+ - Disable RSpec/NamedSubject [\#68](https://github.com/Fablic/fablicop/issues/68)
56
+ - test [\#64](https://github.com/Fablic/fablicop/issues/64)
57
+ - Disable to RSpec/LetSetup [\#62](https://github.com/Fablic/fablicop/issues/62)
58
+
59
+ **Merged pull requests:**
60
+
61
+ - Replace `be nil` with `be_nil` [\#73](https://github.com/Fablic/fablicop/pull/73) ([yykamei](https://github.com/yykamei))
62
+ - Add rubygems\_mfa\_required in gemspec [\#72](https://github.com/Fablic/fablicop/pull/72) ([yykamei](https://github.com/yykamei))
63
+ - Update rubocop requirement from ~\> 1.14.0 to \>= 1.14, \< 1.28 [\#71](https://github.com/Fablic/fablicop/pull/71) ([dependabot[bot]](https://github.com/apps/dependabot))
14
64
  - disable `RSpec/ExampleLength` and `RSpec/NamedSubject` [\#70](https://github.com/Fablic/fablicop/pull/70) ([tana2034](https://github.com/tana2034))
65
+ - Bump actions/checkout from 2 to 3 [\#65](https://github.com/Fablic/fablicop/pull/65) ([dependabot[bot]](https://github.com/apps/dependabot))
66
+
67
+ ## [v1.2.0](https://github.com/Fablic/fablicop/tree/v1.2.0) (2021-12-23)
68
+
69
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.2...v1.2.0)
70
+
71
+ **Merged pull requests:**
72
+
73
+ - Added Configuration to ignore context errors [\#59](https://github.com/Fablic/fablicop/pull/59) ([taheryasir](https://github.com/taheryasir))
74
+
75
+ ## [v1.1.2](https://github.com/Fablic/fablicop/tree/v1.1.2) (2021-09-27)
76
+
77
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.1...v1.1.2)
78
+
79
+ **Merged pull requests:**
80
+
81
+ - Set Max: 20 for Metrics/AbcSize [\#55](https://github.com/Fablic/fablicop/pull/55) ([yykamei](https://github.com/yykamei))
82
+ - Add dependabot.yml [\#52](https://github.com/Fablic/fablicop/pull/52) ([yykamei](https://github.com/yykamei))
83
+
84
+ ## [v1.1.1](https://github.com/Fablic/fablicop/tree/v1.1.1) (2021-09-01)
85
+
86
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.0...v1.1.1)
87
+
88
+ **Fixed bugs:**
89
+
90
+ - Configuration is incompatible with fablicop code [\#45](https://github.com/Fablic/fablicop/issues/45)
91
+
92
+ **Merged pull requests:**
93
+
94
+ - Fix RuboCop violations [\#51](https://github.com/Fablic/fablicop/pull/51) ([yykamei](https://github.com/yykamei))
95
+ - Add tests for Fablicop::CLI [\#50](https://github.com/Fablic/fablicop/pull/50) ([yykamei](https://github.com/yykamei))
96
+ - Enable rubocop-rspec [\#48](https://github.com/Fablic/fablicop/pull/48) ([yykamei](https://github.com/yykamei))
97
+ - Run CI in mulitple Ruby versions [\#47](https://github.com/Fablic/fablicop/pull/47) ([yykamei](https://github.com/yykamei))
98
+ - Translate comments in English [\#46](https://github.com/Fablic/fablicop/pull/46) ([yykamei](https://github.com/yykamei))
99
+ - Remove unnecessary comments from the template [\#44](https://github.com/Fablic/fablicop/pull/44) ([yykamei](https://github.com/yykamei))
100
+
101
+
102
+
103
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
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:
@@ -100,6 +100,10 @@ Style/ClassAndModuleChildren:
100
100
  Style/NumericLiterals:
101
101
  Enabled: false
102
102
 
103
+ # foo.zero? don't care nil case, we should avoid undefined method risk
104
+ Style/NumericPredicate:
105
+ Enabled: false
106
+
103
107
  # We don't care which we use: #yield_self or #then
104
108
  Style/ObjectThen:
105
109
  Enabled: false
@@ -203,34 +207,29 @@ Lint/ParenthesesAsGroupedExpression:
203
207
 
204
208
  ##################### Metrics ##################################
205
209
 
206
- # 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
+
207
222
  Metrics/MethodLength:
208
- Max: 20
209
- Exclude:
210
- - "db/migrate/*.rb"
223
+ Enabled: false
224
+
225
+ Metrics/ModuleLength:
226
+ Enabled: false
211
227
 
212
- # We want to measure this metrics without keyword arguments.
213
228
  Metrics/ParameterLists:
214
229
  CountKeywordArgs: false
215
230
 
216
- Metrics/BlockLength:
217
- Max: 100
218
- Exclude:
219
- - "spec/**/*.rb"
220
- - "test/**/*.rb"
221
- - "app/admin/*.rb"
222
- - "config/**/*.rb"
223
-
224
- # We discussed internally about this parameter and decided to follow this configuration.
225
- # https://github.com/onk/onkcop/blob/8066859d3d00328146c1da9e57bdd4a951974ef2/config/rubocop.yml#L113-L116
226
- Metrics/AbcSize:
227
- Max: 20
228
- Exclude:
229
- - "test/**/*.rb"
230
-
231
- Metrics/ClassLength:
232
- Exclude:
233
- - "test/**/*.rb"
231
+ Metrics/PerceivedComplexity:
232
+ Enabled: false
234
233
 
235
234
  # Does the variable name for an exception object really matter?
236
235
  # There are many things to think about before taking care of it.
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.0'
4
+ VERSION = '1.6.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.0
4
+ version: 1.6.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-04-27 00:00:00.000000000 Z
13
+ date: 2022-07-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -127,6 +127,7 @@ extensions: []
127
127
  extra_rdoc_files: []
128
128
  files:
129
129
  - ".github/dependabot.yml"
130
+ - ".github/workflows/changelog.yml"
130
131
  - ".github/workflows/run-ci.yml"
131
132
  - ".gitignore"
132
133
  - ".rspec"