Showing 1,468 of 1,914 total issues
Method Daemon.Containers
has 6 return statements (exceeds 4 allowed). Open
Open
func (daemon *Daemon) Containers(ctx context.Context, config *containertypes.ListOptions) ([]*containertypes.Summary, error) {
if err := config.Filters.Validate(acceptedPsFilterTags); err != nil {
return nil, err
}
Function doUnpackLayer
has 6 return statements (exceeds 4 allowed). Open
Open
func doUnpackLayer(root string, layer io.Reader, options *archive.TarOptions) (int64, error) {
var result int64
optionsR, optionsW, err := os.Pipe()
if err != nil {
return 0, err
Function GetLayerPath
has 6 return statements (exceeds 4 allowed). Open
Open
func GetLayerPath(s Store, layer ChainID) (string, error) {
ls, ok := s.(*layerStore)
if !ok {
return "", errors.New("unsupported layer store")
}
Function NewTailReaderWithDelimiter
has 6 return statements (exceeds 4 allowed). Open
Open
func NewTailReaderWithDelimiter(ctx context.Context, r SizeReaderAt, reqLines int, delimiter []byte) (*io.SectionReader, int, error) {
if reqLines < 1 {
return nil, 0, ErrNonPositiveLinesNumber
}
if len(delimiter) == 0 {
Method manifestStore.Put
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (m *manifestStore) Put(ctx context.Context, manifest distribution.Manifest, desc ocispec.Descriptor, w content.Writer, ref reference.Named) error {
Function NewTarExporter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewTarExporter(is image.Store, lss layer.Store, rs refstore.Store, loggerImgEvent LogImageEvent, platform *ocispec.Platform) image.Exporter {
Method Manager.newResolver
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (pm *Manager) newResolver(ctx context.Context, tracker docker.StatusTracker, auth *registry.AuthConfig, headers http.Header, httpFallback bool) (remotes.Resolver, error) {
Function Mount
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
Method Manager.Push
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header, authConfig *registry.AuthConfig, out io.Writer) error {
Method Manager.Push
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header, authConfig *registry.AuthConfig, outStream io.Writer) error {
Function addEpToResolverImpl
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
netName, epName string,
epIface *EndpointInterface,
resolvers []*Resolver,
hnsEndpoints []hcsshim.HNSEndpoint,
Function checkTable
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func checkTable(ctx context.Context, ips []string, port, networkName, tableName string, expectedEntries int, fn func(string, string, string, string, chan resultTuple)) (opTime time.Duration) {
Function makeServiceCleanupFunc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func makeServiceCleanupFunc(c *Controller, s *service, nID, eID string, vip net.IP, ip net.IP) func() {
Method NetworkDB.sendTableEvent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (nDB *NetworkDB) sendTableEvent(event TableEvent_Type, nid string, tname string, key string, entry *entry) error {
Function addEpToResolver
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
netName, epName string,
config *containerConfig,
epIface *EndpointInterface,
resolvers []*Resolver,
Method ChainInfo.Link
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *ChainInfo) Link(action Action, ip1, ip2 net.IP, port int, proto string, bridgeName string) error {
Function addEpToResolver
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
netName, epName string,
config *containerConfig,
epIface *EndpointInterface,
resolvers []*Resolver,
Method Controller.addServiceBinding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *Controller) addServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {
Function fetchTable
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func fetchTable(ip string, port int, network, tableName string, clusterPeers, networkPeers map[string]string, remediate bool) {
Method Controller.rmServiceBinding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *Controller) rmServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {