diff --git a/CHANGELOG.md b/CHANGELOG.md index c05b00f..4ee1bb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver]. +## Unreleased + +### Added + +- Possibility to set only `->in()` directories via `.cs_includes.php` + ## v1.6.1 ### Fixed diff --git a/README.md b/README.md index 1bf1038..57c041e 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ return [ ]; ``` -Так же в корне можете разместить файл `.cs_excludes.php`, содержащий пути директорий, которые следует исключить при обработке, вида: +Также в корне можете разместить файл `.cs_excludes.php`, содержащий пути директорий, которые следует исключить при обработке, вида: ```php exclude(\file_exists($user_excludes = $project_root_dir . '/.cs_excludes.php') ? \array_replace_recursive($excludes, require $user_excludes) : $excludes) - ->in($project_root_dir) + ->in(\file_exists($user_includes = $project_root_dir . '/.cs_includes.php') + ? require $user_includes + : $project_root_dir) ) ->setRiskyAllowed(true) ->setUsingCache(true)