golint 0.0.2 → 0.0.3

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: 99aeb7a1e0d2754c3fddd1cb0b47d031f500d59b
4
- data.tar.gz: 8a0c9f63aa71e0467e1830a025c777d62bb765da
3
+ metadata.gz: 6347c183cc2e042c6b1258eabc58b3557605b331
4
+ data.tar.gz: e9e316f9468e4bcc023a9af683d3fd94b00bc6d4
5
5
  SHA512:
6
- metadata.gz: b7e55ec17dc9b33e113efd3a0274170303b2dea3c6651443970a3d24b309693e494ccddf08aed357bd01f56da18947fc2b5089e6d78bba5e36a8db10b6b1dd45
7
- data.tar.gz: 5983ac1ec23f485bfcf03df8e7d590af83ce580d4a2125934e85962507dd1a0002b6613d2dcc2ae73aa2cad7835fa2500ea8daca4934dac6369b90f29961cb08
6
+ metadata.gz: 87612e5a69d708ecd6813fc310c7a8edd5bff96a6c35bfa42bd9079e7e995e2335e534ad2a535b03c06ac4df592056f230aff00661e88c06d7a660040b439cdb
7
+ data.tar.gz: 42dd152717890fd6274beb1788aaa55c409fd066e722d3e90956202ad3d510dca2652ef8b044fee81b5e649a18d80f65f3f487cc2a95b771eb840f64b507a1fa
@@ -25,6 +25,8 @@ module Golint
25
25
  parse_matches(file.path, err)
26
26
  elsif out.size > 0
27
27
  parse_matches(file.path, out)
28
+ else
29
+ []
28
30
  end
29
31
  end
30
32
 
@@ -1,3 +1,3 @@
1
1
  module Golint
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -38,4 +38,10 @@ class TestGolint < MiniTest::Unit::TestCase
38
38
  assert_equal results[0].line, 1
39
39
  assert_equal results[0].comment, "expected 'package', found 'IDENT' item_id"
40
40
  end
41
+
42
+ def test_valid
43
+ results = Golint.lint("package main\nvar fooBar string")
44
+
45
+ assert_equal results.size, 0
46
+ end
41
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kir Shatrov