Skip to content

hotfix: Addresses Lint Warnings #20

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

Merged
merged 2 commits into from
Oct 27, 2019
Merged

hotfix: Addresses Lint Warnings #20

merged 2 commits into from
Oct 27, 2019

Conversation

subbramanil
Copy link
Contributor

@subbramanil subbramanil commented Oct 23, 2019

  • Cleans up unused import statements
  • Applies appropriate scope qualifiers (i.e., private) for variables & functions
  • Moves hard-coded strings to String.xml & consts as required
  • Cleans up Regular expressions by removing unnecessary character escapes

Note:

  1. Almost all of the fixes were applied automatically through Android Studio's Auto-Suggestions which made sense & appropriate. None of the changes should affect the functionality of the app. No files were removed, although there were unused files & references.
  2. Reports character escapes that are replaceable with the unescaped character without a change in meaning. Note that inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [.] is identical to [.]
  3. None of the changes should affect any functionality. But in case of any doubt, any change can be removed, analyzed & applied on another iteration.

Reference: #16

- Cleans up unused import statements
- Applies appropriate scope qualifiers (i.e., private) for variables & functions
- Moves hard-coded strings to String.xml & consts as required
- Cleans up Regular expressions by removing unnecessary character escapes

**Note:**
1. Almost all of the fixes were applied automatically through Android Studio's Auto-Suggestions which made sense & appropriate. None of the changes should affect the functionality of the app. No files were removed, although there were unused files & references.
2. Reports character escapes that are replaceable with the unescaped character without a change in meaning. Note that inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
3. None of the changes should affect any functionality. But in case of any doubt, any change can be removed, analyzed & applied on another iteration.
Copy link
Collaborator

@eduardb eduardb left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, @subbramanil! Your changes look good, but I think that there is a small change in behaviour in activity_new_health_facility.xml, could you please have a look into the comments? Cheers!

@subbramanil
Copy link
Contributor Author

Updated the PR with the fixes.

@eduardb eduardb merged commit 8933e12 into theaiscope:master Oct 27, 2019
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.

2 participants