Skip to content

Commit

Permalink
Remove unnecessary lint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gandarez committed Aug 28, 2023
1 parent 6c26669 commit 825b0e5
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion pkg/deps/c.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var cExcludeRegex = regexp.MustCompile(`(?i)^(stdio\.h|stdlib\.h|string\.h|time\.h)$`)

// StateC is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/csharp.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var csharpExcludeRegex = regexp.MustCompile(`(?i)^(system|microsoft)$`)

// StateCSharp is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var goExcludeRegex = regexp.MustCompile(`^"fmt"$`)

// StateGo is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/haxe.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var haxeExcludeRegex = regexp.MustCompile(`(?i)^haxe$`)

// StateHaxe is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var htmlDjangoPlaceholderRegex = regexp.MustCompile(`(?i)\{\{[^\}]+\}\}[/\\]?`)

// StateHTML is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/java.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var javaExcludeRegex = regexp.MustCompile(`(?i)^(java\..*|javax\..*)`)

// StateJava is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var javaScriptExtensionRegex = regexp.MustCompile(`\.\w{1,4}$`)

// StateJavaScript is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/kotlin.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var kotlinExcludeRegex = regexp.MustCompile(`(?i)^java\.`)

// StateKotlin is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/php.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var phpExcludeRegex = regexp.MustCompile(`(?i)(^app|app\.php)$`)

// StatePHP is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var pythonExcludeRegex = regexp.MustCompile(`(?i)^(os|sys|__[a-z]+__)$`)

// StatePython is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var swiftExcludeRegex = regexp.MustCompile(`(?i)^foundation$`)

// StateSwift is a token parsing state.
Expand Down
1 change: 0 additions & 1 deletion pkg/deps/vbnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/alecthomas/chroma/v2/lexers"
)

// nolint:gochecknoglobals
var vbnetExcludeRegex = regexp.MustCompile(`(?i)^(system|microsoft)$`)

// StateVbNet is a token parsing state.
Expand Down

0 comments on commit 825b0e5

Please sign in to comment.