portainer/portainer

View on GitHub
api/filesystem/serialize_per_dev_configs.go

Summary

Maintainability
A
35 mins
Test Coverage

Function shouldIncludeEntry has 5 return statements (exceeds 4 allowed).
Open

func shouldIncludeEntry(dirEntry DirEntry, deviceName, configPath string, filterType portainer.PerDevConfigsFilterType) bool {

    // Include all entries outside of dir A
    if !isInConfigRootDir(dirEntry, configPath) {
        return true
Severity: Major
Found in api/filesystem/serialize_per_dev_configs.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status