AutoSpotting/AutoSpotting

View on GitHub
core/instance_queries.go

Summary

Maintainability
A
1 hr
Test Coverage

instance has 24 methods (exceeds 20 allowed). Consider refactoring.
Wontfix

func (i *instance) calculatePrice(spotCandidate instanceTypeInformation) float64 {
    spotPrice := spotCandidate.pricing.spot[*i.Placement.AvailabilityZone]
    debug.Println("Comparing price spot/instance:")

    if i.EbsOptimized != nil && *i.EbsOptimized {
Severity: Minor
Found in core/instance_queries.go - About 2 hrs to fix

    Method instance.getCompatibleSpotInstanceTypesList has 53 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (i *instance) getCompatibleSpotInstanceTypesList(PrioritizationBias string, allowedList []string,
        disallowedList []string) ([]*string, error) {
        current := i.typeInfo
        var acceptableInstanceTypes []acceptableInstance
    
    
    Severity: Minor
    Found in core/instance_queries.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status