rubocop-nosolosoftware 0.6.0 → 0.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: fb5d898222cca337d8a3119aec6ba9cc18f176c6f74833307192e21426cb5b8e
4
- data.tar.gz: 68c73a006a6ec77afccb43d997bba6074b06f801b85b213a47932aaeb217751c
3
+ metadata.gz: f1f256e884ae63111efa71f5c69acadd0caf7cb57d288a778824562d667c6059
4
+ data.tar.gz: b54431a2cd90b1287402bba7433c4f0a86690632192670c25247da5f60bae9fd
5
5
  SHA512:
6
- metadata.gz: 9efcc57f05e8918e961190a1953500880ef59927698aec9f4c9fe5c9ef949e70b71c5646fbf80a20ea9982a18d4d38339336599eb4a7a4e1fab9d6fcee0ea821
7
- data.tar.gz: f1bec6ecc3b4a1ee3d3811b9826fae7b874f7f16520572c50b9dcbc5f906bbeeaf40dd40daa4bf328188717b112de610591db7021c5b50add46c14d5d5c474f7
6
+ metadata.gz: 57a5ed7a613474b8820ef364a4a7cb08eb31a8e5e56d29a08a156f02bb845b146c8183037e7673f06a463d52e894f99e3b499df8e1160d52326c6ef1daf0b794
7
+ data.tar.gz: 9d36f3fd6cfbf65090562c1684e3796957cee41209c4f0d8d4d685ec76b55dac99b286c9d6a0ed1cbaa82afdac8daac0c71683f7990b09e5a1e0d3dd12257093
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.7.0 - 2020-08-03
9
+
10
+ ### Added
11
+ - Added rubocop-faker as new extension
12
+
13
+ ### Changed
14
+ - Updated all the extensions, and configured new rules
15
+
8
16
  ## 0.6.0 - 2020-07-13
9
17
 
10
18
  ### Added
data/README.md CHANGED
@@ -44,7 +44,7 @@ inherit_gem:
44
44
  - rubocop-rails.yml
45
45
  ```
46
46
 
47
- **Optional Rake and Rspec rules**:
47
+ **Optional Rake, Faker and Rspec rules**:
48
48
 
49
49
  ```yaml
50
50
  inherit_gem:
@@ -53,6 +53,7 @@ inherit_gem:
53
53
  - rubocop-rails.yml
54
54
  - rubocop-rake.yml
55
55
  - rubocop-rspec.yml
56
+ - rubocop-faker.yml
56
57
  ```
57
58
 
58
59
  **For Mongoid projects**:
@@ -64,6 +65,7 @@ inherit_gem:
64
65
  - rubocop-rails.yml
65
66
  - rubocop-rake.yml
66
67
  - rubocop-rspec.yml
68
+ - rubocop-faker.yml
67
69
  - rubocop-mongoid.yml
68
70
  ```
69
71
 
@@ -0,0 +1,5 @@
1
+ #
2
+ ## https://www.rubydoc.info/gems/rubocop-faker/
3
+ #
4
+
5
+ require: rubocop-faker
@@ -17,3 +17,7 @@ Lint/DeprecatedOpenSSLConstant:
17
17
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
18
18
  Lint/MixedRegexpCaptureTypes:
19
19
  Enabled: true
20
+
21
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateelsifcondition
22
+ Lint/DuplicateElsifCondition:
23
+ Enabled: true
@@ -49,3 +49,51 @@ Naming/FileName:
49
49
  Style/SymbolProc:
50
50
  Exclude:
51
51
  - "**/config/**/*.rb"
52
+
53
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactiverecordcallbacksorder
54
+ Rails/ActiveRecordCallbacksOrder:
55
+ Enabled: true
56
+
57
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsfindbyid
58
+ Rails/FindById:
59
+ Enabled: true
60
+
61
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsinquiry
62
+ Rails/Inquiry:
63
+ Enabled: true
64
+
65
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmailername
66
+ Rails/MailerName:
67
+ Enabled: true
68
+
69
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmatchroute
70
+ Rails/MatchRoute:
71
+ Enabled: true
72
+
73
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsnegateinclude
74
+ Rails/NegateInclude:
75
+ Enabled: true
76
+
77
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspick
78
+ Rails/Pluck:
79
+ Enabled: true
80
+
81
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspluckinwhere
82
+ Rails/PluckInWhere:
83
+ Enabled: true
84
+
85
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderinline
86
+ Rails/RenderInline:
87
+ Enabled: true
88
+
89
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderplaintext
90
+ Rails/RenderPlainText:
91
+ Enabled: true
92
+
93
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsshorti18n
94
+ Rails/ShortI18n:
95
+ Enabled: true
96
+
97
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereexists
98
+ Rails/WhereExists:
99
+ Enabled: true
@@ -65,3 +65,23 @@ Style/RedundantRegexpCharacterClass:
65
65
  # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpescape
66
66
  Style/RedundantRegexpEscape:
67
67
  Enabled: true
68
+
69
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion
70
+ Style/ArrayCoercion:
71
+ Enabled: true
72
+
73
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylecaselikeif
74
+ Style/CaseLikeIf:
75
+ Enabled: true
76
+
77
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashaslastarrayitem
78
+ Style/HashAsLastArrayItem:
79
+ Enabled: true
80
+
81
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashlikecase
82
+ Style/HashLikeCase:
83
+ Enabled: true
84
+
85
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfileextensioninrequire
86
+ Style/RedundantFileExtensionInRequire:
87
+ Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-nosolosoftware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Aranda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-13 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.83'
19
+ version: '0.88'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.83'
26
+ version: '0.88'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-faker
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-performance
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.5'
47
+ version: '1.7'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.5'
54
+ version: '1.7'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop-rails
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '2.5'
61
+ version: '2.7'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '2.5'
68
+ version: '2.7'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop-rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '1.39'
89
+ version: '1.42'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '1.39'
96
+ version: '1.42'
83
97
  description: ''
84
98
  email: jaranda@nosolosoftware.es
85
99
  executables: []
@@ -94,6 +108,7 @@ files:
94
108
  - rubocop-all.yml
95
109
  - rubocop-bundler.yml
96
110
  - rubocop-default.yml
111
+ - rubocop-faker.yml
97
112
  - rubocop-gemspec.yml
98
113
  - rubocop-layout.yml
99
114
  - rubocop-lint.yml
@@ -110,8 +125,8 @@ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
110
125
  licenses:
111
126
  - MIT
112
127
  metadata:
113
- source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.6.0
114
- changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.6.0/CHANGELOG.md
128
+ source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.7.0
129
+ changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.7.0/CHANGELOG.md
115
130
  homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
116
131
  post_install_message:
117
132
  rdoc_options: