chezmoi-ify
This commit is contained in:
parent
e04f3e0fb8
commit
30847ce7ab
13 changed files with 5859 additions and 0 deletions
22
bin/executable_golintc
Normal file
22
bin/executable_golintc
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $a = join(" ", @ARGV);
|
||||
my $cmd = "golint " . $a;
|
||||
open(my $fh, '-|', $cmd)
|
||||
or die "Could not run golint";
|
||||
|
||||
my $cnt = 0;
|
||||
while (my $row = <$fh>) {
|
||||
chomp $row;
|
||||
if ($row !~ /should have comment or be unexported/) {
|
||||
print "$row\n";
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
if ($cnt > 0) {
|
||||
exit 1;
|
||||
}
|
||||
exit 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue