You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-2
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,37 @@ The check command has multiple reporting options, you can use `--reporter` to sp
83
83
-`github` - GitHub Actions output
84
84
-`markdown` - markdown output
85
85
86
+
## Running Specific Tools
87
+
88
+
Instead of running all tools, you can choose to run specific tools using the `--only` flag. The following tools are available:
89
+
90
+
-`phpstan` - PHP static analysis
91
+
-`sw-cli` - Shopware CLI validation checks
92
+
-`stylelint` - CSS/SCSS linting
93
+
-`twig` - Twig template checks
94
+
-`admin-twig` - Admin Twig template checks
95
+
-`php-cs-fixer` - PHP code style fixing
96
+
-`prettier` - Code formatting
97
+
-`eslint` - JavaScript/TypeScript linting
98
+
-`rector` - PHP code refactoring
99
+
100
+
You can run a single tool:
101
+
102
+
```shell
103
+
docker run --rm -v $(pwd):/ext ghcr.io/shopwarelabs/extension-verifier:latest check /ext --only phpstan
104
+
```
105
+
106
+
Or run multiple tools by separating them with commas:
107
+
108
+
```shell
109
+
docker run --rm -v $(pwd):/ext ghcr.io/shopwarelabs/extension-verifier:latest check /ext --only "phpstan,eslint,stylelint"
110
+
```
111
+
112
+
This is particularly useful when:
113
+
- You want to focus on specific aspects of your code
114
+
- You want to run only the relevant tools for the files you've changed
115
+
- You want to fix issues one tool at a time
116
+
86
117
## Refactoring
87
118
88
119
To run the refactoring, you can use following command:
@@ -142,8 +173,6 @@ The fixers are enabled by the supported Shopware Version by the constraint in th
142
173
143
174
Your plugin typically requires only `shopware/core`, but when you use classes from Storefront or Elasticsearch Bundle and they are required, you have to add `shopware/storefront` or `shopware/elasticsearch` also to the `require` in the composer.json. If those features are optional with `class_exists` checks, you want to add them into `require-dev`, so the dependencies are installed only for development, and PHPStan can recognize the files.
144
175
145
-
146
-
147
176
# Contribution
148
177
149
178
To run this tool locally you need PHP, Node, NPM and Go.
0 commit comments