nabbar/golib

Linter for package logger

Closed this issue · 0 comments

logger/formatter.go:34:82: Top level comment should end in a period (godot)
// Format a uint8 type customized with function to manage the result logger format
                                                                                 ^
logger/formatter.go:74:86: Top level comment should end in a period (godot)
// GetFormatListString return the full list (slice of string) of all available formats
                                                                                     ^
logger/formatter.go:95:73: Top level comment should end in a period (godot)
// GetCurrentFormat Return the current Format Type used for all log entry
                                                                        ^
logger/formatter.go:117:51: Top level comment should end in a period (godot)
// String Return the string name of the Format Type
                                                  ^
logger/iowriter.go:32:64: Top level comment should end in a period (godot)
// IOWriter is struct redirected all entry to the current logger
                                                               ^
logger/level.go:38:87: Top level comment should end in a period (godot)
//Level a uint8 type customized with function to log message with the current log level
                                                                                      ^
logger/level.go:62:126: Top level comment should end in a period (godot)
//GetCurrentLevel return the current loglevel setting in the logger. All log entry matching this level or below will be logged
                                                                                                                             ^
logger/level.go:67:79: Top level comment should end in a period (godot)
// GetLevelListString return a list ([]string) of all string loglevel available
                                                                              ^
logger/level.go:325:91: Top level comment should end in a period (godot)
c a valid Go GinTonic Context reference to add current error to the Gin Tonic Error Context
                                                                                          ^
logger/logger.go:97:59: Top level comment should end in a period (godot)
// This option is apply for all message except info message
                                                          ^
logger/logger.go:105:59: Top level comment should end in a period (godot)
// This apply only for next message and only for TextFormat
                                                          ^
logger/logger.go:113:59: Top level comment should end in a period (godot)
// This apply only for next message and only for TextFormat
                                                          ^
logger/logger.go:119:54: Top level comment should end in a period (godot)
// EnableViperLog  or not the Gin Logger configuration
                                                     ^
logger/formatter.go:58:2: missing cases in switch of type Format: curFormat, nilFormat (exhaustive)
	switch curFormat {
	^
logger/formatter.go:89:2: missing cases in switch of type Format: curFormat, nilFormat (exhaustive)
	switch fmt {
	^
logger/formatter.go:119:2: missing cases in switch of type Format: TextFormat, curFormat, nilFormat (exhaustive)
	switch f {
	^
logger/level.go:86:2: missing cases in switch of type Level: NilLevel, curLevel (exhaustive)
	switch level {
	^
logger/level.go:129:2: missing cases in switch of type Level: NilLevel, curLevel (exhaustive)
	switch curLevel {
	^
logger/level.go:183:2: missing cases in switch of type Level: NilLevel, curLevel (exhaustive)
	switch level {
	^
logger/level.go:376:2: missing cases in switch of type Format: curFormat, nilFormat (exhaustive)
	switch curFormat {
	^
logger/level.go:414:2: missing cases in switch of type Level: NilLevel, curLevel (exhaustive)
	switch level {
	^