Linting fails after forking and cloning
まだ誰も着手していません。
評価
調査の方向性
報告された govet エラーが fmt.Sprintf 呼び出しで発生している pkg/classroom/classroom.go:144 から始めてください。変更の前後で golangci-lint run と go test -v ./... を実行してください。lint エラーが解消され、テストスイートが引き続き成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I was going to fix the error in CONTRIBUTING.md I mentioned in Issue #95. The golangci-lint run command results in the following...
gh-classroom on main via 🐹 v1.23.6 took 18s
❯golangci-lint run
pkg/classroom/classroom.go:144:21: printf: non-constant format string in call to fmt.Sprintf (govet)
return fmt.Sprintf(a.Classroom.Url)
Context
Platform
MacOS
Also replicated it on CachyOS Linux (Arch based distro)
Submitting a pull request
-
[Fork](https://github.com/github/gh-classroom/fork) and clone the repository -
Configure and install the dependencies: `go mod tidy` -
Make sure the tests pass on your machine: `go test -v ./...` -
Make sure linter passes on your machine: `golangci-lint run` <----- This line causes the error -
Create a new branch: `git checkout -b my-branch-name` -
Make your change, add tests, and make sure the tests and linter still pass -
Push to your fork and [submit a pull request](https://github.com/github/gh-classroom/compare) -
Please be patient while waiting for your pull request to be reviewed and merged.
- 主要言語
- Go
- スター
- 126
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-classroom のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
github/gh-classroom#95 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
github/gh-classroom#21 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
github/gh-classroom#116 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
github/gh-classroom#110 ·
-
Sanitize Team name オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
github/gh-classroom#109 ·
github/gh-classroom の issue をすべて見る
似ている issue
-
bug github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#1393 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JakeChampion/lang#10213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
oasisprotocol/oasis-sdk#2523 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100