Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
rootsPublic archive

About

Coding and contributing guidelines for Roots projects

Resources

Code of conduct

Contributing

Security policy

Stars

16 stars

Watchers

3 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Roots Coding and Contributing Guidelines

PHP

PSR-2 coding style with the following changes:

  • 2 spaces indentation
  • Opening and closing braces for functions and classes forced on the same line
  • Forced newline after opening brace

Additional rules:

  • Use Roots\ namespace
  • Use short array syntax
  • Use short echo syntax

You can check if your contribution passes the styleguide by installing PHP CodeSniffer and running the following in your project directory:

phpcs --standard=ruleset.xml --extensions=php --ignore=node_modules,bower_components,vendor -n -s .

JavaScript

Every JavaScript contribution is run against the Google JavaScript Styleguide. You can check if your contribution passes the styleguide by installing JSCS and running the following in your project directory:

npm run jscs

About

Coding and contributing guidelines for Roots projects

Resources

Code of conduct

Contributing

Security policy

Stars

16 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Contributors