Skip to content

hotfix: Addresses Lint Warnings - #20

Merged
eduardb merged 2 commits into
theaiscope:masterfrom
subbramanil:hotfix/fix_lint_warnings
Oct 27, 2019
Merged

hotfix: Addresses Lint Warnings#20
eduardb merged 2 commits into
theaiscope:masterfrom
subbramanil:hotfix/fix_lint_warnings

Conversation

@subbramanil

@subbramanil subbramanil commented Oct 23, 2019

Copy link
Copy Markdown
Contributor
  • 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.

@eduardb eduardb left a comment

Copy link
Copy Markdown
Collaborator

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!

Comment thread app/src/main/res/layout/activity_new_health_facility.xml Outdated
Comment thread app/src/main/java/net/aiscope/gdd_app/ui/metadata/ListItem.kt
Comment thread app/src/main/res/layout/activity_new_health_facility.xml
@subbramanil

Copy link
Copy Markdown
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