Skip to content

Commit fd008b2

Browse files
author
Denis Krivak
committed
Move position declaration to another file.
1 parent a43fe64 commit fd008b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

checks.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ var (
3131
endURL = regexp.MustCompile(`[a-z]+://[^\s]+$`)
3232
)
3333

34+
// position is a position inside a comment (might be multiline comment).
35+
type position struct {
36+
line int // starts at 1
37+
column int // starts at 1, byte count
38+
}
39+
3440
// checkComments checks every comment accordings to the rules from
3541
// `settings` argument.
3642
func checkComments(comments []comment, settings Settings) []Issue {

godot.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ type Issue struct {
2424
Replacement string
2525
}
2626

27-
// position is a position inside a comment (might be multiline comment).
28-
type position struct {
29-
line int // starts at 1
30-
column int // starts at 1, byte count
31-
}
32-
3327
// comment is an internal representation of AST comment entity with additional
3428
// data attached. The latter is used for creating a full replacement for
3529
// the line with issues.

0 commit comments

Comments
 (0)