When searching for a config file, only the current working directory is considered.
This change adds a fallback to search the root of the target package when no config file was found.
This allows users to use a single config file at the root of their project to configure all sub-packages, but it does not aggressively go searching for files in any arbitrary parent directory.
Some examples when your working directory is ./cmd/depguard:
When searching for a config file, only the current working directory is considered.
This change adds a fallback to search the root of the target package when no config file was found.
This allows users to use a single config file at the root of their project to configure all sub-packages, but it does not aggressively go searching for files in any arbitrary parent directory.
Some examples when your working directory is
./cmd/depguard
: