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

make lint fails on shellcheck style and info warnings

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

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

評価

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

調査の方向性

make lintを実行してShellCheckの失敗を再現し、その後、gh-md-tocで報告された行を調べます。SC2006およびSC2181のスタイル警告に対処し、意図的なawk式は記載どおりに扱います。make lintがShellCheck 0.11.0で正常終了すれば完了です。

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

説明

Steps

make lint

Actual

shellcheck -e SC2008 gh-md-toc exits with code 1 on master (c386c7b, shellcheck 0.11.0):

  • SC2006 (style): legacy backticks instead of $(...) - lines 170, 187, 246, 305-308, 371
  • SC2181 (style): exit code checked indirectly with $? - line 89
  • SC2016 (info): expressions in single quotes - lines 249, 258

Expected

make lint passes.

Notes

  • CI (ci.yml) runs only make test, so the failure is not visible there.
  • Lines 249 and 258 start the awk scripts, which are single-quoted on purpose so that
    $0 reaches awk unexpanded. SC2016 there likely needs a disable directive rather
    than a code change.
主要言語
Shell
スター
3.3k
フォーク
2.7k
平均マージ
2分
マージ済み PR(30日)
1

環境構築

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

はじめの一歩

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

ekalinin/github-markdown-toc のほかの issue

ekalinin/github-markdown-toc の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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