gitlabhq/gitlab-shell

View on GitHub
internal/gitlabnet/personalaccesstoken/client.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Client.GetPersonalAccessToken has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (c *Client) GetPersonalAccessToken(ctx context.Context, args *commandargs.Shell, name string, scopes *[]string, expiresAt string) (*Response, error) {
Severity: Minor
Found in internal/gitlabnet/personalaccesstoken/client.go - About 35 mins to fix

    Method Client.getRequestBody has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (c *Client) getRequestBody(ctx context.Context, args *commandargs.Shell, name string, scopes *[]string, expiresAt string) (*RequestBody, error) {
    Severity: Minor
    Found in internal/gitlabnet/personalaccesstoken/client.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status