Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.x] Trim trailing slashes before checking no-restricted-path rule #3052

Merged
merged 5 commits into from
Jan 25, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 8732b1c from #3020.

…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
kristenTian
kristenTian previously approved these changes Dec 9, 2022
@AMoo-Miki AMoo-Miki added the autocut Skip the changelog verification check on backports label Dec 12, 2022
@ashwin-pc
Copy link
Member

The tests are failing due to a chrome driver issue the expected version is 106 but this branch has 108

AMoo-Miki
AMoo-Miki previously approved these changes Dec 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2023

Codecov Report

Merging #3052 (4be1eea) into 1.x (cb0e99b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              1.x    #3052   +/-   ##
=======================================
  Coverage   67.49%   67.49%           
=======================================
  Files        3044     3044           
  Lines       58696    58696           
  Branches     8902     8902           
=======================================
  Hits        39617    39617           
  Misses      16931    16931           
  Partials     2148     2148           
Flag Coverage Δ
Linux 67.45% <100.00%> (ø)
Windows 67.44% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...-eslint-plugin-eslint/rules/no_restricted_paths.js 96.96% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@AMoo-Miki AMoo-Miki dismissed stale reviews from kristenTian and themself via 4be1eea January 25, 2023 00:46
@ananzh ananzh merged commit 54ffc93 into 1.x Jan 25, 2023
@github-actions github-actions bot deleted the backport/backport-3020-to-1.x branch January 25, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports v1.3.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants