rubocop-semantics 1.0.0 → 1.1.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: 30fa62f94179a0f55677ebc0b0cd6b9b891396306c9fabb7e65daf3d2fdc672d
4
- data.tar.gz: 3c9fa227b9e108f21fe4feaa9a33d70e1826facb7b6f814f112a2ba766f7da4c
3
+ metadata.gz: ed2a92444fc770dbdbd3389bfc82b652099702d683821340f89213c944396c65
4
+ data.tar.gz: e1cec123f7e2188a5a897ffbb1a066ce02622c37d0d195bd4f2798d530841ae0
5
5
  SHA512:
6
- metadata.gz: 3e7c7a85f0165c52618f61ea6e8e40529c831b0b118c50a43a0fcd7c5ced8ff4efcd0c2b169f4b73c2102e6686237dc45e59a2bdc619864e5ce2785a1f94467d
7
- data.tar.gz: 7bf18383844fb804ec55b9e8a5f61043c5cc83dc3c9f2f90cca09b30794872b79d7c92297b7f8b71c61c7e138b5f1b1356110ff3c97b7e388fa9795a2a9d5d70
6
+ metadata.gz: e98a43cfc046df798b46ca47dacc9c9ea4f3170334c6337f6b62f5f8350604e7ae4617e1cb3bc1b06f80d22c0a66833a543c08f3b1005dc44c498be5a0b3a886
7
+ data.tar.gz: 522c056fac1fc4f6d51d866e4333d3979224d3c5b8a28f8b0b1c90f4232d2fc21d9bc2476b4313348ed118a0c5a347c85d88f7992b6995a1eb75be2ff97f4611
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Notable changes
4
4
 
5
+ ### 1.1.0 (2021-09-22)
6
+
7
+ - Added `scope` to meaningless variable names
8
+
5
9
  ### 1.0.0 (2021-08-06)
6
10
 
7
11
  - Initial release
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![RubyGems](https://img.shields.io/gem/v/rubocop-semantics?logo=rubygems&style=for-the-badge)](https://rubygems.org/gems/rubocop-semantics)
2
+ [![Travis CI](https://img.shields.io/travis/com/vassilevsky/rubocop-semantics?logo=travis&style=for-the-badge)](https://travis-ci.com/github/vassilevsky/rubocop-semantics)
3
+
1
4
  # RuboCop Semantics
2
5
 
3
6
  Checks for meaningless variable names in Ruby code. An extension for [RuboCop](https://rubocop.org).
@@ -27,6 +30,18 @@ require:
27
30
  - rubocop-semantics
28
31
  ```
29
32
 
33
+ ## Cops
34
+
35
+ Only one cop so far :)
36
+
37
+ ### Semantics/VariableName
38
+
39
+ Suggests to use a more descriptive name for a variable called `info`, `data`, etc.
40
+
41
+ app/lib/remote_csv_processor.rb:8:5: C: Semantics/VariableName: Use a more descriptive variable name.
42
+ data = csv.read
43
+ ^^^^
44
+
30
45
  ## Development
31
46
 
32
47
  After checking out the repo, run `bin/setup` to install dependencies.
@@ -19,6 +19,7 @@ module RuboCop
19
19
 
20
20
  data
21
21
  info
22
+ scope
22
23
  value
23
24
 
24
25
  ].freeze
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Semantics
5
- VERSION = "1.0.0"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-semantics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - i.vasilevskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop