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

Add lower_path to check_exclude_file() for exclude exact file path #376

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

csh519
Copy link
Collaborator

@csh519 csh519 commented Jul 7, 2023

Description

FilePathExtractor.check_exclude_file() method has a bug before.
The method just convert a path to lower case, so when checking the exclude file path, it didn't work properly.

I fixed this bug with adding lower_path parameter to check_exclude_file().
check_exclude_file() uses lower_path on pattern matching and uses path on excluding exact paths and extensions.

  • Fix bug of check_exclude_file()

How has this been tested?

  • Local tested

@csh519 csh519 requested a review from a team as a code owner July 7, 2023 07:58
Copy link
Contributor

@babenek babenek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May i propose csh519#6 to avoid wrong behaviour in future?

@csh519
Copy link
Collaborator Author

csh519 commented Jul 10, 2023

May i propose csh519#6 to avoid wrong behaviour in future?

@babenek
I approved and merged your PR. Thank you for the details.

@csh519 csh519 requested a review from babenek July 10, 2023 02:21
Copy link
Contributor

@babenek babenek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. The bug must not appear again.

@iuriimet iuriimet self-requested a review July 10, 2023 15:32
@csh519 csh519 merged commit 4276b4a into Samsung:main Jul 11, 2023
24 checks passed
@csh519 csh519 deleted the fix_bug_of_excluding_file_path branch July 11, 2023 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants