Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Feb 16, 2019
1 parent aff0ac7 commit 843ea8c
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 autorusltd
Copyright (c) 2019 Autorus, Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# PHP Coding Standard for Arus Team

[![Latest Stable Version](https://poser.pugx.org/arus/php-coding-standard/v/stable)](https://packagist.org/packages/arus/php-coding-standard)
[![Total Downloads](https://poser.pugx.org/arus/php-coding-standard/downloads)](https://packagist.org/packages/arus/php-coding-standard)
[![License](https://poser.pugx.org/arus/php-coding-standard/license)](https://packagist.org/packages/arus/php-coding-standard)

## Installation

```bash
composer require arus/php-coding-standard
```

## How to use?

```xml
<?xml version="1.0"?>
<ruleset name="Arus Coding Standard">
<rule ref="./vendor/arus/php-coding-standard/ruleset.xml"/>

<file>src</file>
<file>tests</file>
</ruleset>
```

## Useful links

* https://www.php-fig.org/psr/psr-1/
* https://www.php-fig.org/psr/psr-2/
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "arus/php-coding-standard",
"description": "PHP Coding Standard for Arus Team",
"keywords": ["fenric", "arus", "autorus", "php-coding-standard", "psr-1", "psr-2"],
"homepage": "https://github.com/autorusltd/php-coding-standard",
"license": "MIT",
"authors": [
{
"name": "Anatoly Fenric",
"email": "anatoly@fenric.ru",
"homepage": "https://anatoly.fenric.ru/"
}
]
}
11 changes: 11 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset name="Arus Coding Standard">
<description>Arus Coding Standard</description>

<arg value="p"/>
<arg name="colors"/>

<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties -->
<rule ref="PSR2"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
</ruleset>

0 comments on commit 843ea8c

Please sign in to comment.