forked from tetafro/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.go
More file actions
29 lines (23 loc) · 712 Bytes
/
settings.go
File metadata and controls
29 lines (23 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package godot
// Settings contains linter settings.
type Settings struct {
// Which comments to check (top level declarations, top level, all).
Scope Scope
// Regexp for excluding particular comment lines from check.
Exclude []string
// Check periods at the end of sentences.
Period bool
// Check that first letter of each sentence is capital.
Capital bool
}
// Scope sets which comments should be checked.
type Scope string
// List of available check scopes.
const (
// DeclScope is for top level declaration comments.
DeclScope Scope = "declarations"
// TopLevelScope is for all top level comments.
TopLevelScope Scope = "toplevel"
// AllScope is for all comments.
AllScope Scope = "all"
)