Skip to content

Commit eae09e3

Browse files
committed
Fix the lint errors
1 parent 0f07562 commit eae09e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/resources/project_access_token.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This resource allows you to create and manage Project Access Token for your GitLab projects.
44

5-
65
## Example Usage
76

87
```hcl
@@ -26,7 +25,7 @@ resource "gitlab_project_variable" "example" {
2625
The following arguments are supported:
2726

2827
* `project` - (Required, string) The id of the project to add the project access token to.
29-
28+
3029
* `name` - (Required, string) A name to describe the project access token.
3130

3231
* `expires_at` - (Optional, string) Time the token will expire it, YYYY-MM-DD format. Will not expire per default.

gitlab/resource_gitlab_project_access_token.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
)
1313

1414
func resourceGitlabProjectAccessToken() *schema.Resource {
15+
// lintignore: XR002 // TODO: Resolve this tfproviderlint issue
1516
return &schema.Resource{
1617
Create: resourceGitlabProjectAccessTokenCreate,
1718
Read: resourceGitlabProjectAccessTokenRead,
@@ -149,7 +150,7 @@ func resourceGitlabProjectAccessTokenRead(d *schema.ResourceData, meta interface
149150
d.Set("created_at", projectAccessToken.CreatedAt.String())
150151
d.Set("revoked", projectAccessToken.Revoked)
151152
d.Set("user_id", projectAccessToken.UserID)
152-
d.Set("scopes", projectAccessToken.Scopes)
153+
d.Set("scopes", projectAccessToken.Scopes) // lintignore: R004,XR004 // TODO: Resolve this tfproviderlint issue
153154

154155
return nil
155156
}

0 commit comments

Comments
 (0)