Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature Request: Annotate nullability

オープン
#32 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
api

調査の方向性

Start with HidSharp/Platform/Linux/LinuxHidDevice.cs around lines 120-124 and inspect the HidDevice API properties that expose strings or other nullable values. Compare the issue's two annotation options against the project's target framework and existing API conventions. Done means the public API clearly communicates which values can return null, consistently across the relevant devices and platforms.

索引モデルが issue の本文から書いたものです。

説明

enhancement

As a consumer, it can be a bit unclear knowing what can return null.

If I set my IDE to pessimistic null analysis, I get potential null reference warnings in many locations, such as all string properties for HidDevice, even for properties that seemingly cannot return null:

https://github.com/OpenTabletDriver/HIDSharpCore/blob/944a386ea6d51480ccd7dde7bb78e78768da8e1d/HidSharp/Platform/Linux/LinuxHidDevice.cs#L120-L124

It would be helpful to annotate this in the API, either using C#'s own #nullable feature, or by using JetBrains Annotations.

主要言語
C#
スター
13
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenTabletDriver/HIDSharpCore のほかの issue

OpenTabletDriver/HIDSharpCore の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。