Fix All + Enforce ignores 'root = true' in a .editorconfig that starts with a UTF-8 BOM

オープン 初心者向け
#641 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
tooling

調査の方向性

code_actions/editorconfig.rsを読み、1行目がどのように解析されるか、またis_root()がEditorConfigの探索をどのように決定するかを追ってください。既存の解析テストを確認し、root = trueの前にUTF-8 BOMを付けたケースを追加または実行してください。Fix All + enforceが親ファイルではなくリポジトリのファイルを対象にすれば完了です。

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

説明

bug

Where: code_actions/editorconfig.rs line parsing — trim() does not strip U+FEFF, so line 1 parses as key <BOM>root and is_root() is false.
Repro: Visual Studio–created .editorconfig (BOM, root = true) at the repo root and a root = true .editorconfig in a parent/home directory; Fix All + enforce.
Expected: the repo's file is the target (EditorConfig parsers ignore a leading BOM). Actual: the walk continues past it and the rule is written to the ancestor file. [FIXALL-ENFORCE]

主要言語
TypeScript
スター
185
フォーク
12
平均マージ
7時間 33分
マージ済み PR(30日)
63

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

Nimblesite/SharpLsp のほかの issue

Nimblesite/SharpLsp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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