-
Notifications
You must be signed in to change notification settings - Fork 6
Find correct paths to process #21
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
Conversation
8d6f747
to
b2dcf86
Compare
b2dcf86
to
f2cbbc6
Compare
src/main/java/cc/files/Matcher.java
Outdated
return defaultMatcher; | ||
} | ||
} catch (Exception e) { | ||
throw new RuntimeException("Error creating create with pattern: " + pattern, e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Error creating matcher
?
src/main/java/cc/files/Finder.java
Outdated
public List<ClientInputFile> collect(Path baseDir) throws IOException { | ||
return findPaths(baseDir).stream() | ||
.map(p -> toClientInputFile(baseDir, p)) | ||
.filter(f -> f != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of expanding these single letter variables out? Not sure what's p
stands for. Is f
for file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dblandin p
expanded to path
.
f != null
replaced with Objects::nonull
;)
Ready for another shot?
This ship may have sailed, but why does this engine need to concern itself with glob matching, and what's "source" vs "tests"? The CLI should expand globs and determine appropriate concrete |
@wfleming Ship still on shore. Looking at the code again, I probably made this distinction a bit clear on another branch - not sure why I haven't brought it over. I will do so, it basically gets rid of the |
@wfleming No |
The file count is a bit extensive, but one can skip the
fixtures
files during the review to speed it up.Related to #12 and #15