diff options
| author | Shulhan <ms@kilabit.info> | 2018-11-29 23:37:00 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-11-29 23:37:00 +0700 |
| commit | f33dae0d4bb73637ebae4ef55f1f4c25cb249b3e (patch) | |
| tree | 28b733a217564175767ab1013bf4e7169a2db346 /lib | |
| parent | ec41bcd967136a2cc778803e8288a067d98a4af1 (diff) | |
| download | pakakeh.go-f33dae0d4bb73637ebae4ef55f1f4c25cb249b3e.tar.xz | |
all: disable lint on functions that have cyclomatix complexity > 15
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/text/diff/diffinterface.go | 2 | ||||
| -rw-r--r-- | lib/websocket/handshake.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/text/diff/diffinterface.go b/lib/text/diff/diffinterface.go index 9940791a..c29a188f 100644 --- a/lib/text/diff/diffinterface.go +++ b/lib/text/diff/diffinterface.go @@ -227,7 +227,7 @@ func findLine(line text.Line, text text.Lines, startat int) ( // // Files compare two files. // -func Files(oldf, newf string, difflevel int) (diffs Data, e error) { +func Files(oldf, newf string, difflevel int) (diffs Data, e error) { // nolint oldlines, e := ReadLines(oldf) if e != nil { return diff --git a/lib/websocket/handshake.go b/lib/websocket/handshake.go index 09765681..ce6a280a 100644 --- a/lib/websocket/handshake.go +++ b/lib/websocket/handshake.go @@ -323,7 +323,7 @@ func (h *Handshake) headerValueContains(hv, sub []byte) bool { // // The minimum length of request without HTTP line is: 144 - 16 = 128 bytes. // -func (h *Handshake) Parse(req []byte) (err error) { +func (h *Handshake) Parse(req []byte) (err error) { // nolint if len(req) < 144 { err = ErrRequestLength return |
