-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
<html> | ||
<head> | ||
<title>GeneratorTest Coding Standards</title> | ||
<style> | ||
body { | ||
background-color: #FFFFFF; | ||
font-size: 14px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
color: #000000; | ||
} | ||
|
||
h1 { | ||
color: #666666; | ||
font-size: 20px; | ||
font-weight: bold; | ||
margin-top: 0px; | ||
background-color: #E6E7E8; | ||
padding: 20px; | ||
border: 1px solid #BBBBBB; | ||
} | ||
|
||
h2 { | ||
color: #00A5E3; | ||
font-size: 16px; | ||
font-weight: normal; | ||
margin-top: 50px; | ||
} | ||
|
||
.code-comparison { | ||
width: 100%; | ||
} | ||
|
||
.code-comparison td { | ||
border: 1px solid #CCCCCC; | ||
} | ||
|
||
.code-comparison-title, .code-comparison-code { | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 12px; | ||
color: #000000; | ||
vertical-align: top; | ||
padding: 4px; | ||
width: 50%; | ||
background-color: #F1F1F1; | ||
line-height: 15px; | ||
} | ||
|
||
.code-comparison-code { | ||
font-family: Courier; | ||
background-color: #F9F9F9; | ||
} | ||
|
||
.code-comparison-highlight { | ||
background-color: #DDF1F7; | ||
border: 1px solid #00A5E3; | ||
line-height: 15px; | ||
} | ||
|
||
.tag-line { | ||
text-align: center; | ||
width: 100%; | ||
margin-top: 30px; | ||
font-size: 12px; | ||
} | ||
|
||
.tag-line a { | ||
color: #000000; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>GeneratorTest Coding Standards</h1> | ||
<h2>Table of Contents</h2> | ||
<ul class="toc"> | ||
<li><a href="#No-Content">No Content</a></li> | ||
<li><a href="#One-Standard-Block,-Code-Comparison">One Standard Block, Code Comparison</a></li> | ||
<li><a href="#One-Standard-Block,-No-Code">One Standard Block, No Code</a></li> | ||
<li><a href="#One-Standard-Block,-Two-Code-Comparisons">One Standard Block, Two Code Comparisons</a></li> | ||
<li><a href="#Two-Standard-Blocks,-No-Code">Two Standard Blocks, No Code</a></li> | ||
<li><a href="#Two-Standard-Blocks,-One-Code-Comparison">Two Standard Blocks, One Code Comparison</a></li> | ||
<li><a href="#Two-Standard-Blocks,-Three-Code-Comparisons">Two Standard Blocks, Three Code Comparisons</a></li> | ||
</ul> | ||
<a name="No-Content" /> | ||
<h2>No Content</h2> | ||
<a name="One-Standard-Block,-Code-Comparison" /> | ||
<h2>One Standard Block, Code Comparison</h2> | ||
<p class="text">Documentation contains one standard block and one code comparison.</p> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Lorem ipsum dolor sit amet.</td> | ||
<td class="code-comparison-title">Invalid: Maecenas non rutrum dolor.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Code</span> {}</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Comparison</span> {}</td> | ||
</tr> | ||
</table> | ||
<a name="One-Standard-Block,-No-Code" /> | ||
<h2>One Standard Block, No Code</h2> | ||
<p class="text">Documentation contains one standard block and no code comparison.</p> | ||
<a name="One-Standard-Block,-Two-Code-Comparisons" /> | ||
<h2>One Standard Block, Two Code Comparisons</h2> | ||
<p class="text">Documentation contains one standard block and two code comparisons.</p> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Etiam commodo magna at vestibulum blandit.</td> | ||
<td class="code-comparison-title">Invalid: Vivamus lacinia ante velit.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Code</span> {}</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Comparison</span> {}</td> | ||
</tr> | ||
</table> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Pellentesque nisi neque.</td> | ||
<td class="code-comparison-title">Invalid: Mauris dictum metus quis maximus pharetra.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">$one</span> = 10;</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">$a</span> = 10;</td> | ||
</tr> | ||
</table> | ||
<a name="Two-Standard-Blocks,-No-Code" /> | ||
<h2>Two Standard Blocks, No Code</h2> | ||
<p class="text">This is standard block one.</p> | ||
<p class="text">This is standard block two.</p> | ||
<a name="Two-Standard-Blocks,-One-Code-Comparison" /> | ||
<h2>Two Standard Blocks, One Code Comparison</h2> | ||
<p class="text">This is standard block one.</p> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Vestibulum et orci condimentum.</td> | ||
<td class="code-comparison-title">Invalid: Donec in nisl ut tortor convallis interdum.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code">class <span class="code-comparison-highlight">Code</span> {}</td> | ||
<td class="code-comparison-code">class <span class="code-comparison-highlight">Comparison</span> {}</td> | ||
</tr> | ||
</table> | ||
<p class="text">This is standard block two.</p> | ||
<a name="Two-Standard-Blocks,-Three-Code-Comparisons" /> | ||
<h2>Two Standard Blocks, Three Code Comparisons</h2> | ||
<p class="text">This is standard block one.</p> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Vestibulum et orci condimentum.</td> | ||
<td class="code-comparison-title">Invalid: Donec in nisl ut tortor convallis interdum.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Code</span> {}</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">class Comparison</span> {}</td> | ||
</tr> | ||
</table> | ||
<p class="text">This is standard block two.</p> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Pellentesque nisi neque.</td> | ||
<td class="code-comparison-title">Invalid: Mauris dictum metus quis maximus pharetra.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">$one</span> = 10;</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">$a</span> = 10;</td> | ||
</tr> | ||
</table> | ||
<table class="code-comparison"> | ||
<tr> | ||
<td class="code-comparison-title">Valid: Quisque sagittis nisi vitae.</td> | ||
<td class="code-comparison-title">Invalid: Morbi ac libero vitae lorem.</td> | ||
</tr> | ||
<tr> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">echo</span> $foo;</td> | ||
<td class="code-comparison-code"><span class="code-comparison-highlight">print</span> $foo;</td> | ||
</tr> | ||
</table> | ||
<div class="tag-line">Documentation generated on #REDACTED# by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer #VERSION#</a></div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# GeneratorTest Coding Standard | ||
|
||
## No Content | ||
|
||
## One Standard Block, Code Comparison | ||
Check failure on line 5 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownHeadings should be surrounded by blank lines
|
||
Documentation contains one standard block and one code comparison. | ||
<table> | ||
Check failure on line 7 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
<tr> | ||
Check failure on line 8 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
<th>Valid: Lorem ipsum dolor sit amet.</th> | ||
Check failure on line 9 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
<th>Invalid: Maecenas non rutrum dolor.</th> | ||
Check failure on line 10 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
</tr> | ||
<tr> | ||
Check failure on line 12 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
<td> | ||
Check failure on line 13 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
|
||
class Code {} | ||
Check failure on line 15 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownCode block style
|
||
|
||
</td> | ||
<td> | ||
Check failure on line 18 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownInline HTML
|
||
|
||
class Comparison {} | ||
Check failure on line 20 in tests/Core/Generators/ExpectedOutputMultipleDocs.md GitHub Actions / Lint Markdown / Lint MarkdownCode block style
|
||
|
||
</td> | ||
</tr> | ||
</table> | ||
|
||
## One Standard Block, No Code | ||
Documentation contains one standard block and no code comparison. | ||
|
||
## One Standard Block, Two Code Comparisons | ||
Documentation contains one standard block and two code comparisons. | ||
<table> | ||
<tr> | ||
<th>Valid: Etiam commodo magna at vestibulum blandit.</th> | ||
<th>Invalid: Vivamus lacinia ante velit.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
class Code {} | ||
|
||
</td> | ||
<td> | ||
|
||
class Comparison {} | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
<table> | ||
<tr> | ||
<th>Valid: Pellentesque nisi neque.</th> | ||
<th>Invalid: Mauris dictum metus quis maximus pharetra.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
$one = 10; | ||
|
||
</td> | ||
<td> | ||
|
||
$a = 10; | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
|
||
## Two Standard Blocks, No Code | ||
This is standard block one. | ||
This is standard block two. | ||
|
||
## Two Standard Blocks, One Code Comparison | ||
This is standard block one. | ||
<table> | ||
<tr> | ||
<th>Valid: Vestibulum et orci condimentum.</th> | ||
<th>Invalid: Donec in nisl ut tortor convallis interdum.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
class Code {} | ||
|
||
</td> | ||
<td> | ||
|
||
class Comparison {} | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
This is standard block two. | ||
|
||
## Two Standard Blocks, Three Code Comparisons | ||
This is standard block one. | ||
<table> | ||
<tr> | ||
<th>Valid: Vestibulum et orci condimentum.</th> | ||
<th>Invalid: Donec in nisl ut tortor convallis interdum.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
class Code {} | ||
|
||
</td> | ||
<td> | ||
|
||
class Comparison {} | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
This is standard block two. | ||
<table> | ||
<tr> | ||
<th>Valid: Pellentesque nisi neque.</th> | ||
<th>Invalid: Mauris dictum metus quis maximus pharetra.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
$one = 10; | ||
|
||
</td> | ||
<td> | ||
|
||
$a = 10; | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
<table> | ||
<tr> | ||
<th>Valid: Quisque sagittis nisi vitae.</th> | ||
<th>Invalid: Morbi ac libero vitae lorem.</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
echo $foo; | ||
|
||
</td> | ||
<td> | ||
|
||
print $foo; | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
Documentation generated on *REDACTED* by [PHP_CodeSniffer *VERSION*](https://github.com/PHPCSStandards/PHP_CodeSniffer) |