Make linters happy.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stanislav Nikitin 2022-06-29 13:19:22 +05:00
parent 14581dbe83
commit 7fa3553da6
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
4 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,8 @@ linters:
- testpackage
# Crashes a lot.
- gci
# Deprecated.
- exhaustivestruct
linters-settings:
lll:
line-length: 128

View File

@ -45,7 +45,7 @@ func Parse() *Config {
panic("Failed to read configuration file data: " + readErr.Error())
}
// nolint:exhaustivestruct
// nolint:exhaustruct
cfg := &Config{}
if err := yaml.Unmarshal(data, cfg); err != nil {

View File

@ -16,7 +16,7 @@ type Client struct {
// NewGitlabClient creates new Gitlab's client controlling structure.
func NewGitlabClient(cfg *Config) *Client {
// nolint:exhaustivestruct
// nolint:exhaustruct
c := &Client{
config: cfg,
}
@ -43,7 +43,7 @@ func (c *Client) GetClient() *gitlab.Client {
// GetIssuesByTitle returns list of issues that matches passed title in specific
// project.
func (c *Client) GetIssuesByTitle(projectID int, title string) ([]*gitlab.Issue, error) {
// nolint:exhaustivestruct
// nolint:exhaustruct
issues, resp, err := c.client.Issues.ListProjectIssues(projectID, &gitlab.ListProjectIssuesOptions{
ListOptions: gitlab.ListOptions{
PerPage: 1000,

View File

@ -123,7 +123,7 @@ func (b *BaseTask) Run() {
b.log("Found no opened tasks and task should be created, doing so. Task deadline: " + nextDeadlineTS.String())
// nolint:exhaustivestruct
// nolint:exhaustruct
err := b.client.CreateIssue(b.projectID, &g.CreateIssueOptions{
Title: &b.title,
Description: &b.body,