Check Standards/Practice Coding And Linting
Following with the Drupal core Coding standards
All Varbase components have a list of ready tools and script commands. That is to help contributors on the step of checking standards.
Please make sure to run the check and linting commands while contributing a new feature or a fix patch/MR.

Check Drupal Standard And Practice Coding

Check Drupal standard and practice coding.
1
yarn phpcs
Copied!

PHP Code Beautifier and Fixer

Fix many errors and warnings automatically.
1
yarn phpcbf
Copied!

Linting YAML files

Check all .yml files with Drupal standard yaml format.
1
yarn lint:yaml
Copied!

Linting JavaScript files

Check all JavaScript .js, .json files with Drupal standard scripting format.
1
yarn lint:js
Copied!

Linting Styling

Check all styling .css files with Drupal standard styling format and order.
1
yarn lint:css
Copied!

Last modified 1mo ago