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

pkg/scan/output/conversion.go   A

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A output.convertResultToRawData 0 2 1
1
package output
2
3
import (
4
	"encoding/json"
5
6
	"github.com/stefanoj3/dirstalk/pkg/scan"
7
)
8
9
func convertResultToRawData(r scan.Result) ([]byte, error) {
10
	return json.Marshal(r)
11
}
12