libormatejka/watchdog

v0.0.8 2023-10-26 14:37 UTC

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