orisano/go-adal

View on GitHub

Showing 17 of 17 total issues

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 AuthenticationContext.Client should have comment or be unexported
    Open

    func (a *AuthenticationContext) Client(ctx context.Context, resource, clientID, clientSecret string) (*http.Client, error) {
    Severity: Minor
    Found in authentication_context.go by golint

    exported type Option should have comment or be unexported
    Open

    type Option func(*options)
    Severity: Minor
    Found in option.go by golint

    2: cannot find package "golang.org/x/oauth2/clientcredentials" in any of:
    Open

        "golang.org/x/oauth2/clientcredentials"
    Severity: Minor
    Found in authentication_context.go by govet

    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 function NewAuthenticationContext should have comment or be unexported
    Open

    func NewAuthenticationContext(tenant string, opts ...Option) (*AuthenticationContext, error) {
    Severity: Minor
    Found in authentication_context.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 function ValidateAuthority should have comment or be unexported
    Open

    func ValidateAuthority() Option {
    Severity: Minor
    Found in option.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

    exported type AuthenticationContext should have comment or be unexported
    Open

    type AuthenticationContext struct {
    Severity: Minor
    Found in authentication_context.go by golint

    exported function SetAuthorityHost should have comment or be unexported
    Open

    func SetAuthorityHost(authorityHost string) Option {
    Severity: Minor
    Found in option.go by golint

    exported const WorldWideAuthority should have comment (or a comment on this block) or be unexported
    Open

        WorldWideAuthority = "login.microsoftonline.com"
    Severity: Minor
    Found in constants.go by golint
    Severity
    Category
    Status
    Source
    Language