Passed
Push — master ( f028f1...4fb92b )
by Stefano
02:12
created

pkg/scan/output/nullsaver.go   A

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 9
dl 0
loc 16
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A output.NewNullSaver 0 2 1
A output.NullSaver.Close 0 2 1
A output.NullSaver.Save 0 2 1
1
package output
2
3
import "github.com/stefanoj3/dirstalk/pkg/scan"
4
5
func NewNullSaver() NullSaver {
0 ignored issues
show
introduced by
exported function NewNullSaver should have comment or be unexported
Loading history...
6
	return NullSaver{}
7
}
8
9
type NullSaver struct{}
0 ignored issues
show
introduced by
exported type NullSaver should have comment or be unexported
Loading history...
10
11
func (n NullSaver) Save(r scan.Result) error {
0 ignored issues
show
introduced by
exported method NullSaver.Save should have comment or be unexported
Loading history...
12
	return nil
13
}
14
15
func (n NullSaver) Close() error {
0 ignored issues
show
introduced by
exported method NullSaver.Close should have comment or be unexported
Loading history...
16
	return nil
17
}
18