Skip to content

Commit

Permalink
add some more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
n-peugnet committed Jan 8, 2021
1 parent a21bc22 commit 407c4b0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ __G__ is the name of this __Sharable Network Tracker__.

But it's kind of a temporary name.

Alternatives names could be *Argali* or *Urial* as it refers to *Gazelle*, the main inspiration dor this project.
Alternatives names could be *Argali* or *Urial* as it refers to *Gazelle*, the main inspiration dor this project.

## Development

### Run checks

composer check
9 changes: 9 additions & 0 deletions build/console-loader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php declare(strict_types = 1);

use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Dotenv\Dotenv;

(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
return new Application($kernel);
13 changes: 11 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,18 @@
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"check": [
"@phpstan"
"@phpstan",
"@check-symfony"
],
"check-symfony": [
"@php bin/console --ansi lint:container",
"@php bin/console --ansi lint:twig",
"@php bin/console --ansi doctrine:schema:validate --skip-sync"
],
"phpstan": [
"@php bin/console cache:warmup -q",
"phpstan analyse --ansi"
],
"phpstan": "phpstan analyse --ansi",
"post-install-cmd": [
"@auto-scripts"
],
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

Expand All @@ -12,3 +13,4 @@ parameters:
- vendor/*
symfony:
container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml
console_application_loader: build/console-loader.php

0 comments on commit 407c4b0

Please sign in to comment.