zabetak opened a new issue, #366: URL: https://github.com/apache/maven-enforcer/issues/366
### New feature, improvement proposal Currently there is the `RequireFilesSize` rule that is able to put bounds on individual files. In similar spirit I would like to enforce size bounds on entire directories. The main motivation comes from the `target` directory that tends to store all kind of information from jar artifacts to test logs, reports, and many other things. It is not uncommon, that small seemingly innocent changes (e.g., adding a new test) can make the target directory unreasonably large consuming many GB of disk space. When such changes sneak into the project there is a high risk of causing CI/CD instability and intermittent failures that may be hard to notice. We could consider either enhancing the existing rule and allowing the `<file>` to denote directories and change the logic to compute recursively the total size of the directory or add a new rule dedicated to directories (`RequireDirectorySize`). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org