When specifying rulesetPath with -r option, the rulesetPath will use the target repo path to resolve its relative path.
This is not expected terminal behavior in most CLI tooling, the expectation is to resolve the relative path from the current path.
Proposed Changes
While maintaining the current implementation, the rulesetPath logic will try to use the context path if target repo path doesn't exist.
Motivation
When specifying
rulesetPath
with-r
option, the rulesetPath will use the target repo path to resolve its relative path. This is not expected terminal behavior in most CLI tooling, the expectation is to resolve the relative path from the current path.Proposed Changes
While maintaining the current implementation, the rulesetPath logic will try to use the context path if target repo path doesn't exist.
Test Plan
Updated test.