-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Explicit folders on the codePaths
argument shouldn't be ignored later.
#239
Comments
@tladesignz Thank you very much for reporting this. We have a similar issue with If what you want is something different and you actually want to change the behavior of |
Making the ignore list configurable certainly would give a tool to fix my problem. However, I would still consider the usage counter-intuitive: Even though, I explicitly add a certain folder to get scanned, it gets ignored by default, because one of its parent folders matches the default ignore-list. As already stated: The ignore-list should only be applied to automatically found sub-folders of given I understand that changing that behaviour might break a very small fraction of configurations. However I'd argue, that these were done in error and never fixed because the current implementation hides the problem. There's no situation I can imagine where it does make any sense to add a folder to the This change will be easily spotted and can be easily fixed in such a faulty configuration. After a BartyCrouch updated, your localization source file will contain a whole lot of new strings you didn't expect. Fix: remove the unwanted So, actually one can argue, that the proposed change in the behaviour of BartyCrouch doesn't break configurations, but finally helps users to spot faulty configurations. That's actually wanted. I'll contribute a change after my vacation. Happy new year! |
@tladesignz I think you got me wrong, I never said that I think your suggestion doesn't make sense or would break things for users, sorry that I wasn't more explicit: I do agree with your assessment that an explicit mention of a (sub)path in the |
…even though they might contain otherwise ignored folders as their parent folders.
Was actually quite easy to fix. Hope that helps! |
Fixed issue #239: Don't ignore explicitly mentioned folders, even though they might contain otherwise ignored folders as their parent folders.
Thank you @tladesignz! |
Problem Statement
I have code in a pod which I want searched, but BartyCrouch will ignore these files, because they'll contain a "pods" folder in their URL.
Suggested Solution
From user view:
When a folder is added in the
codePaths
argument, which contains ignored folders, then the files in there should be included anyways.From developer view:
Only the subfolders of the folders stated in the
codePaths
argument should be checked againsthttps://github.com/Flinesoft/BartyCrouch/blob/main/Sources/BartyCrouchKit/FileHandling/CodeFilesSearch.swift#L11
(BTW: This list should be static!)
That method probably needs a
ignoredBase
parameter, which then is used in truncating theurl
parameter before the check.Example Usage
=> This should search all code files below that folder, despite
CodeFilesSearch.shouldSkipFile(at:)
returningtrue
(today).Possible Involvement
The text was updated successfully, but these errors were encountered: