Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Fix yaml format
  • Loading branch information
Jan Galek committed Jul 20, 2018
1 parent 5b1b881 commit 3151de3
Show file tree
Hide file tree
Showing 14 changed files with 289 additions and 291 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
composer.lock
.idea/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ matrix:

install:
- composer install
- if [[ $COMPOSER_PROJECT != "" ]]; then composer create-project nette/coding-standard:dev-master temp/nette-coding-standard; fi
- if [[ $COMPOSER_PROJECT != "" ]]; then composer create-project galek/coding-standard:dev-master temp/coding-standard; fi

script:
- composer test
- if [[ $COMPOSER_PROJECT != "" ]]; then temp/nette-coding-standard/ecs check src examples --config temp/nette-coding-standard/coding-standard-php71.neon; fi
- if [[ $COMPOSER_PROJECT != "" ]]; then temp/coding-standard/ecs check src examples --config temp/coding-standard/coding-standard-php71.yml; fi

notifications:
email: false
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Forked
I forked from [nette/coding-standard](https://github.com/nette/coding-standard)

# Check & Fix Your Code with Nette Coding Standard

[![Downloads this Month](https://img.shields.io/packagist/dm/nette/coding-standard.svg)](https://packagist.org/packages/nette/coding-standard)
[![Build Status](https://travis-ci.org/nette/coding-standard.svg?branch=master)](https://travis-ci.org/nette/coding-standard)
[![Latest Stable Version](https://img.shields.io/packagist/v/nette/coding-standard.svg)](https://github.com/nette/coding-standard/releases)
[![Downloads this Month](https://img.shields.io/packagist/dm/galek/coding-standard.svg)](https://packagist.org/packages/galek/coding-standard)
[![Build Status](https://travis-ci.org/JanGalek/coding-standard.svg?branch=master)](https://travis-ci.org/JanGalek/coding-standard)
[![Latest Stable Version](https://img.shields.io/packagist/v/JanGalek/coding-standard.svg)](https://github.com/JanGalek/coding-standard/releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)


Expand All @@ -15,39 +18,39 @@ This package covers **part of [official rules](https://nette.org/en/coding-stand

When you open [`/examples`](/examples) directory, all files you'll see are checked by this coding standard. The code might look invalid compared to Nette code you know, but it's only because this tool doesn't check it (yet).

All **general rules** you can find in [`coding-standard-php56.neon`](/coding-standard-php56.neon) file.
All **general rules** you can find in [`coding-standard-php56.yml`](/coding-standard-php56.yml) file.


## Install and Use


### Local Setup

Installation into global folder named `nette-coding-standard`:
Installation into global folder named `coding-standard`:

```
composer create-project nette/coding-standard nette-coding-standard
composer create-project galek/coding-standard
```

Check coding standard:

```bash
nette-coding-standard/ecs check src tests --config nette-coding-standard/coding-standard-php56.neon
coding-standard/ecs check src tests --config coding-standard/coding-standard-php56.yml
```

And fix it:

```bash
nette-coding-standard/ecs check src tests --config nette-coding-standard/coding-standard-php56.neon --fix
coding-standard/ecs check src tests --config coding-standard/coding-standard-php56.yml --fix
```

### Travis Setup

```yaml
# .travis.yml
install:
- composer create-project nette/coding-standard temp/nette-coding-standard
- composer create-project galek/coding-standard temp/coding-standard

script:
- temp/nette-coding-standard/ecs check src tests --config temp/nette-coding-standard/coding-standard-php56.neon
- temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php56.yml
```
232 changes: 0 additions & 232 deletions coding-standard-php56.neon

This file was deleted.

Loading

0 comments on commit 3151de3

Please sign in to comment.