Linting fails after forking and cloning
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Bắt đầu tại pkg/classroom/classroom.go:144, nơi xảy ra lỗi govet được báo cáo trong lệnh gọi fmt.Sprintf. Chạy golangci-lint run và go test -v ./... trước và sau khi thay đổi; được coi là hoàn tất khi lỗi lint được giải quyết và bộ kiểm thử vẫn vượt qua.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 126
- Fork
- 21
- Merge trung bình
- 25 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue load-balancing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ktrubilo9/edge-proxy#53 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[receiver/dockerstats] ContainerEnvToMap truncates environment variable values containing "="Đang mởbug needs triage receiver/dockerstats
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
open-telemetry/opentelemetry-collector-contrib#51948 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
LanternOps/breeze#8353 ·
Maintainer thường phản hồi trong vòng 1 ngày