Skip to content

Commit

Permalink
Extract PHP Validator from main project
Browse files Browse the repository at this point in the history
Xulieta is evolving to a composable plugin system on version 1.0.x.
So the [main package][xulieta] have the foundation to read common documents and
the logic to make it extensible by separated packages. This way each project
can choose exactly what should be checked and lower the barrier have more
people comming up with new validators.

[xulieta]: https://github.com/codelicia/xulieta

Signed-off-by: 💻 Eher <[email protected]>
  • Loading branch information
EHER committed Feb 4, 2022
1 parent e116903 commit c02b9ed
Show file tree
Hide file tree
Showing 8 changed files with 4,227 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
composer.phar
.phpcs-cache
.phpunit.result.cache
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.phar
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# xulieta-php
Xulieta plugin to validate PHP
🌹 Xulieta - PHP
================

This is a plugin to lint PHP on Documentation file using [Xulieta](https://github.com/codelicia/xulieta).
45 changes: 45 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "codelicia/xulieta-php",
"description": "Xulieta plugin to validate PHP",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Codelicia\\XulietaPhp\\": "src/"
}
},
"authors": [
{
"name": "Jefersson Nathan",
"email": "[email protected]"
},
{
"name": "Alexandre Eher",
"email": "[email protected]"
}
],
"config": {
"allow-plugins": {
"ocramius/package-versions": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"xulieta": {
"validator": ["Codelicia\\XulietaPhp\\PhpValidator"]
}
},
"require-dev": {
"codelicia/xulieta": "1.0.x-dev as 1.0.0",
"doctrine/coding-standard": "^9.0",
"phpunit/phpunit": "^9.5"
},
"scripts": {
"phpunit": "vendor/bin/phpunit",
"phpcs": "vendor/bin/phpcs",
"test": [
"@phpcs",
"@phpunit"
]
}
}
Loading

0 comments on commit c02b9ed

Please sign in to comment.