fablicop 1.3.0 → 1.5.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/.github/workflows/changelog.yml +29 -0
- data/CHANGELOG.md +85 -2
- data/README.md +1 -1
- data/config/.base_rubocop.yml +32 -26
- data/lib/fablicop/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fd914960f40f459282e9c8a408f1b7d0a313888f1286e0ab81392f68c0ea4e1
|
|
4
|
+
data.tar.gz: 10e8ddfbb132085e5ece33be46b00ec7f3695ec551c8ca856f2b30152fbb196d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdb9a76a7d9b92b240d240661abc1d6ec96f5b6caa7e81d94e586e6d9c490b07d4e3858b5eff16a7504bf03fa24c9530f05a267e7421115895c6d5991c46979a
|
|
7
|
+
data.tar.gz: c8394f80ad72d1bde92267e925c893a8d9b0dad8cbe9244b6f3cc005be18e37891b0854207a1339b489c87dc5b8ab32d620a675bbc989fd84a8d44a977910529
|
|
@@ -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,11 +2,94 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased](https://github.com/Fablic/fablicop/tree/HEAD)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.
|
|
5
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.1...HEAD)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Disable Metrics aside from NestedBlocks [\#83](https://github.com/Fablic/fablicop/pull/83) ([DaisukeHirabayashi](https://github.com/DaisukeHirabayashi))
|
|
10
|
+
|
|
11
|
+
## [v1.4.1](https://github.com/Fablic/fablicop/tree/v1.4.1) (2022-06-28)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.4.0...v1.4.1)
|
|
14
|
+
|
|
15
|
+
**Closed issues:**
|
|
16
|
+
|
|
17
|
+
- Disable Style/NumericPredicate [\#79](https://github.com/Fablic/fablicop/issues/79)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Disable Style/NumericPredicate [\#80](https://github.com/Fablic/fablicop/pull/80) ([sourcewc](https://github.com/sourcewc))
|
|
22
|
+
|
|
23
|
+
## [v1.4.0](https://github.com/Fablic/fablicop/tree/v1.4.0) (2022-04-27)
|
|
24
|
+
|
|
25
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.3.0...v1.4.0)
|
|
26
|
+
|
|
27
|
+
**Merged pull requests:**
|
|
28
|
+
|
|
29
|
+
- Disable Style/NumericLiterals and Style/IfUnlessModifier [\#76](https://github.com/Fablic/fablicop/pull/76) ([yykamei](https://github.com/yykamei))
|
|
30
|
+
- Disable RSpec/DescribedClass [\#75](https://github.com/Fablic/fablicop/pull/75) ([yykamei](https://github.com/yykamei))
|
|
31
|
+
|
|
32
|
+
## [v1.3.0](https://github.com/Fablic/fablicop/tree/v1.3.0) (2022-04-25)
|
|
33
|
+
|
|
34
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.1...v1.3.0)
|
|
35
|
+
|
|
36
|
+
**Merged pull requests:**
|
|
37
|
+
|
|
38
|
+
- 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))
|
|
6
39
|
|
|
7
40
|
## [v1.2.1](https://github.com/Fablic/fablicop/tree/v1.2.1) (2022-04-15)
|
|
8
41
|
|
|
9
42
|
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.0...v1.2.1)
|
|
10
43
|
|
|
11
|
-
|
|
44
|
+
**Closed issues:**
|
|
45
|
+
|
|
46
|
+
- Change RSpec/ExampleLength MAX value from 5 -\> 7 [\#69](https://github.com/Fablic/fablicop/issues/69)
|
|
47
|
+
- Disable RSpec/NamedSubject [\#68](https://github.com/Fablic/fablicop/issues/68)
|
|
48
|
+
- test [\#64](https://github.com/Fablic/fablicop/issues/64)
|
|
49
|
+
- Disable to RSpec/LetSetup [\#62](https://github.com/Fablic/fablicop/issues/62)
|
|
50
|
+
|
|
51
|
+
**Merged pull requests:**
|
|
52
|
+
|
|
53
|
+
- Replace `be nil` with `be_nil` [\#73](https://github.com/Fablic/fablicop/pull/73) ([yykamei](https://github.com/yykamei))
|
|
54
|
+
- Add rubygems\_mfa\_required in gemspec [\#72](https://github.com/Fablic/fablicop/pull/72) ([yykamei](https://github.com/yykamei))
|
|
55
|
+
- 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))
|
|
12
56
|
- disable `RSpec/ExampleLength` and `RSpec/NamedSubject` [\#70](https://github.com/Fablic/fablicop/pull/70) ([tana2034](https://github.com/tana2034))
|
|
57
|
+
- Bump actions/checkout from 2 to 3 [\#65](https://github.com/Fablic/fablicop/pull/65) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
58
|
+
|
|
59
|
+
## [v1.2.0](https://github.com/Fablic/fablicop/tree/v1.2.0) (2021-12-23)
|
|
60
|
+
|
|
61
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.2...v1.2.0)
|
|
62
|
+
|
|
63
|
+
**Merged pull requests:**
|
|
64
|
+
|
|
65
|
+
- Added Configuration to ignore context errors [\#59](https://github.com/Fablic/fablicop/pull/59) ([taheryasir](https://github.com/taheryasir))
|
|
66
|
+
|
|
67
|
+
## [v1.1.2](https://github.com/Fablic/fablicop/tree/v1.1.2) (2021-09-27)
|
|
68
|
+
|
|
69
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.1...v1.1.2)
|
|
70
|
+
|
|
71
|
+
**Merged pull requests:**
|
|
72
|
+
|
|
73
|
+
- Set Max: 20 for Metrics/AbcSize [\#55](https://github.com/Fablic/fablicop/pull/55) ([yykamei](https://github.com/yykamei))
|
|
74
|
+
- Add dependabot.yml [\#52](https://github.com/Fablic/fablicop/pull/52) ([yykamei](https://github.com/yykamei))
|
|
75
|
+
|
|
76
|
+
## [v1.1.1](https://github.com/Fablic/fablicop/tree/v1.1.1) (2021-09-01)
|
|
77
|
+
|
|
78
|
+
[Full Changelog](https://github.com/Fablic/fablicop/compare/v1.1.0...v1.1.1)
|
|
79
|
+
|
|
80
|
+
**Fixed bugs:**
|
|
81
|
+
|
|
82
|
+
- Configuration is incompatible with fablicop code [\#45](https://github.com/Fablic/fablicop/issues/45)
|
|
83
|
+
|
|
84
|
+
**Merged pull requests:**
|
|
85
|
+
|
|
86
|
+
- Fix RuboCop violations [\#51](https://github.com/Fablic/fablicop/pull/51) ([yykamei](https://github.com/yykamei))
|
|
87
|
+
- Add tests for Fablicop::CLI [\#50](https://github.com/Fablic/fablicop/pull/50) ([yykamei](https://github.com/yykamei))
|
|
88
|
+
- Enable rubocop-rspec [\#48](https://github.com/Fablic/fablicop/pull/48) ([yykamei](https://github.com/yykamei))
|
|
89
|
+
- Run CI in mulitple Ruby versions [\#47](https://github.com/Fablic/fablicop/pull/47) ([yykamei](https://github.com/yykamei))
|
|
90
|
+
- Translate comments in English [\#46](https://github.com/Fablic/fablicop/pull/46) ([yykamei](https://github.com/yykamei))
|
|
91
|
+
- Remove unnecessary comments from the template [\#44](https://github.com/Fablic/fablicop/pull/44) ([yykamei](https://github.com/yykamei))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
data/config/.base_rubocop.yml
CHANGED
|
@@ -96,10 +96,13 @@ Style/ClassAndModuleChildren:
|
|
|
96
96
|
- "test/**/*.rb"
|
|
97
97
|
- "spec/**/*.rb"
|
|
98
98
|
|
|
99
|
-
#
|
|
99
|
+
# Sometimes, 1000 is better than 1_000. Especially, it's useful to run grep(1) for searching `1000`.
|
|
100
100
|
Style/NumericLiterals:
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
Enabled: false
|
|
102
|
+
|
|
103
|
+
# foo.zero? don't care nil case, we should avoid undefined method risk
|
|
104
|
+
Style/NumericPredicate:
|
|
105
|
+
Enabled: false
|
|
103
106
|
|
|
104
107
|
# We don't care which we use: #yield_self or #then
|
|
105
108
|
Style/ObjectThen:
|
|
@@ -109,6 +112,10 @@ Style/ObjectThen:
|
|
|
109
112
|
Style/FetchEnvVar:
|
|
110
113
|
Enabled: false
|
|
111
114
|
|
|
115
|
+
# We don't care which style we should use.
|
|
116
|
+
Style/IfUnlessModifier:
|
|
117
|
+
Enabled: false
|
|
118
|
+
|
|
112
119
|
##################### Layout ##################################
|
|
113
120
|
# We sometimes want to put multiple spaces before arguments.
|
|
114
121
|
Layout/SpaceBeforeFirstArg:
|
|
@@ -200,34 +207,29 @@ Lint/ParenthesesAsGroupedExpression:
|
|
|
200
207
|
|
|
201
208
|
##################### Metrics ##################################
|
|
202
209
|
|
|
203
|
-
|
|
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
|
+
|
|
204
222
|
Metrics/MethodLength:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
223
|
+
Enabled: false
|
|
224
|
+
|
|
225
|
+
Metrics/ModuleLength:
|
|
226
|
+
Enabled: false
|
|
208
227
|
|
|
209
|
-
# We want to measure this metrics without keyword arguments.
|
|
210
228
|
Metrics/ParameterLists:
|
|
211
229
|
CountKeywordArgs: false
|
|
212
230
|
|
|
213
|
-
Metrics/
|
|
214
|
-
|
|
215
|
-
Exclude:
|
|
216
|
-
- "spec/**/*.rb"
|
|
217
|
-
- "test/**/*.rb"
|
|
218
|
-
- "app/admin/*.rb"
|
|
219
|
-
- "config/**/*.rb"
|
|
220
|
-
|
|
221
|
-
# We discussed internally about this parameter and decided to follow this configuration.
|
|
222
|
-
# https://github.com/onk/onkcop/blob/8066859d3d00328146c1da9e57bdd4a951974ef2/config/rubocop.yml#L113-L116
|
|
223
|
-
Metrics/AbcSize:
|
|
224
|
-
Max: 20
|
|
225
|
-
Exclude:
|
|
226
|
-
- "test/**/*.rb"
|
|
227
|
-
|
|
228
|
-
Metrics/ClassLength:
|
|
229
|
-
Exclude:
|
|
230
|
-
- "test/**/*.rb"
|
|
231
|
+
Metrics/PerceivedComplexity:
|
|
232
|
+
Enabled: false
|
|
231
233
|
|
|
232
234
|
# Does the variable name for an exception object really matter?
|
|
233
235
|
# There are many things to think about before taking care of it.
|
|
@@ -247,3 +249,7 @@ RSpec/NamedSubject:
|
|
|
247
249
|
# because response validation in `request spec` is expected to result in large rows
|
|
248
250
|
RSpec/ExampleLength:
|
|
249
251
|
Enabled: false
|
|
252
|
+
|
|
253
|
+
# We don't care about whether using `described_class` or not.
|
|
254
|
+
RSpec/DescribedClass:
|
|
255
|
+
Enabled: false
|
data/lib/fablicop/version.rb
CHANGED
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
|
+
version: 1.5.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-
|
|
13
|
+
date: 2022-07-21 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"
|