Preparing report...

Report for github.com/observerly/dusk

(v0.0.0-20220222155842-1dd3a6a9f499)

A+    Excellent!    Found 7 issues across 16 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint56%

Golint is a linter for Go source code.

    • pkg/dusk/coordinates.go
    • Line 7: warning: exported type EquatorialCoordinate should have comment or be unexported (golint)
    • Line 12: warning: exported type EclipticCoordinate should have comment or be unexported (golint)
    • Line 18: warning: exported type HorizontalCoordinate should have comment or be unexported (golint)
    • Line 29: warning: exported type TemporalHorizontalCoordinate should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function ConvertEclipticCoordinateToEquatorial should be of the form "ConvertEclipticCoordinateToEquatorial ..." (golint)
    • Line 81: warning: comment on exported function ConvertEquatorialCoordinateToHorizontal should be of the form "ConvertEquatorialCoordinateToHorizontal ..." (golint)
    • pkg/dusk/epoch.go
    • Line 8: warning: comment on exported var J1970 should be of the form "J1970 ..." (golint)
    • Line 11: warning: comment on exported var J2000 should be of the form "J2000 ..." (golint)
    • Line 14: warning: exported type JulianPeriod should have comment or be unexported (golint)
    • Line 25: warning: comment on exported function GetJulianDate should be of the form "GetJulianDate ..." (golint)
    • Line 38: warning: comment on exported function GetUniversalTime should be of the form "GetUniversalTime ..." (golint)
    • Line 47: warning: comment on exported function GetGreenwhichSiderealTime should be of the form "GetGreenwhichSiderealTime ..." (golint)
    • Line 56: warning: don't use underscores in Go names; var JD_0 should be JD0 (golint)
    • Line 62: warning: don't use underscores in Go names; var T_0 should be T0 (golint)
    • Line 66: warning: don't use underscores in Go names; var T_0 should be T0 (golint)
    • Line 76: warning: don't use underscores in Go names; var T_0 should be T0 (golint)
    • Line 88: warning: comment on exported function GetLocalSiderealTime should be of the form "GetLocalSiderealTime ..." (golint)
    • Line 109: warning: comment on exported function GetCurrentJulianDayRelativeToJ2000 should be of the form "GetCurrentJulianDayRelativeToJ2000 ..." (golint)
    • Line 128: warning: comment on exported function GetCurrentJulianCenturyRelativeToJ2000 should be of the form "GetCurrentJulianCenturyRelativeToJ2000 ..." (golint)
    • Line 144: warning: comment on exported function GetCurrentJulianPeriod should be of the form "GetCurrentJulianPeriod ..." (golint)
    • Line 164: warning: comment on exported function GetMeanGreenwhichSiderealTimeInDegrees should be of the form "GetMeanGreenwhichSiderealTimeInDegrees ..." (golint)
    • Line 192: warning: comment on exported function GetApparentGreenwhichSiderealTimeInDegrees should be of the form "GetApparentGreenwhichSiderealTimeInDegrees ..." (golint)
    • Line 227: warning: comment on exported function GetMeanSolarTime should be of the form "GetMeanSolarTime ..." (golint)
    • pkg/dusk/lunar.go
    • Line 10: warning: comment on exported function GetLunarMeanLongitude should be of the form "GetLunarMeanLongitude ..." (golint)
    • Line 29: warning: comment on exported function GetLunarMeanElongation should be of the form "GetLunarMeanElongation ..." (golint)
    • Line 48: warning: comment on exported function GetLunarMeanAnomaly should be of the form "GetLunarMeanAnomaly ..." (golint)
    • Line 67: warning: comment on exported function GetLunarArgumentOfLatitude should be of the form "GetLunarArgumentOfLatitude ..." (golint)
    • Line 86: warning: comment on exported function GetLunarHorizontalLongitude should be of the form "GetLunarHorizontalLongitude ..." (golint)
    • Line 105: warning: comment on exported function GetLunarHorizontalLatitude should be of the form "GetLunarHorizontalLatitude ..." (golint)
    • Line 123: warning: comment on exported function GetLunarLongitudeOfTheAscendingNode should be of the form "GetLunarLongitudeOfTheAscendingNode ..." (golint)
    • Line 142: warning: comment on exported function GetLunarLongitudeOfNutation should be of the form "GetLunarLongitudeOfNutation ..." (golint)
    • Line 155: warning: comment on exported function GetLunarObliquityOfNutation should be of the form "GetLunarObliquityOfNutation ..." (golint)
    • Line 168: warning: comment on exported function GetLunarEquatorialPosition should be of the form "GetLunarEquatorialPosition ..." (golint)
    • Line 201: warning: comment on exported function GetLunarEclipticPosition should be of the form "GetLunarEclipticPosition ..." (golint)
    • Line 437: warning: comment on exported function GetLunarHorizontalParallax should be of the form "GetLunarHorizontalParallax ..." (golint)
    • Line 451: warning: comment on exported function GetLunarHourAngle should be of the form "GetLunarHourAngle ..." (golint)
    • Line 471: warning: don't use underscores in Go names; var H_0 should be H0 (golint)
    • Line 476: warning: comment on exported function GetLunarTransitJulianDate should be of the form "GetLunarTransitJulianDate ..." (golint)
    • Line 508: warning: comment on exported function GetLunarHorizontalCoordinatesForDay should be of the form "GetLunarHorizontalCoordinatesForDay ..." (golint)
    • pkg/dusk/solar.go
    • Line 8: warning: exported type Sun should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function GetSolarMeanAnomaly should be of the form "GetSolarMeanAnomaly ..." (golint)
    • Line 26: warning: comment on exported function GetSolarEquationOfCenter should be of the form "GetSolarEquationOfCenter ..." (golint)
    • Line 38: warning: comment on exported function GetSolarEclipticLongitude should be of the form "GetSolarEclipticLongitude ..." (golint)
    • Line 50: warning: comment on exported function GetSolarTransitJulianDate should be of the form "GetSolarTransitJulianDate ..." (golint)
    • Line 62: warning: comment on exported function GetSolarDeclination should be of the form "GetSolarDeclination ..." (golint)
    • Line 75: warning: comment on exported function GetSolarMeanLongitude should be of the form "GetSolarMeanLongitude ..." (golint)
    • Line 93: warning: comment on exported function GetSolarHourAngle should be of the form "GetSolarHourAngle ..." (golint)
    • Line 114: warning: comment on exported function GetSunriseSunsetTimesInUTC should be of the form "GetSunriseSunsetTimesInUTC ..." (golint)
    • Line 138: warning: don't use underscores in Go names; var J_transit should be JTransit (golint)
    • Line 140: warning: don't use underscores in Go names; var J_rise should be JRise (golint)
    • Line 142: warning: don't use underscores in Go names; var J_set should be JSet (golint)
    • pkg/dusk/twilight.go
    • Line 9: warning: exported type SunriseStatus should have comment or be unexported (golint)
    • Line 12: warning: exported const AboveHorizon should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Twilight should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function GetLocalTwilight should be of the form "GetLocalTwilight ..." (golint)
    • Line 60: warning: comment on exported function GetLocalCivilTwilight should be of the form "GetLocalCivilTwilight ..." (golint)
    • Line 76: warning: comment on exported function GetLocalNauticalTwilight should be of the form "GetLocalNauticalTwilight ..." (golint)
    • Line 92: warning: comment on exported function GetLocalAstronomicalTwilight should be of the form "GetLocalAstronomicalTwilight ..." (golint)
    • pkg/dusk/utils.go
    • Line 5: warning: comment on exported var TERRA_AXIAL_TILT should be of the form "TERRA_AXIAL_TILT ..." (golint)
    • Line 10: warning: comment on exported function GetEarthObliquity should be of the form "GetEarthObliquity ..." (golint)
    • Line 19: warning: comment on exported function GetMeanObliquityOfTheEcliptic should be of the form "GetMeanObliquityOfTheEcliptic ..." (golint)
    • Line 38: warning: comment on exported function GetNutationInLongitudeOfTheEcliptic should be of the form "GetNutationInLongitudeOfTheEcliptic ..." (golint)
    • Line 51: warning: comment on exported function GetNutationInObliquityOfTheEcliptic should be of the form "GetNutationInObliquityOfTheEcliptic ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!