Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Jun 2, 2024 via composer

drupal/coder 8.3.22

Coder is a library to review Drupal code.
Package summary
Share
1
issue
1
high severity
license
1
4
licenses
5
MIT
1
GPL-2.0-or-later
1
BSD-2-Clause
1
BSD-3-Clause
Package created
23 Feb 2014
Version published
15 Oct 2023
Maintainers
5
Total deps
8
Direct deps
5
License
GPL-2.0-or-later

Issues

1

1 high severity issue

high
Recommendation: Validate that the package complies with your license policy
via: drupal/coder@8.3.22
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
dealerdirect/phpcodesniffer-composer-installer@v1.0.0
phpstan/phpdoc-parser@1.29.1
slevomat/coding-standard@8.15.0
symfony/polyfill-ctype@v1.29.0
symfony/yaml@v7.1.0

GNU General Public License v2.0 or later

Strongly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
drupal/coder@8.3.22

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sirbrillig/phpcs-variable-analysis@v2.11.18

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
squizlabs/php_codesniffer@3.10.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of drupal/coder 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dealerdirect/phpcodesniffer-composer-installerv1.0.011.37 kBMIT
prod dev
sirbrillig/phpcs-variable-analysisv2.11.18-BSD-2-Clause
prod
slevomat/coding-standard8.15.0-MIT
prod
squizlabs/php_codesniffer3.10.1-BSD-3-Clause
prod
symfony/yamlv7.1.0-MIT
prod

Visualizations

Frequently Asked Questions

What does drupal/coder do?

The Drupal/Coder is a library specifically designed for automated Drupal code reviews and standard corrections. It works by defining rules for PHP_CodeSniffer and provides support for Drupal Coding Standards and DrupalPractice, which identifies the best practices for Drupal module development. The overall aim is to enhance code quality and ensure compliance with coding standards.

How do you use drupal/coder?

To use the Drupal/Coder package, you must first ensure that Composer is installed correctly. Then, you can globally install Coder (version 8.3.x) in your Composer directory using the composer global require drupal/coder command. To globally access phpcs and phpcbf commands, you need to add the Composer bin path to your $PATH variable in ~/.profile, ~/.bashrc or ~/.zshrc through the export PATH="$PATH:$HOME/.config/composer/vendor/bin" command.

There are various command lines you can use to take advantage of what Drupal/Coder offers. For instance, you can check Drupal coding standards using the phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /file/to/drupal/example_module command. To inspect Drupal best practices, the phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /file/to/drupal/example_module command comes in handy. Fixing coding standards automatically is also possible through using phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /file/to/drupal/example_module.

Also, it's worth mentioning that you can install Coder locally in your Drupal project, which can be beneficial for developer teams working concurrently. Lastly, store settings can be saved in a phpcs.xml.dist file. The entire process provides a comprehensive solution to check coding standards and best practices in your Drupal projects effortlessly.

Where are the drupal/coder docs?

You can find extensive documentation related to the Drupal/Coder library on Drupal's official website, under the URL: https://www.drupal.org/node/1419980. Here, you will find a detailed explanation of all the Drupal coding standards, best practices, and how you can implement them efficiently in your projects using the Drupal/Coder package.