Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Jwen/improve code quality #367

Merged
merged 31 commits into from
Jun 6, 2022
Merged

Jwen/improve code quality #367

merged 31 commits into from
Jun 6, 2022

Conversation

jiabaow
Copy link
Collaborator

@jiabaow jiabaow commented Jun 6, 2022

No description provided.

*
*/
private fun loadFollowing(followingMap: Map<String, Boolean>) {
override fun loadFollowing(followingMap: Map<String, Boolean>) {
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

*
*/
private fun loadFollowing(followingMap: Map<String, Boolean>) {
override fun loadFollowing(followingMap: Map<String, Boolean>) {
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

@jiabaow jiabaow changed the title Jwen/improve code quality Jwen/improve profile related code quality Jun 6, 2022
@jiabaow jiabaow marked this pull request as ready for review June 6, 2022 13:47
@jiabaow jiabaow changed the title Jwen/improve profile related code quality Jwen/improve code quality Jun 6, 2022
validateSearch.setOnClickListener{ chooseGenreByArtist(searchArtistEditable.toString(), R.string.gameGenre_byArtistSearch) }
}

private fun chooseGenreByTag(tag: String, mode: Int) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

chooseGenre(method = LastfmMethod.BY_TAG.method, tag = tag, mode = mode)
}

private fun chooseGenreByArtist(artist: String, mode: Int) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Jun 6, 2022

Code Climate has analyzed commit 239d036 and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 6

The test coverage on the diff in this pull request is 92.2% (80% is the threshold).

This pull request will bring the total coverage in the repository to 84.0%.

View more on Code Climate.

Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

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

LGTM, works on the phone IRL 👍

@MaximeZmt MaximeZmt merged commit 389373a into main Jun 6, 2022
@MaximeZmt MaximeZmt deleted the jwen/improve-code-quality branch June 6, 2022 16:45
@jiabaow jiabaow self-assigned this Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants