Merge pull request #51 from tomwilkie/lint

Add lint script, run in circle ci.
This commit is contained in:
Tom Wilkie
2015-05-19 15:00:36 +02:00
8 changed files with 102 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ func (m *cgroupMapper) Map(pid uint) (string, error) {
}
func (m *cgroupMapper) loop(d time.Duration) {
for _ = range time.Tick(d) {
for range time.Tick(d) {
m.update()
}
}

View File

@@ -38,14 +38,14 @@ var (
fixProcessPIDB = uint(4243)
fixConnections = []procspy.Connection{
procspy.Connection{
{
Transport: "tcp",
LocalAddress: fixLocalAddress,
LocalPort: fixLocalPort,
RemoteAddress: fixRemoteAddress,
RemotePort: fixRemotePort,
},
procspy.Connection{
{
Transport: "tcp",
LocalAddress: fixLocalAddress,
LocalPort: fixLocalPort,
@@ -55,7 +55,7 @@ var (
}
fixConnectionsWithProcesses = []procspy.Connection{
procspy.Connection{
{
Transport: "tcp",
LocalAddress: fixLocalAddress,
LocalPort: fixLocalPort,
@@ -66,7 +66,7 @@ var (
Name: fixProcessName,
},
},
procspy.Connection{
{
Transport: "tcp",
LocalAddress: fixLocalAddress,
LocalPort: fixLocalPort,