Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 1.x] Trim trailing slashes before checking no-restricted-pa…
…th rule (#3052) * Fixes `no-restricted-path` false-positives when `allowSameFolder` is true (#3020) `no-restricted-paths` compares source files and import statements, and their membership in restricted zones. However, when `allowSameFolder` is true, it failed to remove a trailing slash before validation which results in a false-positive. Signed-off-by: Miki <amoo_miki@yahoo.com> Signed-off-by: Miki <amoo_miki@yahoo.com> (cherry picked from commit 8732b1c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md * Update tests in backport PR 3020 with correct paths (#3315) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: Miki <miki@amazon.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Anan Zhuang <ananzh@amazon.com> Co-authored-by: Miki <miki@amazon.com>
- Loading branch information