Preparing report...

Report for github.com/mytlogos/netbox_application_controller

(v0.0.0-20230923101947-5c9c71b8c054)

C    Needs some work    Found 694 issues across 719 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt3%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • netbox/api_ipam.go
    • Line 21919: warning: cyclomatic complexity 280 of function (*IpamApiService).IpamPrefixesListExecute() is high (> 15) (gocyclo)
    • Line 37435: warning: cyclomatic complexity 273 of function (*IpamApiService).IpamVlansListExecute() is high (> 15) (gocyclo)
    • Line 18801: warning: cyclomatic complexity 254 of function (*IpamApiService).IpamL2vpnsListExecute() is high (> 15) (gocyclo)
    • Line 11836: warning: cyclomatic complexity 252 of function (*IpamApiService).IpamIpAddressesListExecute() is high (> 15) (gocyclo)
    • Line 34914: warning: cyclomatic complexity 247 of function (*IpamApiService).IpamVlanGroupsListExecute() is high (> 15) (gocyclo)
    • Line 39950: warning: cyclomatic complexity 230 of function (*IpamApiService).IpamVrfsListExecute() is high (> 15) (gocyclo)
    • Line 3423: warning: cyclomatic complexity 224 of function (*IpamApiService).IpamAsnRangesListExecute() is high (> 15) (gocyclo)
    • Line 28510: warning: cyclomatic complexity 198 of function (*IpamApiService).IpamRouteTargetsListExecute() is high (> 15) (gocyclo)
    • Line 32400: warning: cyclomatic complexity 189 of function (*IpamApiService).IpamServicesListExecute() is high (> 15) (gocyclo)
    • Line 5663: warning: cyclomatic complexity 186 of function (*IpamApiService).IpamAsnsListExecute() is high (> 15) (gocyclo)
    • Line 14430: warning: cyclomatic complexity 185 of function (*IpamApiService).IpamIpRangesListExecute() is high (> 15) (gocyclo)
    • Line 9573: warning: cyclomatic complexity 184 of function (*IpamApiService).IpamFhrpGroupsListExecute() is high (> 15) (gocyclo)
    • Line 16572: warning: cyclomatic complexity 183 of function (*IpamApiService).IpamL2vpnTerminationsListExecute() is high (> 15) (gocyclo)
    • Line 24339: warning: cyclomatic complexity 182 of function (*IpamApiService).IpamRirsListExecute() is high (> 15) (gocyclo)
    • Line 26403: warning: cyclomatic complexity 181 of function (*IpamApiService).IpamRolesListExecute() is high (> 15) (gocyclo)
    • Line 1034: warning: cyclomatic complexity 176 of function (*IpamApiService).IpamAggregatesListExecute() is high (> 15) (gocyclo)
    • Line 7660: warning: cyclomatic complexity 139 of function (*IpamApiService).IpamFhrpGroupAssignmentsListExecute() is high (> 15) (gocyclo)
    • Line 30520: warning: cyclomatic complexity 122 of function (*IpamApiService).IpamServiceTemplatesListExecute() is high (> 15) (gocyclo)
    • netbox/api_circuits.go
    • Line 5845: warning: cyclomatic complexity 327 of function (*CircuitsApiService).CircuitsCircuitsListExecute() is high (> 15) (gocyclo)
    • Line 1137: warning: cyclomatic complexity 218 of function (*CircuitsApiService).CircuitsCircuitTerminationsListExecute() is high (> 15) (gocyclo)
    • Line 12780: warning: cyclomatic complexity 210 of function (*CircuitsApiService).CircuitsProvidersListExecute() is high (> 15) (gocyclo)
    • Line 8468: warning: cyclomatic complexity 193 of function (*CircuitsApiService).CircuitsProviderAccountsListExecute() is high (> 15) (gocyclo)
    • Line 10601: warning: cyclomatic complexity 193 of function (*CircuitsApiService).CircuitsProviderNetworksListExecute() is high (> 15) (gocyclo)
    • Line 3446: warning: cyclomatic complexity 181 of function (*CircuitsApiService).CircuitsCircuitTypesListExecute() is high (> 15) (gocyclo)
    • netbox/api_tenancy.go
    • Line 7244: warning: cyclomatic complexity 286 of function (*TenancyApiService).TenancyContactsListExecute() is high (> 15) (gocyclo)
    • Line 11891: warning: cyclomatic complexity 211 of function (*TenancyApiService).TenancyTenantsListExecute() is high (> 15) (gocyclo)
    • Line 9716: warning: cyclomatic complexity 193 of function (*TenancyApiService).TenancyTenantGroupsListExecute() is high (> 15) (gocyclo)
    • Line 2852: warning: cyclomatic complexity 193 of function (*TenancyApiService).TenancyContactGroupsListExecute() is high (> 15) (gocyclo)
    • Line 4957: warning: cyclomatic complexity 181 of function (*TenancyApiService).TenancyContactRolesListExecute() is high (> 15) (gocyclo)
    • Line 949: warning: cyclomatic complexity 131 of function (*TenancyApiService).TenancyContactAssignmentsListExecute() is high (> 15) (gocyclo)
    • netbox/api_core.go
    • Line 427: warning: cyclomatic complexity 175 of function (*CoreApiService).CoreDataFilesListExecute() is high (> 15) (gocyclo)
    • Line 2111: warning: cyclomatic complexity 132 of function (*CoreApiService).CoreDataSourcesListExecute() is high (> 15) (gocyclo)
    • Line 3476: warning: cyclomatic complexity 128 of function (*CoreApiService).CoreJobsListExecute() is high (> 15) (gocyclo)
    • netbox/api_extras.go
    • Line 2839: warning: cyclomatic complexity 289 of function (*ExtrasApiService).ExtrasConfigContextsListExecute() is high (> 15) (gocyclo)
    • Line 25580: warning: cyclomatic complexity 287 of function (*ExtrasApiService).ExtrasWebhooksListExecute() is high (> 15) (gocyclo)
    • Line 9683: warning: cyclomatic complexity 223 of function (*ExtrasApiService).ExtrasCustomFieldsListExecute() is high (> 15) (gocyclo)
    • Line 23085: warning: cyclomatic complexity 221 of function (*ExtrasApiService).ExtrasTagsListExecute() is high (> 15) (gocyclo)
    • Line 20896: warning: cyclomatic complexity 195 of function (*ExtrasApiService).ExtrasSavedFiltersListExecute() is high (> 15) (gocyclo)
    • Line 11984: warning: cyclomatic complexity 171 of function (*ExtrasApiService).ExtrasCustomLinksListExecute() is high (> 15) (gocyclo)
    • Line 14438: warning: cyclomatic complexity 161 of function (*ExtrasApiService).ExtrasExportTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 19154: warning: cyclomatic complexity 143 of function (*ExtrasApiService).ExtrasObjectChangesListExecute() is high (> 15) (gocyclo)
    • Line 5326: warning: cyclomatic complexity 136 of function (*ExtrasApiService).ExtrasConfigTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 17987: warning: cyclomatic complexity 114 of function (*ExtrasApiService).ExtrasJournalEntriesListExecute() is high (> 15) (gocyclo)
    • Line 7750: warning: cyclomatic complexity 105 of function (*ExtrasApiService).ExtrasCustomFieldChoiceSetsListExecute() is high (> 15) (gocyclo)
    • Line 16375: warning: cyclomatic complexity 92 of function (*ExtrasApiService).ExtrasImageAttachmentsListExecute() is high (> 15) (gocyclo)
    • Line 838: warning: cyclomatic complexity 91 of function (*ExtrasApiService).ExtrasBookmarksListExecute() is high (> 15) (gocyclo)
    • Line 6563: warning: cyclomatic complexity 21 of function (*ExtrasApiService).ExtrasContentTypesListExecute() is high (> 15) (gocyclo)
    • Line 6022: warning: cyclomatic complexity 16 of function (*ExtrasApiService).ExtrasConfigTemplatesRenderCreateExecute() is high (> 15) (gocyclo)
    • netbox/api_virtualization.go
    • Line 10602: warning: cyclomatic complexity 370 of function (*VirtualizationApiService).VirtualizationVirtualMachinesListExecute() is high (> 15) (gocyclo)
    • Line 7802: warning: cyclomatic complexity 262 of function (*VirtualizationApiService).VirtualizationInterfacesListExecute() is high (> 15) (gocyclo)
    • Line 5375: warning: cyclomatic complexity 227 of function (*VirtualizationApiService).VirtualizationClustersListExecute() is high (> 15) (gocyclo)
    • Line 1069: warning: cyclomatic complexity 199 of function (*VirtualizationApiService).VirtualizationClusterGroupsListExecute() is high (> 15) (gocyclo)
    • Line 3196: warning: cyclomatic complexity 181 of function (*VirtualizationApiService).VirtualizationClusterTypesListExecute() is high (> 15) (gocyclo)
    • netbox/client.go
    • Line 315: warning: cyclomatic complexity 31 of function (*APIClient).prepareRequest() is high (> 15) (gocyclo)
    • Line 178: warning: cyclomatic complexity 25 of function parameterAddToHeaderOrQuery() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 16 of function (*APIClient).decode() is high (> 15) (gocyclo)
    • netbox/api_dcim.go
    • Line 35976: warning: cyclomatic complexity 578 of function (*DcimApiService).DcimInterfacesListExecute() is high (> 15) (gocyclo)
    • Line 24577: warning: cyclomatic complexity 515 of function (*DcimApiService).DcimDevicesListExecute() is high (> 15) (gocyclo)
    • Line 83278: warning: cyclomatic complexity 470 of function (*DcimApiService).DcimRacksListExecute() is high (> 15) (gocyclo)
    • Line 44554: warning: cyclomatic complexity 405 of function (*DcimApiService).DcimInventoryItemsListExecute() is high (> 15) (gocyclo)
    • Line 88893: warning: cyclomatic complexity 367 of function (*DcimApiService).DcimRearPortsListExecute() is high (> 15) (gocyclo)
    • Line 75197: warning: cyclomatic complexity 356 of function (*DcimApiService).DcimPowerPortsListExecute() is high (> 15) (gocyclo)
    • Line 30335: warning: cyclomatic complexity 348 of function (*DcimApiService).DcimFrontPortsListExecute() is high (> 15) (gocyclo)
    • Line 96575: warning: cyclomatic complexity 334 of function (*DcimApiService).DcimSitesListExecute() is high (> 15) (gocyclo)
    • Line 68032: warning: cyclomatic complexity 324 of function (*DcimApiService).DcimPowerOutletsListExecute() is high (> 15) (gocyclo)
    • Line 11696: warning: cyclomatic complexity 318 of function (*DcimApiService).DcimConsoleServerPortsListExecute() is high (> 15) (gocyclo)
    • Line 6922: warning: cyclomatic complexity 318 of function (*DcimApiService).DcimConsolePortsListExecute() is high (> 15) (gocyclo)
    • Line 16358: warning: cyclomatic complexity 301 of function (*DcimApiService).DcimDeviceBaysListExecute() is high (> 15) (gocyclo)
    • Line 54222: warning: cyclomatic complexity 301 of function (*DcimApiService).DcimModuleBaysListExecute() is high (> 15) (gocyclo)
    • Line 47655: warning: cyclomatic complexity 277 of function (*DcimApiService).DcimLocationsListExecute() is high (> 15) (gocyclo)
    • Line 63407: warning: cyclomatic complexity 265 of function (*DcimApiService).DcimPowerFeedsListExecute() is high (> 15) (gocyclo)
    • Line 21405: warning: cyclomatic complexity 261 of function (*DcimApiService).DcimDeviceTypesListExecute() is high (> 15) (gocyclo)
    • Line 41786: warning: cyclomatic complexity 234 of function (*DcimApiService).DcimInventoryItemTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 18945: warning: cyclomatic complexity 219 of function (*DcimApiService).DcimDeviceRolesListExecute() is high (> 15) (gocyclo)
    • Line 2502: warning: cyclomatic complexity 216 of function (*DcimApiService).DcimCablesListExecute() is high (> 15) (gocyclo)
    • Line 80321: warning: cyclomatic complexity 212 of function (*DcimApiService).DcimRackRolesListExecute() is high (> 15) (gocyclo)
    • Line 91819: warning: cyclomatic complexity 211 of function (*DcimApiService).DcimRegionsListExecute() is high (> 15) (gocyclo)
    • Line 94060: warning: cyclomatic complexity 211 of function (*DcimApiService).DcimSiteGroupsListExecute() is high (> 15) (gocyclo)
    • Line 99269: warning: cyclomatic complexity 210 of function (*DcimApiService).DcimVirtualChassisListExecute() is high (> 15) (gocyclo)
    • Line 78090: warning: cyclomatic complexity 209 of function (*DcimApiService).DcimRackReservationsListExecute() is high (> 15) (gocyclo)
    • Line 61040: warning: cyclomatic complexity 199 of function (*DcimApiService).DcimPlatformsListExecute() is high (> 15) (gocyclo)
    • Line 50110: warning: cyclomatic complexity 199 of function (*DcimApiService).DcimManufacturersListExecute() is high (> 15) (gocyclo)
    • Line 58896: warning: cyclomatic complexity 192 of function (*DcimApiService).DcimModulesListExecute() is high (> 15) (gocyclo)
    • Line 56781: warning: cyclomatic complexity 189 of function (*DcimApiService).DcimModuleTypesListExecute() is high (> 15) (gocyclo)
    • Line 86394: warning: cyclomatic complexity 181 of function (*DcimApiService).DcimRearPortTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 39599: warning: cyclomatic complexity 181 of function (*DcimApiService).DcimInventoryItemRolesListExecute() is high (> 15) (gocyclo)
    • Line 70739: warning: cyclomatic complexity 179 of function (*DcimApiService).DcimPowerPanelsListExecute() is high (> 15) (gocyclo)
    • Line 72774: warning: cyclomatic complexity 165 of function (*DcimApiService).DcimPowerPortTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 101408: warning: cyclomatic complexity 162 of function (*DcimApiService).DcimVirtualDeviceContextsListExecute() is high (> 15) (gocyclo)
    • Line 27947: warning: cyclomatic complexity 162 of function (*DcimApiService).DcimFrontPortTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 33078: warning: cyclomatic complexity 157 of function (*DcimApiService).DcimInterfaceTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 65795: warning: cyclomatic complexity 133 of function (*DcimApiService).DcimPowerOutletTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 9495: warning: cyclomatic complexity 127 of function (*DcimApiService).DcimConsoleServerPortTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 4721: warning: cyclomatic complexity 127 of function (*DcimApiService).DcimConsolePortTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 52107: warning: cyclomatic complexity 119 of function (*DcimApiService).DcimModuleBayTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 14243: warning: cyclomatic complexity 119 of function (*DcimApiService).DcimDeviceBayTemplatesListExecute() is high (> 15) (gocyclo)
    • Line 786: warning: cyclomatic complexity 61 of function (*DcimApiService).DcimCableTerminationsListExecute() is high (> 15) (gocyclo)
    • Line 3731: warning: cyclomatic complexity 16 of function (*DcimApiService).DcimConnectedDeviceListExecute() is high (> 15) (gocyclo)
    • Line 26645: warning: cyclomatic complexity 16 of function (*DcimApiService).DcimDevicesRenderConfigCreateExecute() is high (> 15) (gocyclo)
    • netbox/api_wireless.go
    • Line 5741: warning: cyclomatic complexity 265 of function (*WirelessApiService).WirelessWirelessLinksListExecute() is high (> 15) (gocyclo)
    • Line 3284: warning: cyclomatic complexity 241 of function (*WirelessApiService).WirelessWirelessLansListExecute() is high (> 15) (gocyclo)
    • Line 1051: warning: cyclomatic complexity 193 of function (*WirelessApiService).WirelessWirelessLanGroupsListExecute() is high (> 15) (gocyclo)
    • netbox/api_users.go
    • Line 6200: warning: cyclomatic complexity 176 of function (*UsersApiService).UsersUsersListExecute() is high (> 15) (gocyclo)
    • Line 2462: warning: cyclomatic complexity 134 of function (*UsersApiService).UsersPermissionsListExecute() is high (> 15) (gocyclo)
    • Line 4240: warning: cyclomatic complexity 118 of function (*UsersApiService).UsersTokensListExecute() is high (> 15) (gocyclo)
    • Line 894: warning: cyclomatic complexity 68 of function (*UsersApiService).UsersGroupsListExecute() is high (> 15) (gocyclo)
    • Line 4856: warning: cyclomatic complexity 17 of function (*UsersApiService).UsersTokensProvisionCreateExecute() is high (> 15) (gocyclo)
    • netbox/api_plugins.go
    • Line 664: warning: cyclomatic complexity 17 of function (*PluginsApiService).PluginsApplicationsApplicationGroupsListExecute() is high (> 15) (gocyclo)
    • Line 2872: warning: cyclomatic complexity 17 of function (*PluginsApiService).PluginsApplicationsApplicationPortsListExecute() is high (> 15) (gocyclo)
    • Line 3976: warning: cyclomatic complexity 17 of function (*PluginsApiService).PluginsApplicationsApplicationProtocolsListExecute() is high (> 15) (gocyclo)
    • Line 1768: warning: cyclomatic complexity 17 of function (*PluginsApiService).PluginsApplicationsApplicationLinksListExecute() is high (> 15) (gocyclo)
    • Line 5080: warning: cyclomatic complexity 17 of function (*PluginsApiService).PluginsApplicationsApplicationsListExecute() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!