chezmoi-ify

This commit is contained in:
Barak Michener 2024-05-18 18:27:41 -07:00
parent e04f3e0fb8
commit 30847ce7ab
13 changed files with 5859 additions and 0 deletions

22
bin/executable_golintc Normal file
View 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;