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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +15 -0
- data/lib/rubocop/cop/semantics/variable_name.rb +1 -0
- data/lib/rubocop/semantics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed2a92444fc770dbdbd3389bfc82b652099702d683821340f89213c944396c65
|
4
|
+
data.tar.gz: e1cec123f7e2188a5a897ffbb1a066ce02622c37d0d195bd4f2798d530841ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98a43cfc046df798b46ca47dacc9c9ea4f3170334c6337f6b62f5f8350604e7ae4617e1cb3bc1b06f80d22c0a66833a543c08f3b1005dc44c498be5a0b3a886
|
7
|
+
data.tar.gz: 522c056fac1fc4f6d51d866e4333d3979224d3c5b8a28f8b0b1c90f4232d2fc21d9bc2476b4313348ed118a0c5a347c85d88f7992b6995a1eb75be2ff97f4611
|
data/CHANGELOG.md
CHANGED
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.
|
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.
|
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-
|
11
|
+
date: 2021-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|