-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
@@ -297,7 +301,16 @@ class BuzzerScreenActivity : GameActivity() { | |||
checkAndStopPlayer(gameManager) | |||
val intent = Intent(this, GameEndingActivity::class.java) | |||
|
|||
//TODO put extras to display in GameEndingActivity | |||
//Set list of incorrect songs | |||
val incorrectSongList: ArrayList<String> = ArrayList( |
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.
Similar blocks of code found in 4 locations. Consider refactoring.
intent.putStringArrayListExtra("incorrectSongList", incorrectSongList) | ||
|
||
//Set list of correct songs | ||
val correctSongList: ArrayList<String> = ArrayList( |
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.
Similar blocks of code found in 4 locations. Consider refactoring.
arrayListOf(R.id.end_stat1, R.id.end_stat2, R.id.end_stat3, R.id.end_stat4) | ||
arrayListOf(R.id.end_stat0, R.id.end_stat1, R.id.end_stat2, R.id.end_stat3) | ||
|
||
private val nameIds = arrayListOf(R.id.name_0, R.id.name_1, R.id.name_2, R.id.name_3) |
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.
Similar blocks of code found in 3 locations. Consider refactoring.
arrayListOf(R.id.end_stat0, R.id.end_stat1, R.id.end_stat2, R.id.end_stat3) | ||
|
||
private val nameIds = arrayListOf(R.id.name_0, R.id.name_1, R.id.name_2, R.id.name_3) | ||
private val scoreIds = arrayListOf(R.id.score_0, R.id.score_1, R.id.score_2, R.id.score_3) |
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.
Similar blocks of code found in 3 locations. Consider refactoring.
Code Climate has analyzed commit bba4946 and detected 3 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 99.4% (80% is the threshold). This pull request will bring the total coverage in the repository to 84.3% (0.2% change). View more on Code Climate. |
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.
LGTM
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.
👍
This PR includes: