Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
coder
Commits
e392bebe
Commit
e392bebe
authored
5 years ago
by
Klaus Purer
Browse files
Options
Downloads
Patches
Plain Diff
docs(README): Add yml file extension to usage examples (
#3100537
)
parent
0b2dc229
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-4
4 additions, 4 deletions
README.md
with
4 additions
and
4 deletions
README.md
+
4
−
4
View file @
e392bebe
...
@@ -64,15 +64,15 @@ The same can be done for a Composer global installation.
...
@@ -64,15 +64,15 @@ The same can be done for a Composer global installation.
Check Drupal coding standards
Check Drupal coding standards
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md
,yml
/file/to/drupal/example_module
Check Drupal best practices
Check Drupal best practices
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md
,yml
/file/to/drupal/example_module
Automatically fix coding standards
Automatically fix coding standards
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md /file/to/drupal/example_module
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md
,yml
/file/to/drupal/example_module
## Store settings in a phpcs.xml.dist file
## Store settings in a phpcs.xml.dist file
...
@@ -86,7 +86,7 @@ phpcs.xml.dist file in your project like this:
...
@@ -86,7 +86,7 @@ phpcs.xml.dist file in your project like this:
<description>
PHP CodeSniffer configuration for myproject development.
</description>
<description>
PHP CodeSniffer configuration for myproject development.
</description>
<!-- Check all files in the current directory and below. -->
<!-- Check all files in the current directory and below. -->
<file>
.
</file>
<file>
.
</file>
<arg
name=
"extensions"
value=
"php,module,inc,install,test,profile,theme,css,info,txt,md"
/>
<arg
name=
"extensions"
value=
"php,module,inc,install,test,profile,theme,css,info,txt,md
,yml
"
/>
<!-- Change this value to 7 if you want to check Drupal 7 code. -->
<!-- Change this value to 7 if you want to check Drupal 7 code. -->
<config
name=
"drupal_core_version"
value=
"8"
/>
<config
name=
"drupal_core_version"
value=
"8"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment