summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mgechev/revive/lint/rule.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mgechev/revive/lint/rule.go')
-rw-r--r--vendor/github.com/mgechev/revive/lint/rule.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/github.com/mgechev/revive/lint/rule.go b/vendor/github.com/mgechev/revive/lint/rule.go
deleted file mode 100644
index 815abfdd88..0000000000
--- a/vendor/github.com/mgechev/revive/lint/rule.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package lint
-
-import (
- "go/token"
-)
-
-// DisabledInterval contains a single disabled interval and the associated rule name.
-type DisabledInterval struct {
- From token.Position
- To token.Position
- RuleName string
-}
-
-// Rule defines an abstract rule interaface
-type Rule interface {
- Name() string
- Apply(*File, Arguments) []Failure
-}
-
-// AbstractRule defines an abstract rule.
-type AbstractRule struct {
- Failures []Failure
-}
-
-// ToFailurePosition returns the failure position.
-func ToFailurePosition(start token.Pos, end token.Pos, file *File) FailurePosition {
- return FailurePosition{
- Start: file.ToPosition(start),
- End: file.ToPosition(end),
- }
-}