skeptic 0.0.15 → 0.0.16
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/VERSION +1 -1
- data/lib/skeptic/rules/spaces_around_operators.rb +5 -0
- data/skeptic.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32730b6647f52795d7c20678e0026137e592af04
|
4
|
+
data.tar.gz: 12c7bdb4def24814422f7a4b941aad3f012ae699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b73349b63c10af9f7ef3402f7a0d4b8cfe8f0a2b2e701c473ae57f52b929fc9a0743a6f6d73ee4bd8ea05f9a588a5c413f0efa21b305f92b372abc8a8d8a9521
|
7
|
+
data.tar.gz: 02b98284899763efba4e877501f34df8c29242595a69ba29980a915ff3f88bf4d915a00ae9566942dcb29067e90af424c29985dedd091a10593ed45c1bf9be8a
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.16
|
@@ -71,6 +71,7 @@ module Skeptic
|
|
71
71
|
|
72
72
|
def no_spaces_on_right_of?(operator, neighbour)
|
73
73
|
neighbour.first[0] == operator.first[0] and
|
74
|
+
!double_negation_operator?(operator, neighbour) and
|
74
75
|
!RIGHT_LIMIT_TOKEN_TYPES.include?(neighbour[1]) and
|
75
76
|
!special_token?(neighbour)
|
76
77
|
end
|
@@ -79,6 +80,10 @@ module Skeptic
|
|
79
80
|
operator.last[0..1] == '..'
|
80
81
|
end
|
81
82
|
|
83
|
+
def double_negation_operator?(token, other)
|
84
|
+
token.last == '!' and other.last == '!'
|
85
|
+
end
|
86
|
+
|
82
87
|
def mark_special_tokens(*token_locations)
|
83
88
|
@special_tokens_locations.concat(token_locations)
|
84
89
|
end
|
data/skeptic.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: skeptic 0.0.
|
5
|
+
# stub: skeptic 0.0.16 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "skeptic"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.16"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Stefan Kanev"]
|
14
|
-
s.date = "2015-11-
|
14
|
+
s.date = "2015-11-21"
|
15
15
|
s.description = "An experimental, half-assed, bug-ridden and highly opinionated code analyzer."
|
16
16
|
s.email = "stefan.kanev@gmail.com"
|
17
17
|
s.executables = ["skeptic"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skeptic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kanev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|