what do you think about golangci-lint?
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue demonstrates golangci-lint findings in the ds18b20 driver and mentions the Makefile's existing gofmt target. Start by reading that Makefile target and checking how the ds18b20 driver is handled by the default linter settings. Determine which drivers can be linted without the machine package, then document or configure a repeatable lint check and address its reported findings.
索引モデルが issue の本文から書いたものです。
説明
At least all drivers without the machine package import could be checked. I have tested this with the default settings of linter for the ds18b20 folder as an fast example and got 3 important issues regarding a missing check of error return value:
ds18b20.go:47:15: Error return value of `d.owd.Select` is not checked (errcheck)
d.owd.Select(romid)
^
ds18b20.go:57:14: Error return value of `d.owd.Select` is not checked (errcheck)
d.owd.Select(romid)
^
ds18b20.go:67:14: Error return value of `d.owd.Select` is not checked (errcheck)
d.owd.Select(romid)
^
ds18b20.go:32:23: ST1005: error strings should not end with punctuation or newlines (staticcheck)
errReadTemperature = errors.New("Error: DS18B20. Read temperature error: CRC mismatch.")
^
4 issues:
* errcheck: 3
* staticcheck: 1
Currently gofmt is used in the Makefile.
- 主要言語
- Go
- スター
- 756
- フォーク
- 251
- 平均マージ
- 7日 12時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tinygo-org/drivers のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tinygo-org/drivers#946 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
tinygo-org/drivers#927 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
tinygo-org/drivers#901 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
tinygo-org/drivers#886 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tinygo-org/drivers#877 ·
メンテナーはふだん 3 日以内に返信
tinygo-org/drivers の issue をすべて見る
似ている issue
-
release
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
github/gh-aw-mcpg#17603 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tinygo-org/tinygo#6727 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
oras-project/oras-go#1827 ·
メンテナーはふだん 1 日以内に返信
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ClickHouse/clickhouse-go#2185 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage receiver/podman
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信