Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add basic linter workflow#41

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juruen merged 1 commit intomainfromjuruen/lint
Mar 26, 2025
Merged

add basic linter workflow#41

juruen merged 1 commit intomainfromjuruen/lint
Mar 26, 2025

Conversation

juruen
Copy link
Collaborator

Context

This PR adds a lint workflow with a basic configuration. It also fixes the initial linter errors it reports.

@juruenjuruen changed the titleadd basic linteradd basic linter workflowMar 25, 2025
@juruenjuruen marked this pull request as ready for reviewMarch 25, 2025 07:30
@CopilotCopilotAI review requested due to automatic review settingsMarch 25, 2025 07:30
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR introduces a basic linting workflow for Go projects while fixing some linter errors. Key changes include:

  • Adding a GitHub Actions workflow (.github/workflows/lint.yaml) that verifies code formatting and dependency integrity.
  • Providing a golangci-lint configuration file (.golangci.yml) with standard linters enabled.
  • Refactoring code in multiple packages (cmd, pkg) to address linter issues, such as unused parameter handling and minor stylistic improvements.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
.github/workflows/lint.yamlAdds a lint workflow to check Go files and verify dependencies.
.golangci.ymlIntroduces basic configurations for golangci-lint.
cmd/mcpcurl/main.goRefines import order and updates function signature parameters for unused arguments.
pkg/translations/translations.goUpdates function signatures to ignore unused parameters and changes error handling in DumpTranslationKeyMap.
cmd/github-mcp-server/main.goUpdates command functions to use underscore for unused arguments and adjusts viper flag binding.
pkg/github/*_test.goRefactors HTTP handler functions to ignore unused request parameters, ensuring cleaner test code.
pkg/github/server.goIgnores an unused parameter in an inline callback, improving consistency.

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon.Learn more

Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Awesome, glad to see this housekeeping stuff getting into the project before I embarrass myself too hard 😂

juruen reacted with laugh emoji
@juruenjuruen merged commit92bceb5 intomainMar 26, 2025
13 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@juruen@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp