Conversation
|
Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, you can find updates in the #github-notifications channel in the community Slack. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the project's linting setup by overhauling the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the .golangci.yml configuration to be more explicit and structured. The changes are mostly good, but there's a misconfiguration in how directories are excluded from linting. I've added a comment with a suggestion to correct the configuration file structure.
| tests: false | ||
|
|
||
| linters-settings: | ||
| staticcheck: | ||
| go: "1.25" | ||
| checks: ["all", "-ST1005"] | ||
| linters: | ||
| default: none | ||
| enable: | ||
| - cyclop | ||
| - goconst | ||
| - govet | ||
| - staticcheck | ||
| - unused | ||
| disable: | ||
| - wsl | ||
| exclusions: | ||
| paths: | ||
| - vendor | ||
| - bundle | ||
| - config | ||
| - hack | ||
| - helpers | ||
| - img |
There was a problem hiding this comment.
The exclusions key is not a valid configuration option under the linters section in golangci-lint. To exclude directories from being linted, you should use the skip-dirs key under the run section. The current configuration will not exclude the specified directories, which may lead to unexpected linting errors.
tests: false
skip-dirs:
- vendor
- bundle
- config
- hack
- helpers
- img
linters:
default: none
enable:
- cyclop
- goconst
- govet
- staticcheck
- unused
disable:
- wsl|
Thank you, @Amr-Shams. 👍 |
|
@Amr-Shams, there are a couple of lint checks failing - https://github.com/meshery/meshkit/actions/runs/22575597871/job/65455626794?pr=921. I think these were failing previously. Before we make changes to add more lint checks, let's ensure that we have the current set in a passing state. There is an open PR on this that you can review - #922 |
Signed-off-by: Amr-Shams <amr.shams2015.as@gmail.com>
ae5213e to
c2fb80b
Compare
Thanks @leecalcote! I see that #922 has been merged. I will pull the latest changes from master, resolve the merge conflicts in .golangci.yml |
Signed-off-by: Mericio <218162243+simihablo@users.noreply.github.com>
|
Thanks for your contribution to Meshery! 🎉
|
|
Thanks, @Amr-Shams! 💯 |
Description
This PR fixes #915.
Lint checks
make checkpassed (golangci-lint -c .golangci.yml)cyclop,goconst,govet,staticcheck,unusedcyclopmax complexity:45goconst:min-len=3,min-occurrences=10staticcheck:allexceptST1005,ST1000,ST1003,ST1016,ST1020,ST1021,ST1022max-issues-per-linter=30,max-same-issues=5Notes for Reviewers
N/A
Signed commits