HairyFotr / linter

Static Analysis Compiler Plugin for Scala
Apache License 2.0
268 stars 34 forks source link

linting error on go source code #65

Closed flashpixx closed 4 years ago

flashpixx commented 4 years ago

I have got the following go function

import (
    "fmt"
    "github.com/northwesternmutual/grammes"
    "github.com/stretchr/testify/assert"
    "testing"
    "time"
)

func connect(t *testing.T) *grammes.Client {
    client, err := grammes.DialWithWebSocket("ws://localhost:8182", grammes.WithAuthUserPass("root", "root"), grammes.WithTimeout(time.Second))
    assert.NoError(t, err)
    return client
}

and I get the following linter error for the first function line with Google Style client, err := grammes.DialWithWebSocket("ws://localhost:8182", grammes.WithAuthUserPass("root", "root"), grammes.WithTimeout(time.Second)):

 13:73   error  '.W' should have one space.                    google.Spacing 
 13:91   error  Commas and periods go inside quotation marks.  google.Quotes  
 13:115  error  '.W' should have one space.                    google.Spacing 
 13:132  error  '.S' should have one space.                    google.Spacing

I assume that code lines are skipped.

flashpixx commented 4 years ago

Sorry this was the wrong issue tracker