Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add golangci linter in github workflow action #189

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

WheeskyJack
Copy link
Contributor

@WheeskyJack WheeskyJack commented Jun 27, 2024

Hi @schollz
Generally, we use automated linters to keep the basic sanity in code base.
So, I am proposing some basic linters for this repo using GitHub Actions.
Feel free to suggest changes if needed.
Following are the basic linters introduced using golangci-lint tool.

    - errcheck
    - gocyclo
    - gofmt
    - goimports
    - gosimple
    - govet
    - ineffassign
    - staticcheck
    - unused

two of the linters are showing some errors. that can be addressed as separate pr.

enable basic linters using golangci-lint tool
@schollz schollz merged commit 52e95e5 into schollz:main Jun 27, 2024
1 of 2 checks passed
@WheeskyJack WheeskyJack deleted the linter_github_workflow branch June 27, 2024 13:44
renovate bot referenced this pull request in nobl9/sloctl Jul 29, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/schollz/progressbar/v3](https://togithub.com/schollz/progressbar)
| `v3.14.4` -> `v3.14.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fschollz%2fprogressbar%2fv3/v3.14.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fschollz%2fprogressbar%2fv3/v3.14.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fschollz%2fprogressbar%2fv3/v3.14.4/v3.14.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fschollz%2fprogressbar%2fv3/v3.14.4/v3.14.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>schollz/progressbar
(github.com/schollz/progressbar/v3)</summary>

###
[`v3.14.5`](https://togithub.com/schollz/progressbar/releases/tag/v3.14.5)

[Compare
Source](https://togithub.com/schollz/progressbar/compare/v3.14.4...v3.14.5)

#### What's Changed

- add golangci linter in github workflow action by
[@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) in
[https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)
-   chore: update deps

#### New Contributors

- [@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) made their
first contribution in
[https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)

**Full Changelog**:
schollz/progressbar@v3.14.4...v3.14.5

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am
every weekday,every weekend" (UTC), Automerge - At any time (no schedule
defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job log](https://developer.mend.io/github/nobl9/sloctl).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJnb2xhbmciLCJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in cloudquery/plugin-pb-go Aug 1, 2024
…#382)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/schollz/progressbar/v3](https://togithub.com/schollz/progressbar) | require | patch | `v3.14.4` -> `v3.14.5` |

---

### Release Notes

<details>
<summary>schollz/progressbar (github.com/schollz/progressbar/v3)</summary>

### [`v3.14.5`](https://togithub.com/schollz/progressbar/releases/tag/v3.14.5)

[Compare Source](https://togithub.com/schollz/progressbar/compare/v3.14.4...v3.14.5)

#### What's Changed

-   add golangci linter in github workflow action by [@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) in [https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)
-   chore: update deps

#### New Contributors

-   [@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) made their first contribution in [https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)

**Full Changelog**: schollz/progressbar@v3.14.4...v3.14.5

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWVyZ2UiXX0=-->
kodiakhq bot referenced this pull request in cloudquery/cloudquery Aug 1, 2024
…#18807)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/schollz/progressbar/v3](https://togithub.com/schollz/progressbar) | require | patch | `v3.14.4` -> `v3.14.5` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>schollz/progressbar (github.com/schollz/progressbar/v3)</summary>

### [`v3.14.5`](https://togithub.com/schollz/progressbar/releases/tag/v3.14.5)

[Compare Source](https://togithub.com/schollz/progressbar/compare/v3.14.4...v3.14.5)

#### What's Changed

-   add golangci linter in github workflow action by [@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) in [https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)
-   chore: update deps

#### New Contributors

-   [@&#8203;WheeskyJack](https://togithub.com/WheeskyJack) made their first contribution in [https://github.com/schollz/progressbar/pull/189](https://togithub.com/schollz/progressbar/pull/189)

**Full Changelog**: schollz/progressbar@v3.14.4...v3.14.5

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants