Preparing report...

Report for github.com/sj14/astral

A+    Excellent!    Found 3 issues across 5 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!


gocyclo80%

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.


golint60%

Golint is a linter for Go source code.

    • astral/moon.go
    • Line 41: warning: comment on exported function MoonPhase should be of the form "MoonPhase ..." (golint)
    • astral/sun.go
    • Line 21: warning: exported type SunDirection should have comment or be unexported (golint)
    • Line 24: warning: exported const SunDirectionRising should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const DepressionCivil should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type Observer should have comment or be unexported (golint)
    • Line 62: warning: don't use underscores in Go names; func minutes_to_timedelta should be minutesToTimedelta (golint)
    • Line 68: warning: don't use underscores in Go names; func jday_to_jcentury should be jdayToJcentury (golint)
    • Line 73: warning: don't use underscores in Go names; func jcentury_to_jday should be jcenturyToJday (golint)
    • Line 78: warning: don't use underscores in Go names; func geom_mean_long_sun should be geomMeanLongSun (golint)
    • Line 84: warning: don't use underscores in Go names; func geom_mean_anomaly_sun should be geomMeanAnomalySun (golint)
    • Line 89: warning: don't use underscores in Go names; func eccentric_location_earth_orbit should be eccentricLocationEarthOrbit (golint)
    • Line 94: warning: don't use underscores in Go names; func sun_eq_of_center should be sunEqOfCenter (golint)
    • Line 107: warning: don't use underscores in Go names; func sun_true_long should be sunTrueLong (golint)
    • Line 115: warning: don't use underscores in Go names; func sun_true_anomoly should be sunTrueAnomoly (golint)
    • Line 122: warning: don't use underscores in Go names; func sun_rad_vector should be sunRadVector (golint)
    • Line 129: warning: don't use underscores in Go names; func sun_apparent_long should be sunApparentLong (golint)
    • Line 130: warning: don't use underscores in Go names; var true_long should be trueLong (golint)
    • Line 136: warning: don't use underscores in Go names; func mean_obliquity_of_ecliptic should be meanObliquityOfEcliptic (golint)
    • Line 141: warning: don't use underscores in Go names; func obliquity_correction should be obliquityCorrection (golint)
    • Line 149: warning: don't use underscores in Go names; func sun_rt_ascension should be sunRtAscension (golint)
    • Line 159: warning: don't use underscores in Go names; func sun_declination should be sunDeclination (golint)
    • Line 167: warning: don't use underscores in Go names; func var_y should be varY (golint)
    • Line 173: warning: don't use underscores in Go names; func eq_of_time should be eqOfTime (golint)
    • Line 203: warning: don't use underscores in Go names; func hour_angle should be hourAngle (golint)
    • Line 204: warning: don't use underscores in Go names; var latitude_rad should be latitudeRad (golint)
    • Line 205: warning: don't use underscores in Go names; var declination_rad should be declinationRad (golint)
    • Line 206: warning: don't use underscores in Go names; var zenith_rad should be zenithRad (golint)
    • Line 232: warning: don't use underscores in Go names; func adjust_to_horizon should be adjustToHorizon (golint)
    • Line 246: warning: don't use underscores in Go names; func adjust_to_obscuring_feature should be adjustToObscuringFeature (golint)
    • Line 260: warning: don't use underscores in Go names; func refraction_at_zenith should be refractionAtZenith (golint)
    • Line 294: warning: don't use underscores in Go names; func time_of_transit should be timeOfTransit (golint)
    • Line 302: warning: don't use underscores in Go names; var adjustment_for_elevation should be adjustmentForElevation (golint)
    • Line 317: warning: don't use underscores in Go names; var adjustment_for_refraction should be adjustmentForRefraction (golint)
    • Line 348: warning: comment on exported function TimeAtElevation should be of the form "TimeAtElevation ..." (golint)
    • Line 376: warning: comment on exported function Noon should be of the form "Noon ..." (golint)
    • Line 416: warning: comment on exported function Midnight should be of the form "Midnight ..." (golint)
    • Line 461: warning: exported function ZenithAndAzimuth should have comment or be unexported (golint)
    • Line 461: warning: don't use underscores in Go names; func parameter with_refraction should be withRefraction (golint)
    • Line 471: warning: don't use underscores in Go names; var utc_datetime should be utcDatetime (golint)
    • Line 547: warning: comment on exported function Zenith should be of the form "Zenith ..." (golint)
    • Line 550: warning: don't use underscores in Go names; func parameter with_refraction should be withRefraction (golint)
    • Line 555: warning: comment on exported function Azimuth should be of the form "Azimuth ..." (golint)
    • Line 566: warning: comment on exported function Elevation should be of the form "Elevation ..." (golint)
    • Line 574: warning: don't use underscores in Go names; func parameter with_refraction should be withRefraction (golint)
    • Line 578: warning: comment on exported function Dawn should be of the form "Dawn ..." (golint)
    • Line 596: warning: exported var ErrAlwaysBelow should have comment or be unexported (golint)
    • Line 600: warning: comment on exported function Sunrise should be of the form "Sunrise ..." (golint)
    • Line 621: warning: comment on exported function Sunset should be of the form "Sunset ..." (golint)
    • Line 666: warning: comment on exported function Dusk should be of the form "Dusk ..." (golint)
    • Line 680: warning: comment on exported function Daylight should be of the form "Daylight ..." (golint)
    • Line 701: warning: comment on exported function Night should be of the form "Night ..." (golint)
    • Line 727: warning: comment on exported function Twilight should be of the form "Twilight ..." (golint)
    • Line 763: warning: comment on exported function GoldenHour should be of the form "GoldenHour ..." (golint)
    • Line 813: warning: comment on exported function BlueHour should be of the form "BlueHour ..." (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!


misspell60%

Misspell Finds commonly misspelled English words

    • astral/sun.go
    • Line 115: warning: "anomoly" is a misspelling of "anomaly" (misspell)
    • Line 123: warning: "anomoly" is a misspelling of "anomaly" (misspell)