-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add doc missing about PHPMD converter (since v1.4.0)
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- markdownlint-disable MD013 --> | ||
# PHPMD Converter | ||
|
||
![phpmd converter](../assets/images/converter-phpmd.graphviz.svg) | ||
|
||
## How to use | ||
|
||
See details on demo [`examples/converters/phpmd/`][example-folder] directory into repository. | ||
|
||
[example-folder]: https://github.com/llaville/sarif-php-sdk/blob/master/examples/converters/phpmd/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* This file is part of the Sarif-PHP-SDK package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Laurent Laville | ||
* @since Release 1.4.0 | ||
*/ | ||
|
||
return function (): Generator { | ||
$classes = [ | ||
\Bartlett\Sarif\Converter\PhpMdConverter::class, | ||
]; | ||
foreach ($classes as $class) { | ||
yield $class; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* This file is part of the Sarif-PHP-SDK package. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Laurent Laville | ||
* @since Release 1.4.0 | ||
*/ | ||
|
||
return [ | ||
// @link https://graphviz.gitlab.io/docs/attrs/rankdir/ | ||
'graph.rankdir' => 'TB', | ||
// @link https://plantuml.com/en/color | ||
'cluster.Bartlett\Sarif\Converter.graph.bgcolor' => 'BurlyWood', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters