Skip to content

Commit

Permalink
add in new python complexity and gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Apr 27, 2021
1 parent 67344f8 commit c8e8e57
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion languages.json
Expand Up @@ -4859,7 +4859,7 @@
"and ",
"and(",
"or ",
"or(",
"or("
],
"extensions": [
"py"
Expand Down
2 changes: 1 addition & 1 deletion processor/bloom.go
Expand Up @@ -29,7 +29,7 @@ func BloomHash(b byte) uint64 {
// filter.
var hash uint64
for i := uint64(0); i < 3; i++ {
n := k >> (i*8) & mask64
n := k >> (i * 8) & mask64
hash |= 1 << n
}

Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion processor/state_blank.go
@@ -1,6 +1,6 @@
package processor

type StateBlank struct {}
type StateBlank struct{}

func (state *StateBlank) String() string {
return "blank"
Expand Down
2 changes: 1 addition & 1 deletion processor/state_code.go
@@ -1,6 +1,6 @@
package processor

type StateCode struct {}
type StateCode struct{}

func (state *StateCode) String() string {
return "code"
Expand Down
2 changes: 1 addition & 1 deletion processor/state_comment_multi.go
@@ -1,7 +1,7 @@
package processor

type StateCommentMulti struct {
Stack [][]byte
Stack [][]byte
}

func (state *StateCommentMulti) String() string {
Expand Down
2 changes: 1 addition & 1 deletion processor/state_comment_single.go
@@ -1,6 +1,6 @@
package processor

type StateCommentSingle struct {}
type StateCommentSingle struct{}

func (state *StateCommentSingle) String() string {
return "comment"
Expand Down
4 changes: 2 additions & 2 deletions processor/state_docstring.go
Expand Up @@ -5,8 +5,8 @@ import (
)

type StateDocString struct {
End []byte
SkipEsc bool
End []byte
SkipEsc bool
}

func (state *StateDocString) String() string {
Expand Down
2 changes: 1 addition & 1 deletion processor/structs.go
Expand Up @@ -4,8 +4,8 @@ package processor

import (
"bytes"
"sync"
"hash"
"sync"
)

// Used by trie structure to store the types
Expand Down
2 changes: 1 addition & 1 deletion processor/workers.go
Expand Up @@ -252,7 +252,7 @@ func CountStats(fileJob *FileJob) {

// lineStart is only used to produce the line trace, so it's
// safe to update it inside the condition
lineStart = index+1
lineStart = index + 1
}

if fileJob.Callback != nil {
Expand Down

0 comments on commit c8e8e57

Please sign in to comment.