Browse files

pulls standard through composer

  • Loading branch information...
1 parent 3b1884c commit e41cf3921c39b9233aeea719182e012fb4ab235b @cash cash committed Mar 16, 2013
Showing with 22 additions and 14 deletions.
  1. +5 −8 README.md
  2. +2 −1 classes/ElggCodeSniffer.php
  3. +10 −4 composer.json
  4. +5 −1 manifest.xml
View
13 README.md
@@ -7,11 +7,8 @@ Elgg Quality Assurance Tool
*Note: requires PHP 5.3*
-Using git repo
----------------------------
-If using the git repo, you need to do this after cloning:
-
-```
-git submodule init
-git submodule update
-```
+Installation and Usage
+-----------------------
+* Install [composer](http://getcomposer.org/)
+* Install dependencies with `composer install`
+* Enable plugin (it adds a menu item to the developer tools)
View
3 classes/ElggCodeSniffer.php
@@ -11,12 +11,13 @@ class ElggCodeSniffer {
public function __construct() {
$this->sniffer = new PHP_CodeSniffer(0, 0, 'utf-8', false);
- $this->standard = dirname(dirname(__FILE__)) . '/standard/Elgg';
+ $this->standard = dirname(dirname(__FILE__)) . '/vendor/elgg/sniffs/elgg.xml';
$this->ignores = array(
'*/tests/*',
'*/test/*',
'*/upgrades/*',
'*/vendors/*',
+ '*/vendor/*',
'*/deprecated*',
'*/languages/*',
);
View
14 composer.json
@@ -1,5 +1,11 @@
{
- "require": {
- "squizlabs/php_codesniffer": "1.*"
- }
-}
+ "repositories": [
+ {
+ "type": "vcs",
+ "url": "https://github.com/Elgg/elgg-coding-standards"
+ }
+ ],
+ "require": {
+ "elgg/sniffs": "dev-master"
+ }
+}
View
6 manifest.xml
@@ -2,7 +2,7 @@
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>Quality Assurance Tools</name>
<author>Core developers</author>
- <version>0.1</version>
+ <version>0.2</version>
<category>development</category>
<description>Tools for testing the quality of Elgg and plugins.</description>
<website>http://www.elgg.org/</website>
@@ -13,5 +13,9 @@
<type>elgg_release</type>
<version>1.8</version>
</requires>
+ <requires>
+ <type>php</type>
+ <version>5.3</version>
+ </requires>
</plugin_manifest>

0 comments on commit e41cf39

Please sign in to comment.