skeptic 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rvmrc +1 -1
- data/CHANGELOG.md +5 -0
- data/README.markdown +8 -0
- data/VERSION +1 -1
- data/lib/skeptic/rules/spaces_around_operators.rb +6 -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: 1ecb4e277ae7de09db6fafd6d57fa052ad0f9d15
|
4
|
+
data.tar.gz: 096d5dbf48cd10dc32b6edfae84a508e72dc5de4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 628161c143ea0895973ed35be673a99338dc03fc5440110aed9c8c5fa00bcd04db84ca1cb0097bd8b00ae475feb208c847e06069de73a1c87de119cd07dc45c3
|
7
|
+
data.tar.gz: 9d6c7c82d666b21f944dbe84b2ac9a3deac334b6aab8d9eeb07a21a26b38b6d128d10651cbb4f0a5c58a9b9a8fe8ab559577618bed2155e246aa4969d7e66553
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm --create
|
1
|
+
rvm --create 1.9.3@skeptic
|
data/CHANGELOG.md
CHANGED
data/README.markdown
CHANGED
@@ -14,10 +14,18 @@ Make sure that you have the `aspell` package installed in your system, along wit
|
|
14
14
|
|
15
15
|
brew install aspell
|
16
16
|
|
17
|
+
You may have to set the following ruby ENV variables. You can do this by adding them to your shell initialization file.
|
18
|
+
|
19
|
+
export LANGUAGE=en_US.UTF-8
|
20
|
+
export LC_CTYPE=en_US.UTF-8
|
21
|
+
export LC_ALL=en_US.UTF-8
|
22
|
+
|
17
23
|
On other Linux/Unix distributions, you are free to use a package manager or another installation method of choice.
|
18
24
|
|
19
25
|
For Windows systems, check out [GNU Aspell for Win32](http://aspell.net/win32/). Install Aspell using the "Full Installer" linked in that page, then locate `aspell-15.dll` in the installation and copy it somewhere in your `PATH` as `aspell.dll`.
|
20
26
|
|
27
|
+
**A lot of people miss that**. You need to install an english dictionary from the list in the aspell home page(precompiled dictionaries section). Otherwise aspell will crash with segmentation fault if you try to use the `english-words-for-names' check.
|
28
|
+
|
21
29
|
## Rules
|
22
30
|
|
23
31
|
Skeptic checks if the code complies to a number of rules and reports the violations. Here is a list of the rules:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -81,6 +81,12 @@ module Skeptic
|
|
81
81
|
mark_special_tokens symbol_location
|
82
82
|
when :vcall, :var_ref
|
83
83
|
mark_special_tokens block.last.last
|
84
|
+
when :call
|
85
|
+
token = block
|
86
|
+
while token.first == :call
|
87
|
+
token = token[1]
|
88
|
+
end
|
89
|
+
mark_special_tokens token.last.last
|
84
90
|
end
|
85
91
|
end
|
86
92
|
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.9 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.9"
|
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 = "2014-10-
|
14
|
+
s.date = "2014-10-24"
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kanev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|