pre-commit 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ class ConsoleLog
25
25
  end
26
26
 
27
27
  def detected_bad_code?
28
- system("grep -qe \"console\\.log\" #{staged_files}")
28
+ system("grep -v \/\/ #{staged_files} | grep -qe \"console\\.log\"")
29
29
  end
30
30
 
31
31
  def instances_of_console_log_violations
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pre-commit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Shajith Chacko, Josh Lubaway
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-17 00:00:00 -07:00
13
+ date: 2011-04-21 00:00:00 -07:00
14
14
  default_executable: pre-commit
15
15
  dependencies: []
16
16