asteris-llc/converge

View on GitHub
resource/file/content/content.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Content.Check has 5 return statements (exceeds 4 allowed).
Open

func (t *Content) Check(context.Context, resource.Renderer) (resource.TaskStatus, error) {
    diffs := make(map[string]resource.Diff)
    contentDiff := resource.TextDiff{Values: [2]string{"", t.Content}}
    stat, err := os.Stat(t.Destination)
    if os.IsNotExist(err) {
Severity: Major
Found in resource/file/content/content.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status