libormatejka/watchdog

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

This package is auto-updated.

Last update: 2024-09-27 00:38:33 UTC


README

Watchdog 是一个小型包,用于扫描目录和文件,并根据规则检查文件质量。

安装

composer require libormatejka/watchdog

配置

watchdog.neon 配置文件 包含了分析的设置。您可以定义

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...

用法

docker-compose -f .docker/docker-compose.yml run php bin/watchdog analyse --config=PATH TO CONFIG FILE