Skip to content

Instantly share code, notes, and snippets.

@wind0r
Last active November 11, 2015 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wind0r/42f420cc9a98b36d14a0 to your computer and use it in GitHub Desktop.
Save wind0r/42f420cc9a98b36d14a0 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Packages from influxdb/influxdb/issues/4098
#PACKAGES=(client cluster cluster/internal cmd/influx cmd/influx_stress cmd/influxd cmd/influxd/backup cmd/influxd/help cmd/influxd/restore cmd/influxd/run cmd/influx_inspect importer/v8 influxql meta meta/internal monitor pkg/slices services/admin services/collectd services/collectd/test_client services/continuous_querier services/copier services/copier/internal services/graphite services/hh services/httpd services/opentsdb services/precreator services/retention services/snapshotter services/udp snapshot statik tcp tests/urlgen toml tsdb tsdb/engine tsdb/engine/b1 tsdb/engine/bz1 tsdb/engine/wal tsdb/internal uuid)
#All Packages
PACKAGES=$(find . -name '*.go' -print0 | xargs -0 -n1 dirname | sort --unique)
for pkg in ${PACKAGES[@]}; do
echo $pkg $(golint $pkg | wc -l)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment