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

Draft pull request to review code #4

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Conversation

Dcruise546
Copy link
Collaborator

No description provided.

@@ -15,3 +15,4 @@
local.properties
/app/src/androidTest/java/com/example/vehicleinfocheck
/app/src/test/java/com/example/vehicleinfocheck
#dummy edit
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This pull request was created only for the purpose of code review!

Please make the recommended changes, commit either to this branch or a separate branch, and assign me again as a reviewer for the final review!

You can discard the 'Dummy lines' I have added as a part of this review process!

General suggestions outside the files changed:

  1. Rename ic_launcher_custom-playstore.png to a more suitable name to represent the icon
  2. .gitignore formatted in chronological order (Preferable a comment splitting the folder names from the file names)
  3. Rename folder 'ml' to something like MachineLearningModel or something!
  4. The same goes for the model name itself. You are writing the code for humans to better understand, so create a rule for naming files and folders and stick to it!
  5. Either remove the test folders completely or add them as a part of .gitignore, there is no use in keeping them if our plan is not to write unit test cases in the first place
  6. Same goes for the path 'test/java/com/example/vehicleinfocheck'

@@ -177,3 +177,5 @@ private void dispatchTakePictureIntent() {
}
}
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

General - same line comment should be limited to 3 words and not more, this will cause comment overflow and will affect the readability of the code

56 - Separate the comments from the code usually by a space or a tab space
127 - assert should be used only when writing unit tests (rules may change for Android though!). Either way, replace it with other conditional statements like If etc.
139 - rename variable c to something meaningful
171 - Comment should align with the code

Summary, this file has too many comments scattered in a random way! Could be grouped on the starting of each method to improve readability! Could also use good spacing to make it look better!

@Dcruise546 Dcruise546 added the enhancement New feature or request label Jun 10, 2021
@Dcruise546
Copy link
Collaborator Author

After implementing the suggestions, create a new pull request or use the current branch and assign me as a reviewer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants