forked from cerc-io/ipld-eth-server
293dd2e848
* Add vendor dir so builds dont require dep * Pin specific version go-eth version
26 lines
412 B
Awk
Executable File
26 lines
412 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
# Copyright (c) 2015 Arista Networks, Inc.
|
|
# Use of this source code is governed by the Apache License 2.0
|
|
# that can be found in the COPYING file.
|
|
|
|
BEGIN {
|
|
max = 100;
|
|
}
|
|
|
|
# Expand tabs to 4 spaces.
|
|
{
|
|
gsub(/\t/, " ");
|
|
}
|
|
|
|
length() > max {
|
|
errors++;
|
|
print FILENAME ":" FNR ": Line too long (" length() "/" max ")";
|
|
}
|
|
|
|
END {
|
|
if (errors >= 125) {
|
|
errors = 125;
|
|
}
|
|
exit errors;
|
|
}
|