Skip to content

Commit

Permalink
step 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman52 committed Jan 3, 2021
1 parent 8d52998 commit c789dd5
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/codesniffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Codesniffer

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run Codesniffer
run: make lint
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ validate:
brain-games:
php bin/brain-games

lint:
composer run-script phpcs -- --standard=PSR12 src bin

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
### Hexlet tests and linter status:
[![Actions Status](https://github.com/Roman52/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/Roman52/php-project-lvl1/actions)
[![Actions Status](https://github.com/Roman52/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/Roman52/php-project-lvl1/actions) [![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability)
[![Actions Status](https://github.com/Roman52/php-project-lvl1/workflows/codesniffer/badge.svg)](https://github.com/Roman52/php-project-lvl1/actions)
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
"src/Cli.php"
]
},
"scripts": {
"phpcs": "phpcs"
},
"require": {
"wp-cli/php-cli-tools": "^0.11.11"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.5"
}
}
}
56 changes: 54 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Cli.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Brain\Games\Cli;

use function cli\line;
Expand Down

0 comments on commit c789dd5

Please sign in to comment.