fdlint 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5010fb8a0b8b08e6b4ebd130f35c425d62cfef80
4
- data.tar.gz: d01fccdb793cbc4900f291c74599e2dfef319509
3
+ metadata.gz: a07da257ad62c2e77f07eeb999dec4de8b9139cf
4
+ data.tar.gz: f5d9fd3982ac1c432f7e783c1ba1efd9af32c2e0
5
5
  SHA512:
6
- metadata.gz: b21da480340bc0c23af7851ec02baf2b16e424fbc544e5da2ae963f32b5c0001ad4b54ca87a25db756321a5b88b179df025ee48d86d1de26efe118d255aef988
7
- data.tar.gz: 99aa6f8d89edabee672f97202ecfffbe359d88c1eeab7b9445e20006c3ab1b57263b64d7ac31193c343bb6da2a036c019b61a846213f79e8efbbe6257e3e6491
6
+ metadata.gz: a1301dd8314d612f5293f0a423de5a40345b8663415786fc72700848548de981a51016efaf955b58b280a8075e3bed0c07275ecffdc24857a901a2a506449f49
7
+ data.tar.gz: d9a10ec1cc20dea1325d5afc6d072fd240e8ecd7186b813922215b5ef642059bea9c270ff8ac60a624bdd8284e57d9c197c8d1245dc7d15feee403e054e101ae
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fdlint (0.2.0)
4
+ fdlint (0.2.1)
5
5
  colored (~> 1.2)
6
6
  gli (~> 2.9.0)
7
7
  string_utf8 (~> 0.1.1)
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
- fdlint -- 让前端code review更轻松
2
- =================================
1
+ ![fdlint-logo](http://fdlint.oss-cn-hangzhou.aliyuncs.com/fdlint-logo-white.png)
3
2
 
4
- ![fdlint-logo](http://fdlint.oss-cn-hangzhou.aliyuncs.com/fdlint-logo-white-small.png)
3
+ ## fdlint -- 让前端code review更轻松
5
4
 
6
5
  fdlint 是根据阿里巴巴前端开发checklist开发的自动代码扫描工具。
7
6
  可以扫描出前端程序中不符合开发规范的地方。
@@ -1,3 +1,3 @@
1
1
  module Fdlint
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -177,7 +177,7 @@ review( 'expr_literal_string' ) { |string|
177
177
  }
178
178
 
179
179
  review( 'statement' ) { |stat, source, file, parser|
180
- line = parser.scanned_source.lines.last
180
+ line = parser.scanned_source.lines.to_a.last
181
181
  if line =~ /^\t+/
182
182
  error '不要使用 tab 来表示缩进'
183
183
  elsif line =~ /^[ ]{1,3}\S/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - qhwa,bencode