feat: use dto for gethardwareinfo #1544
Annotations
3 errors
golangci-lint:
internal/usecase/devices/info.go#L335
[golangci] reported by reviewdog 🐶
Function 'getHardwareInfoEntityToDTOv2' is too long (109 > 100) (funlen)
Raw Output:
internal/usecase/devices/info.go:335: Function 'getHardwareInfoEntityToDTOv2' is too long (109 > 100) (funlen)
func (uc *UseCase) getHardwareInfoEntityToDTOv2(d *wsmanAPI.HWResults) *dtov2.HardwareInfoResults {
|
golangci-lint:
internal/usecase/devices/info_test.go#L283
[golangci] reported by reviewdog 🐶
File is not `gci`-ed with --skip-generated -s standard -s default (gci)
Raw Output:
internal/usecase/devices/info_test.go:283: File is not `gci`-ed with --skip-generated -s standard -s default (gci)
res: dto.HardwareInfoResults{CIMComputerSystemPackage:dto.CIMComputerSystemPackage{Response:"", Responses:""}, CIMSystemPackage:dto.CIMSystemPackage{Responses:[]dto.CIMSystemPackagingResponses(nil)}, CIMChassis:dto.CIMChassis{Response:dto.CIMChassisResponse{Version:"", SerialNumber:"", Model:"", Manufacturer:"", ElementName:"", CreationClassName:"", Tag:"", OperationalStatus:[]int(nil), PackageType:0, ChassisPackageType:0}, Responses:[]interface {}(nil)}, CIMChip:dto.CIMChips{Responses:[]dto.CIMChipGet{dto.CIMChipGet{CanBeFRUed:false, CreationClassName:"", ElementName:"", Manufacturer:"", OperationalStatus:[]int(nil), Tag:"", Version:""}}}, CIMCard:dto.CIMCard{Response:dto.CIMCardResponseGet{CanBeFRUed:false, CreationClassName:"", ElementName:"", Manufacturer:"", Model:"", OperationalStatus:[]int(nil), PackageType:0, SerialNumber:"", Tag:"", Version:""}, Responses:[]interface {}(nil)}, CIMBIOSElement:dto.CIMBIOSElement{Response:dto.CIMBIOSElementResponse{TargetOperatingSystem:0, SoftwareElementID:"", SoftwareElementState:0, Name:"", OperationalStatus:[]int(nil), ElementName:"", Version:"", Manufacturer:"", PrimaryBIOS:false, ReleaseDate:dto.Time{DateTime:""}}, Responses:[]interface {}(nil)}, CIMProcessor:dto.CIMProcessor{Responses:[]dto.CIMProcessorResponse{dto.CIMProcessorResponse{DeviceID:"", CreationClassName:"", SystemName:"", SystemCreationClassName:"", ElementName:"", OperationalStatus:[]int(nil), HealthState:0, EnabledState:0, RequestedState:0, Role:"", Family:0, OtherFamilyDescription:"", UpgradeMethod:0, MaxClockSpeed:0, CurrentClockSpeed:0, Stepping:"", CPUStatus:0, ExternalBusClockSpeed:0}}}, CIMPhysicalPackage:dto.CIMPhysicalPackage{Responses:[]dto.CIMPhysicalPackageResponses(nil)}, CIMPhysicalMemory:dto.CIMPhysicalMemory{Responses:[]dto.CIMPhysicalMemoryResponse(nil)}, CIMMediaAccessDevice:dto.CIMMediaAccessDevice{Pull:[]interface {}(nil), Get:struct { Capabilities []int; CreationClassName string; DeviceID string; ElementName string; EnabledDefault int; EnabledState int; MaxMediaSize int; OperationalStatus []int; RequestedState int; Security int; SystemCreationClassName string; SystemName string }{Capabilities:[]int(nil), CreationClassName:"", DeviceID:"", ElementName:"", EnabledDefault:0, EnabledState:0, MaxMediaSize:0, OperationalStatus:[]int(nil), RequestedState:0, Security:0, SystemCreationClassName:"", SystemName:""}}},
|
golangci-lint
reviewdog exited with status code: 1
|
Loading