orisano/go-adal

View on GitHub
authority.go

Summary

Maintainability
A
45 mins
Test Coverage
B
80%

Method Authority.Validate has 7 return statements (exceeds 4 allowed).
Open

func (a *Authority) Validate(httpClient *http.Client) error {
    if a.validated {
        return nil
    }
    host := a.URL.Host
Severity: Major
Found in authority.go - About 45 mins to fix

    exported method Authority.Validated should have comment or be unexported
    Open

    func (a *Authority) Validated() bool {
    Severity: Minor
    Found in authority.go by golint

    exported method Authority.Validate should have comment or be unexported
    Open

    func (a *Authority) Validate(httpClient *http.Client) error {
    Severity: Minor
    Found in authority.go by golint

    exported method Authority.DeviceURL should have comment or be unexported
    Open

    func (a *Authority) DeviceURL() string {
    Severity: Minor
    Found in authority.go by golint

    exported type Authority should have comment or be unexported
    Open

    type Authority struct {
    Severity: Minor
    Found in authority.go by golint

    exported method Authority.IsADFSAuthority should have comment or be unexported
    Open

    func (a *Authority) IsADFSAuthority() bool {
    Severity: Minor
    Found in authority.go by golint

    exported method Authority.TokenURL should have comment or be unexported
    Open

    func (a *Authority) TokenURL() string {
    Severity: Minor
    Found in authority.go by golint

    exported function NewAuthority should have comment or be unexported
    Open

    func NewAuthority(urlStr string, validateAuthority bool) (*Authority, error) {
    Severity: Minor
    Found in authority.go by golint

    exported method Authority.AuthorityURL should have comment or be unexported
    Open

    func (a *Authority) AuthorityURL() string {
    Severity: Minor
    Found in authority.go by golint

    There are no issues that match your filters.

    Category
    Status