Skip to content

Commit

Permalink
Merge pull request #674 from PHPCSStandards/feature/validate-xml-doc-…
Browse files Browse the repository at this point in the history
…wellformedness

GH Actions/basics: add check for valid XML docs + fix two docs
  • Loading branch information
jrfnl authored Nov 12, 2024
2 parents 204c963 + 12c11ba commit 7f5d178
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml")
diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml")
# Validate the basic well-formedness of the Documentation XML files.
- name: Validate documentation XML
run: xmllint --noout ./src/Standards/*/Docs/*/*Standard.xml

yamllint:
name: 'Lint Yaml'
# Don't run the cronjob in this workflow on forks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
]]>
</standard>
<code_comparison>
<code title="Valid: No space between the <<< and the identifier string.">
<code title="Valid: No space between the &lt;&lt;&lt; and the identifier string.">
<![CDATA[
$heredoc = <em><<<EOD</em>
some text
EOD;
]]>
</code>
<code title="Invalid: Whitespace between the <<< and the identifier string.">
<code title="Invalid: Whitespace between the &lt;&lt;&lt; and the identifier string.">
<![CDATA[
$heredoc = <em><<< END</em>
some text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function bar(<em>... </em>$spread) {
);
bar(
[<em>... </em>$foo ],<em>.../*comment*/</em>array_values($keyedArray)
[<em>... </em>$foo ],<em>.../*@*/</em>array_values($keyed)
);
}
]]>
Expand Down

0 comments on commit 7f5d178

Please # to comment.