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

roots/guidelines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

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

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •