Skip to content

📚Provides the ownCloud coding standard

License

Notifications You must be signed in to change notification settings

owncloud/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 coding-standard

This repository provides a configuration for friendsofphp/php-cs-fixer to check that repositories are following the standards defined by the ownCloud team.

Installation

composer require --dev owncloud/coding-standard

Usage

Create a configuration file .php-cs-fixer.dist.php in the root of your project:

<?php

$config = new OC\CodingStandard\Config();

$config
    ->setUsingCache(true)
    ->getFinder()
    ->in(__DIR__);

return $config;

Versioning

This library follows semantic versioning, additions to the code checks that are "risky" will only be done in major versions

License

AGPL-3.0