diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-12-03 12:33:17 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-12-03 12:33:17 +0000 |
| commit | 554e21aee9cc66cafb7409fad4b0c5c3afd6302c (patch) | |
| tree | b61d237275d15323be0347fe2e9a8c09b11b0d9c | |
| parent | 9413bf8c8fe505db9e046fae12dad9951117e22d (diff) | |
Use nested comments to satisfy SonarQube
| -rw-r--r-- | internal/io/dlog/loggers/none.go | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/internal/io/dlog/loggers/none.go b/internal/io/dlog/loggers/none.go index a685862..77168d7 100644 --- a/internal/io/dlog/loggers/none.go +++ b/internal/io/dlog/loggers/none.go @@ -11,28 +11,36 @@ type none struct{} func (none) Start(ctx context.Context, wg *sync.WaitGroup) { wg.Done() } -// Log is empty because the none isn't logging but has to statify the interface. -func (none) Log(now time.Time, message string) {} +func (none) Log(now time.Time, message string) { + // This is empty because the none isn't logging but has to statify the interface. +} -// LogWithColora is empty because the none isn't logging but has to statify the interface. -func (none) LogWithColors(now time.Time, message, coloredMessage string) {} +func (none) LogWithColors(now time.Time, message, coloredMessage string) { + // This is empty because the none isn't logging but has to statify the interface. +} -// Raw is empty because the none isn't logging but has to statify the interface. -func (none) Raw(now time.Time, message string) {} +func (none) Raw(now time.Time, message string) { + // This is empty because the none isn't logging but has to statify the interface. +} -// RawWithColors is empty because the none isn't logging but has to statify the interface. -func (none) RawWithColors(now time.Time, message, coloredMessage string) {} +func (none) RawWithColors(now time.Time, message, coloredMessage string) { + // This is empty because the none isn't logging but has to statify the interface. +} -// Flush is empty because the none isn't logging but has to statify the interface. -func (none) Flush() {} +func (none) Flush() { + // This is empty because the none isn't logging but has to statify the interface. +} -// Pause is empty because the none isn't logging but has to statify the interface. -func (none) Pause() {} +func (none) Pause() { + // This is empty because the none isn't logging but has to statify the interface. +} -// Resume is empty because the none isn't logging but has to statify the interface. -func (none) Resume() {} +func (none) Resume() { + // This is empty because the none isn't logging but has to statify the interface. +} -// Rotate is empty because the none isn't logging but has to statify the interface. -func (none) Rotate() {} +func (none) Rotate() { + // This is empty because the none isn't logging but has to statify the interface. +} func (none) SupportsColors() bool { return false } |
