This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Nevoss/ED-874-base
feat: add elementor ruleset
- Loading branch information
Showing
5 changed files
with
783 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vendor/ | ||
.idea | ||
composer.lock |
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 |
---|---|---|
@@ -1 +1,35 @@ | ||
# Elementor Sniffs | ||
|
||
Collection of PHP_CodeSniffer sniffs for Elementor. | ||
|
||
## Installation | ||
|
||
```php | ||
composer require elementor/elementor-sniffs | ||
``` | ||
|
||
## Usage | ||
|
||
### Command line | ||
|
||
```bash | ||
./vendor/bin/phpcs --standard=Elementor-Core <file> | ||
``` | ||
|
||
### Config file | ||
|
||
PHPCS config file: | ||
|
||
```xml | ||
<?xml version="1.0"?> | ||
<ruleset name="Elementor Coding Standards"> | ||
<description>My projects ruleset.</description> | ||
|
||
<config name="text_domain" value="my-plugin-name" /> | ||
|
||
<exclude-pattern>vendor/</exclude-pattern> | ||
|
||
<!-- Rules --> | ||
<rule ref="Elementor-Core" /> | ||
</ruleset> | ||
``` |
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,24 @@ | ||
{ | ||
"name": "elementor/elementor-sniffs", | ||
"description": "Elementor sniffs", | ||
"type": "phpcodesniffer-standard", | ||
"license": "GPL-3.0+", | ||
"authors": [ | ||
{ | ||
"name": "Elementor Team", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"keywords": [ | ||
"phpcs", | ||
"standards", | ||
"WordPress", | ||
"Elementor" | ||
], | ||
"minimum-stability": "stable", | ||
"require": { | ||
"php": ">=5.6", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", | ||
"wp-coding-standards/wpcs": "^2.3" | ||
} | ||
} |
Oops, something went wrong.