-
Notifications
You must be signed in to change notification settings - Fork 1
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
Publish binary resources #194
Conversation
ArrayList<String> resourceFiles = getResourceFiles(projectFolder); | ||
String getFileName(String name) { | ||
if ((name.endsWith("Register")) || (name.endsWith("Profile"))) { | ||
String regex = "([a-z])([A-Z]+)"; |
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.
assuming here that we are always converting from camel case
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.
can you add that to a docstring for this function?
String getBinaryContent(String fileName, String projectFolder) throws IOException { | ||
String pathToFile; | ||
if (fileName.contains("register")) { | ||
pathToFile = projectFolder + "/registers/" + fileName; |
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.
assuming we're always using this agreed on file/folder structure
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.
yea seems reasonable, on that note, should we to the validation checker (and later the app content from template creator) something to verify the repo follows file structure?
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.
sure, created an issue here #195
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.
comment on docstring to be addressed, otherwise lgtm!
ArrayList<String> resourceFiles = getResourceFiles(projectFolder); | ||
String getFileName(String name) { | ||
if ((name.endsWith("Register")) || (name.endsWith("Profile"))) { | ||
String regex = "([a-z])([A-Z]+)"; |
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.
can you add that to a docstring for this function?
String getBinaryContent(String fileName, String projectFolder) throws IOException { | ||
String pathToFile; | ||
if (fileName.contains("register")) { | ||
pathToFile = projectFolder + "/registers/" + fileName; |
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.
yea seems reasonable, on that note, should we to the validation checker (and later the app content from template creator) something to verify the repo follows file structure?
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #188
Engineer Checklist
./gradlew spotlessApply
to check my code follows the project's style guide