Documentation
¶
Overview ¶
Package godot checks if comments contain a period at the end of the last sentence if needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Issue ¶ added in v0.4.0
Issue contains a description of linting error and a recommended replacement.
type Scope ¶ added in v1.0.0
type Scope string
Scope sets which comments should be checked.
const ( // DeclScope is for top level declaration comments. DeclScope Scope = "declarations" // TopLevelScope is for all top level comments. TopLevelScope Scope = "toplevel" // NoInlineScope is for all except inline comments. NoInlineScope Scope = "noinline" // AllScope is for all comments. AllScope Scope = "all" )
List of available check scopes.
type Settings ¶ added in v0.2.4
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 }
Settings contains linter settings.
Click to show internal directories.
Click to hide internal directories.