Skip to content

Commit

Permalink
Remove nolint directives from docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed Jun 24, 2021
1 parent 6a4f26b commit 0c33abf
Show file tree
Hide file tree
Showing 49 changed files with 100 additions and 100 deletions.
4 changes: 2 additions & 2 deletions redfish/assembly.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ func GetAssembly(c common.Client, uri string) (*Assembly, error) {
return &assembly, nil
}

//nolint:dupl // ListReferencedAssemblys gets the collection of Assembly from
// ListReferencedAssemblys gets the collection of Assembly from
// a provided reference.
func ListReferencedAssemblys(c common.Client, link string) ([]*Assembly, error) {
func ListReferencedAssemblys(c common.Client, link string) ([]*Assembly, error) { //nolint:dupl
var result []*Assembly
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/bios.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ func GetBios(c common.Client, uri string) (*Bios, error) {
return &bios, nil
}

//nolint:dupl // ListReferencedBioss gets the collection of Bios from a provided reference.
func ListReferencedBioss(c common.Client, link string) ([]*Bios, error) {
// ListReferencedBioss gets the collection of Bios from a provided reference.
func ListReferencedBioss(c common.Client, link string) ([]*Bios, error) { //nolint:dupl
var result []*Bios
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/compositionservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func GetCompositionService(c common.Client, uri string) (*CompositionService, er
return &compositionservice, nil
}

//nolint:dupl // ListReferencedCompositionServices gets the collection of CompositionService from
// ListReferencedCompositionServices gets the collection of CompositionService from
// a provided reference.
func ListReferencedCompositionServices(c common.Client, link string) ([]*CompositionService, error) {
func ListReferencedCompositionServices(c common.Client, link string) ([]*CompositionService, error) { //nolint:dupl
var result []*CompositionService
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ func GetDrive(c common.Client, uri string) (*Drive, error) {
return &drive, nil
}

//nolint:dupl // ListReferencedDrives gets the collection of Drives from a provided reference.
func ListReferencedDrives(c common.Client, link string) ([]*Drive, error) {
// ListReferencedDrives gets the collection of Drives from a provided reference.
func ListReferencedDrives(c common.Client, link string) ([]*Drive, error) { //nolint:dupl
var result []*Drive
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ func GetEndpoint(c common.Client, uri string) (*Endpoint, error) {
return &endpoint, nil
}

//nolint:dupl // ListReferencedEndpoints gets the collection of Endpoint from
// ListReferencedEndpoints gets the collection of Endpoint from
// a provided reference.
func ListReferencedEndpoints(c common.Client, link string) ([]*Endpoint, error) {
func ListReferencedEndpoints(c common.Client, link string) ([]*Endpoint, error) { //nolint:dupl
var result []*Endpoint
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/ethernetinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ func GetEthernetInterface(c common.Client, uri string) (*EthernetInterface, erro
return &ethernetinterface, nil
}

//nolint:dupl // ListReferencedEthernetInterfaces gets the collection of EthernetInterface from
// ListReferencedEthernetInterfaces gets the collection of EthernetInterface from
// a provided reference.
func ListReferencedEthernetInterfaces(c common.Client, link string) ([]*EthernetInterface, error) {
func ListReferencedEthernetInterfaces(c common.Client, link string) ([]*EthernetInterface, error) { //nolint:dupl
var result []*EthernetInterface
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/eventdestination.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ func DeleteEventDestination(c common.Client, uri string) (err error) {
return err
}

//nolint:dupl // ListReferencedEventDestinations gets the collection of EventDestination from
// ListReferencedEventDestinations gets the collection of EventDestination from
// a provided reference.
func ListReferencedEventDestinations(c common.Client, link string) ([]*EventDestination, error) {
func ListReferencedEventDestinations(c common.Client, link string) ([]*EventDestination, error) { //nolint:dupl
var result []*EventDestination
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/eventservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ func GetEventService(c common.Client, uri string) (*EventService, error) {
return &eventservice, nil
}

//nolint:dupl // ListReferencedEventServices gets the collection of EventService from
// ListReferencedEventServices gets the collection of EventService from
// a provided reference.
func ListReferencedEventServices(c common.Client, link string) ([]*EventService, error) {
func ListReferencedEventServices(c common.Client, link string) ([]*EventService, error) { //nolint:dupl
var result []*EventService
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/hostinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ func GetHostInterface(c common.Client, uri string) (*HostInterface, error) {
return &hostinterface, nil
}

//nolint:dupl // ListReferencedHostInterfaces gets the collection of HostInterface from
// ListReferencedHostInterfaces gets the collection of HostInterface from
// a provided reference.
func ListReferencedHostInterfaces(c common.Client, link string) ([]*HostInterface, error) {
func ListReferencedHostInterfaces(c common.Client, link string) ([]*HostInterface, error) { //nolint:dupl
var result []*HostInterface
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/logentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ func GetLogEntry(c common.Client, uri string) (*LogEntry, error) {
return &logentry, nil
}

//nolint:dupl // ListReferencedLogEntrys gets the collection of LogEntry from
// ListReferencedLogEntrys gets the collection of LogEntry from
// a provided reference.
func ListReferencedLogEntrys(c common.Client, link string) ([]*LogEntry, error) {
func ListReferencedLogEntrys(c common.Client, link string) ([]*LogEntry, error) { //nolint:dupl
var result []*LogEntry
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/logservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func GetLogService(c common.Client, uri string) (*LogService, error) {
return &logservice, nil
}

//nolint:dupl // ListReferencedLogServices gets the collection of LogService from a provided reference.
func ListReferencedLogServices(c common.Client, link string) ([]*LogService, error) {
// ListReferencedLogServices gets the collection of LogService from a provided reference.
func ListReferencedLogServices(c common.Client, link string) ([]*LogService, error) { //nolint:dupl
var result []*LogService
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/manageraccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func GetManagerAccount(c common.Client, uri string) (*ManagerAccount, error) {
return &manageraccount, nil
}

//nolint:dupl // ListReferencedManagerAccounts gets the collection of ManagerAccount from
// ListReferencedManagerAccounts gets the collection of ManagerAccount from
// a provided reference.
func ListReferencedManagerAccounts(c common.Client, link string) ([]*ManagerAccount, error) {
func ListReferencedManagerAccounts(c common.Client, link string) ([]*ManagerAccount, error) { //nolint:dupl
var result []*ManagerAccount
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ func GetMemory(c common.Client, uri string) (*Memory, error) {
return &memory, nil
}

//nolint:dupl // ListReferencedMemorys gets the collection of Memory from
// ListReferencedMemorys gets the collection of Memory from
// a provided reference.
func ListReferencedMemorys(c common.Client, link string) ([]*Memory, error) {
func ListReferencedMemorys(c common.Client, link string) ([]*Memory, error) { //nolint:dupl
var result []*Memory
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/memorydomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func GetMemoryDomain(c common.Client, uri string) (*MemoryDomain, error) {
return &memorydomain, nil
}

//nolint:dupl // ListReferencedMemoryDomains gets the collection of MemoryDomain from
// ListReferencedMemoryDomains gets the collection of MemoryDomain from
// a provided reference.
func ListReferencedMemoryDomains(c common.Client, link string) ([]*MemoryDomain, error) {
func ListReferencedMemoryDomains(c common.Client, link string) ([]*MemoryDomain, error) { //nolint:dupl
var result []*MemoryDomain
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/memorymetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ func GetMemoryMetrics(c common.Client, uri string) (*MemoryMetrics, error) {
return &memorymetrics, nil
}

//nolint:dupl // ListReferencedMemoryMetricss gets the collection of MemoryMetrics from
// ListReferencedMemoryMetricss gets the collection of MemoryMetrics from
// a provided reference.
func ListReferencedMemoryMetricss(c common.Client, link string) ([]*MemoryMetrics, error) {
func ListReferencedMemoryMetricss(c common.Client, link string) ([]*MemoryMetrics, error) { //nolint:dupl
var result []*MemoryMetrics
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/networkdevicefunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ func GetNetworkDeviceFunction(c common.Client, uri string) (*NetworkDeviceFuncti
return &networkdevicefunction, nil
}

//nolint:dupl // ListReferencedNetworkDeviceFunctions gets the collection of NetworkDeviceFunction from
// ListReferencedNetworkDeviceFunctions gets the collection of NetworkDeviceFunction from
// a provided reference.
func ListReferencedNetworkDeviceFunctions(c common.Client, link string) ([]*NetworkDeviceFunction, error) {
func ListReferencedNetworkDeviceFunctions(c common.Client, link string) ([]*NetworkDeviceFunction, error) { //nolint:dupl
var result []*NetworkDeviceFunction
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/networkinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ func GetNetworkInterface(c common.Client, uri string) (*NetworkInterface, error)
return &networkinterface, nil
}

//nolint:dupl // ListReferencedNetworkInterfaces gets the collection of NetworkInterface from
// ListReferencedNetworkInterfaces gets the collection of NetworkInterface from
// a provided reference.
func ListReferencedNetworkInterfaces(c common.Client, link string) ([]*NetworkInterface, error) {
func ListReferencedNetworkInterfaces(c common.Client, link string) ([]*NetworkInterface, error) { //nolint:dupl
var result []*NetworkInterface
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/networkport.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ func GetNetworkPort(c common.Client, uri string) (*NetworkPort, error) {
return &networkport, nil
}

//nolint:dupl // ListReferencedNetworkPorts gets the collection of NetworkPort from
// ListReferencedNetworkPorts gets the collection of NetworkPort from
// a provided reference.
func ListReferencedNetworkPorts(c common.Client, link string) ([]*NetworkPort, error) {
func ListReferencedNetworkPorts(c common.Client, link string) ([]*NetworkPort, error) { //nolint:dupl
var result []*NetworkPort
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/pciedevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ func GetPCIeDevice(c common.Client, uri string) (*PCIeDevice, error) {
return &pciedevice, nil
}

//nolint:dupl // ListReferencedPCIeDevices gets the collection of PCIeDevice from
// ListReferencedPCIeDevices gets the collection of PCIeDevice from
// a provided reference.
func ListReferencedPCIeDevices(c common.Client, link string) ([]*PCIeDevice, error) {
func ListReferencedPCIeDevices(c common.Client, link string) ([]*PCIeDevice, error) { //nolint:dupl
var result []*PCIeDevice
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/pciefunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ func GetPCIeFunction(c common.Client, uri string) (*PCIeFunction, error) {
return &pciefunction, nil
}

//nolint:dupl // ListReferencedPCIeFunctions gets the collection of PCIeFunction from
// ListReferencedPCIeFunctions gets the collection of PCIeFunction from
// a provided reference.
func ListReferencedPCIeFunctions(c common.Client, link string) ([]*PCIeFunction, error) {
func ListReferencedPCIeFunctions(c common.Client, link string) ([]*PCIeFunction, error) { //nolint:dupl
var result []*PCIeFunction
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/power.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func GetPower(c common.Client, uri string) (*Power, error) {
return &power, nil
}

//nolint:dupl // ListReferencedPowers gets the collection of Power from
// ListReferencedPowers gets the collection of Power from
// a provided reference.
func ListReferencedPowers(c common.Client, link string) ([]*Power, error) {
func ListReferencedPowers(c common.Client, link string) ([]*Power, error) { //nolint:dupl
var result []*Power
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/redundancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ func GetRedundancy(c common.Client, uri string) (*Redundancy, error) {
return &redundancy, nil
}

//nolint:dupl // ListReferencedRedundancies gets the collection of Redundancy from
// ListReferencedRedundancies gets the collection of Redundancy from
// a provided reference.
func ListReferencedRedundancies(c common.Client, link string) ([]*Redundancy, error) {
func ListReferencedRedundancies(c common.Client, link string) ([]*Redundancy, error) { //nolint:dupl
var result []*Redundancy
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ func GetRole(c common.Client, uri string) (*Role, error) {
return &role, nil
}

//nolint:dupl // ListReferencedRoles gets the collection of Role from
// ListReferencedRoles gets the collection of Role from
// a provided reference.
func ListReferencedRoles(c common.Client, link string) ([]*Role, error) {
func ListReferencedRoles(c common.Client, link string) ([]*Role, error) { //nolint:dupl
var result []*Role
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/secureboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ func GetSecureBoot(c common.Client, uri string) (*SecureBoot, error) {
return &secureboot, nil
}

//nolint:dupl // ListReferencedSecureBoots gets the collection of SecureBoot from
// ListReferencedSecureBoots gets the collection of SecureBoot from
// a provided reference.
func ListReferencedSecureBoots(c common.Client, link string) ([]*SecureBoot, error) {
func ListReferencedSecureBoots(c common.Client, link string) ([]*SecureBoot, error) { //nolint:dupl
var result []*SecureBoot
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/simplestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func GetSimpleStorage(c common.Client, uri string) (*SimpleStorage, error) {
return &simplestorage, nil
}

//nolint:dupl // ListReferencedSimpleStorages gets the collection of SimpleStorage from
// ListReferencedSimpleStorages gets the collection of SimpleStorage from
// a provided reference.
func ListReferencedSimpleStorages(c common.Client, link string) ([]*SimpleStorage, error) {
func ListReferencedSimpleStorages(c common.Client, link string) ([]*SimpleStorage, error) { //nolint:dupl
var result []*SimpleStorage
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/softwareinventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func GetSoftwareInventory(c common.Client, uri string) (*SoftwareInventory, erro
return &softwareinventory, nil
}

//nolint:dupl // ListReferencedSoftwareInventories gets the collection of SoftwareInventory from
// ListReferencedSoftwareInventories gets the collection of SoftwareInventory from
// a provided reference.
func ListReferencedSoftwareInventories(c common.Client, link string) ([]*SoftwareInventory, error) {
func ListReferencedSoftwareInventories(c common.Client, link string) ([]*SoftwareInventory, error) { //nolint:dupl
var result []*SoftwareInventory
if link == "" {
return result, nil
Expand Down
8 changes: 4 additions & 4 deletions redfish/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ func GetStorage(c common.Client, uri string) (*Storage, error) {
return &storage, nil
}

//nolint:dupl // ListReferencedStorages gets the collection of Storage from a provided
// ListReferencedStorages gets the collection of Storage from a provided
// reference.
func ListReferencedStorages(c common.Client, link string) ([]*Storage, error) {
func ListReferencedStorages(c common.Client, link string) ([]*Storage, error) { //nolint:dupl
var result []*Storage
if link == "" {
return result, nil
Expand Down Expand Up @@ -360,9 +360,9 @@ func GetStorageController(c common.Client, uri string) (*StorageController, erro
return &storage, nil
}

//nolint:dupl // ListReferencedStorageControllers gets the collection of StorageControllers
// ListReferencedStorageControllers gets the collection of StorageControllers
// from a provided reference.
func ListReferencedStorageControllers(c common.Client, link string) ([]*StorageController, error) {
func ListReferencedStorageControllers(c common.Client, link string) ([]*StorageController, error) { //nolint:dupl
var result []*StorageController
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ func GetTask(c common.Client, uri string) (*Task, error) {
return &task, nil
}

//nolint:dupl // ListReferencedTasks gets the collection of Task from
// ListReferencedTasks gets the collection of Task from
// a provided reference.
func ListReferencedTasks(c common.Client, link string) ([]*Task, error) {
func ListReferencedTasks(c common.Client, link string) ([]*Task, error) { //nolint:dupl
var result []*Task
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/thermal.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ func GetThermal(c common.Client, uri string) (*Thermal, error) {
return &thermal, nil
}

//nolint:dupl // ListReferencedThermals gets the collection of Thermal from a provided reference.
func ListReferencedThermals(c common.Client, link string) ([]*Thermal, error) {
// ListReferencedThermals gets the collection of Thermal from a provided reference.
func ListReferencedThermals(c common.Client, link string) ([]*Thermal, error) { //nolint:dupl
var result []*Thermal
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/virtualmedia.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ func GetVirtualMedia(c common.Client, uri string) (*VirtualMedia, error) {
return &virtualmedia, nil
}

//nolint:dupl // ListReferencedVirtualMedias gets the collection of VirtualMedia from
// ListReferencedVirtualMedias gets the collection of VirtualMedia from
// a provided reference.
func ListReferencedVirtualMedias(c common.Client, link string) ([]*VirtualMedia, error) {
func ListReferencedVirtualMedias(c common.Client, link string) ([]*VirtualMedia, error) { //nolint:dupl
var result []*VirtualMedia
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/vlannetworkinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ func GetVLanNetworkInterface(c common.Client, uri string) (*VLanNetworkInterface
return &vlannetworkinterface, nil
}

//nolint:dupl // ListReferencedVLanNetworkInterfaces gets the collection of VLanNetworkInterface from
// ListReferencedVLanNetworkInterfaces gets the collection of VLanNetworkInterface from
// a provided reference.
func ListReferencedVLanNetworkInterfaces(c common.Client, link string) ([]*VLanNetworkInterface, error) {
func ListReferencedVLanNetworkInterfaces(c common.Client, link string) ([]*VLanNetworkInterface, error) { //nolint:dupl
var result []*VLanNetworkInterface
if link == "" {
return result, nil
Expand Down
4 changes: 2 additions & 2 deletions redfish/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ func GetVolume(c common.Client, uri string) (*Volume, error) {
return &volume, nil
}

//nolint:dupl // ListReferencedVolumes gets the collection of Volumes from a provided reference.
func ListReferencedVolumes(c common.Client, link string) ([]*Volume, error) {
// ListReferencedVolumes gets the collection of Volumes from a provided reference.
func ListReferencedVolumes(c common.Client, link string) ([]*Volume, error) { //nolint:dupl
var result []*Volume
if link == "" {
return result, nil
Expand Down
Loading

0 comments on commit 0c33abf

Please sign in to comment.