libormatejka / watchdog
v0.0.8
2023-10-26 14:37 UTC
Requires
- php: ^8.0.3
- nette/bootstrap: ^3.0.1
- nette/di: ^3.0.1
- nette/finder: ^2.5.2
- nette/utils: ^3.0.3
- symfony/console: ^5.0.5
- symfony/yaml: ^5.0.5
This package is auto-updated.
Last update: 2024-04-26 23:45:20 UTC
README
Watchdog is a small package that scans directories and files and checks the quality of files based on rules.
Installation
composer require libormatejka/watchdog
Configuration
The watchdog.neon configuration file contains settings for the analysis. You can define:
parameters:
enabledRules:
-list of rules...
includesFolders:
- list of folders...
excludesFolders:
- list of folders...
includesFilesType:
- list of file types...
fileSettings:
minFilesSize: 10
maxFileSize: 512000
# File Type Rules (Optional fields)
fileTypeRules:
json:
minFilesSize: 10
maxFileSize: 10
yaml:
maxFileSize: 20
etc...
Usage
docker-compose -f .docker/docker-compose.yml run php bin/watchdog analyse --config=PATH TO CONFIG FILE