Skip to content

Commit

Permalink
Change scope names and defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Nov 2, 2020
1 parent cc1247e commit 4e43c0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/godot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const usage = `Usage:
Options:
-c, --capital check that sentences start with a capital letter
-s, --scope set scope for check
decl - for top level declaration comments
top - for top level comments (default)
all - for all comments
declarations - for top level declaration comments (default)
toplevel - for top level comments
all - for all comments
-f, --fix fix issues, and print fixed version to stdout
-h, --help show this message
-v, --version show version
Expand Down Expand Up @@ -159,7 +159,7 @@ func readArgs() (args arguments, err error) {
}

if args.scope == "" {
args.scope = string(godot.TopLevelScope)
args.scope = string(godot.DeclScope)
}

if !args.help && !args.version && len(args.files) == 0 {
Expand Down
4 changes: 2 additions & 2 deletions settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ type Scope string
// List of available check scopes.
const (
// DeclScope is for top level declaration comments.
DeclScope Scope = "decl"
DeclScope Scope = "declarations"
// TopLevelScope is for all top level comments.
TopLevelScope Scope = "top"
TopLevelScope Scope = "toplevel"
// AllScope is for all comments.
AllScope Scope = "all"
)

0 comments on commit 4e43c0f

Please sign in to comment.