Indentation fixing
まだ誰も着手していません。
評価
調査の方向性
現在のインデンテーション fixer を見つけ、issue にある simpara と row の例を再現してください。その出力を、先頭の空白と fixer の順序を含めて、期待される XML と比較してください。両方の例が示されているとおりにフォーマットされ、空白が誤って正規化されなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
The simpara in this example is misaligned. Perhaps a good follow up for indentation fixers (sniffers might should use warn/info instead error).
Current:
<para>
<example>
<title>ImagickPixel <function>getColorCount</function></title>
<programlisting role="php">
<![CDATA[
<?php
$imagick = new \Imagick();
$imagick->newPseudoImage(640, 480, "magick:logo");
$histogramElements = $imagick->getImageHistogram();
$lastColor = array_pop($histogramElements);
echo "Last pixel color count is: ".$lastColor->getColorCount();
?>
]]>
</programlisting>
<simpara>
The output for this will be similar to:
</simpara>
<screen role="php">
<![CDATA[
Last pixel color count is: 256244
]]>
</screen>
</example>
</para>
Expected:
<para>
<example>
<title>ImagickPixel <function>getColorCount</function></title>
<programlisting role="php">
<![CDATA[
<?php
$imagick = new \Imagick();
$imagick->newPseudoImage(640, 480, "magick:logo");
$histogramElements = $imagick->getImageHistogram();
$lastColor = array_pop($histogramElements);
echo "Last pixel color count is: ".$lastColor->getColorCount();
?>
]]>
</programlisting>
<simpara>
The output for this will be similar to:
</simpara>
<screen role="php">
<![CDATA[
Last pixel color count is: 256244
]]>
</screen>
</example>
</para>
Edit
The current indentation fixer also doesn't yet work fully smooth. Leading whitespace is normalised as if it is wrong whitespace dupllication, although it should reformat the elements correctly
<row>
<entry><literal>"compression_alg"</literal></entry>
<entry>string</entry>
<entry>Compression algorithm. Both
- <literal>"compression_alg"</literal> and <literal>"compression_level"</literal>
- must be set in order to enable data compression.
- </entry>
+ <literal>"compression_alg"</literal> and <literal>"compression_level"</literal>
+ must be set in order to enable data compression.
+ </entry>
</row>
Note to self: we might should make fixer order canonical.
- 主要言語
- PHP
- スター
- 7
- フォーク
- 5
- 平均マージ
- 8時間 38分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/docbook-cs のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 40/100
php/docbook-cs#57 · コメント 1 件 ·
-
Missing empty linesオープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
php/docbook-cs#49 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
php/docbook-cs#46 · コメント 2 件 ·
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
[Area] REST API [Type] Documentation Good First Issue
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
WordPress/presence-api#584 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100