Skip to content

Commit

Permalink
fix(lint): comments should end in a period (godot) (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani authored Jun 18, 2024
1 parent 81b8f94 commit 98d742f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ansicolors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package termenv

// ANSI color codes
// ANSI color codes.
const (
ANSIBlack ANSIColor = iota
ANSIRed
Expand Down
2 changes: 1 addition & 1 deletion color.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
ErrInvalidColor = errors.New("invalid color")
)

// Foreground and Background sequence codes
// Foreground and Background sequence codes.
const (
Foreground = "38"
Background = "48"
Expand Down
8 changes: 4 additions & 4 deletions profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
type Profile int

const (
// TrueColor, 24-bit color profile
// TrueColor, 24-bit color profile.
TrueColor = Profile(iota)
// ANSI256, 8-bit color profile
// ANSI256, 8-bit color profile.
ANSI256
// ANSI, 4-bit color profile
// ANSI, 4-bit color profile.
ANSI
// Ascii, uncolored profile
// Ascii, uncolored profile.
Ascii //nolint:revive
)

Expand Down
10 changes: 5 additions & 5 deletions termenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ var (
)

const (
// Escape character
// Escape character.
ESC = '\x1b'
// Bell
// Bell.
BEL = '\a'
// Control Sequence Introducer
// Control Sequence Introducer.
CSI = string(ESC) + "["
// Operating System Command
// Operating System Command.
OSC = string(ESC) + "]"
// String Terminator
// String Terminator.
ST = string(ESC) + `\`
)

Expand Down

0 comments on commit 98d742f

Please sign in to comment.