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

Lists #2

Merged
merged 18 commits into from
Dec 1, 2020
Merged

Lists #2

merged 18 commits into from
Dec 1, 2020

Conversation

Archrahkshi
Copy link
Owner

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

ktlint

app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|3 col 1| Imports must be ordered in lexicographic order without any empty lines in-between
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|11 col 1| Wildcard import (cannot be auto-corrected)
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|29 col 35| Parameter should be on a separate line (unless all parameters can fit a single line)
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|29 col 58| Parameter should be on a separate line (unless all parameters can fit a single line)
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|49 col 31| Argument should be on a separate line (unless all arguments can fit a single line)
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|49 col 31| Missing newline after "("
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|52 col 17| Missing newline before ")"
app/src/main/java/com/archrahkshi/spotifine/ui/TracksFragment.kt|52 col 18| Missing newline before ")"

@@ -0,0 +1,59 @@
package com.archrahkshi.spotifine.data
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
File must end with a newline (\n)

@@ -0,0 +1,33 @@
package com.archrahkshi.spotifine.data
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
File must end with a newline (\n)

} else {
appRemote.playerApi.seekTo(seekBar.progress.toLong())
}

Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Unexpected blank line(s) before "}"

appRemote.playerApi.resume()
}
}
})
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline before ")"


// Something went wrong when attempting to connect! Handle errors here
}
})
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline before ")"


// Something went wrong when attempting to connect! Handle errors here
}
})
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline before ")"

@@ -0,0 +1,115 @@
package com.archrahkshi.spotifine.ui
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
File must end with a newline (\n)

.setRedirectUri(REDIRECT_URI)
.showAuthView(true)
.build()
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Argument should be on a separate line (unless all arguments can fit a single line)

.setRedirectUri(REDIRECT_URI)
.showAuthView(true)
.build()
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline after "("

.setRedirectUri(REDIRECT_URI)
.showAuthView(true)
.build()
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Argument should be on a separate line (unless all arguments can fit a single line)

seekBar.max = duration.toInt()
var flag = 0
buttonPlay.text = "PLAY"
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Argument should be on a separate line (unless all arguments can fit a single line)

buttonPlay.text = "PLAY"
seekBar.setOnSeekBarChangeListener(object : OnSeekBarChangeListener {
override fun onProgressChanged(seekBar: SeekBar, i: Int, b: Boolean) {
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Unnecessary space(s)

override val coroutineContext: CoroutineContext = Dispatchers.Main.immediate
) : Fragment(), CoroutineScope {
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Parameter should be on a separate line (unless all parameters can fit a single line)

createTrackLists(args?.getString(URL), args?.getString(ACCESS_TOKEN))
) {
Log.i("Track", it.toString())
startActivity(Intent(activity, PlayerActivity::class.java).apply {
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Argument should be on a separate line (unless all arguments can fit a single line)

createTrackLists(args?.getString(URL), args?.getString(ACCESS_TOKEN))
) {
Log.i("Track", it.toString())
startActivity(Intent(activity, PlayerActivity::class.java).apply {
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline after "("

startActivity(Intent(activity, PlayerActivity::class.java).apply {
putExtra(ID, it.id)
putExtra(DURATION, it.duration)
})
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline before ")"

startActivity(Intent(activity, PlayerActivity::class.java).apply {
putExtra(ID, it.id)
putExtra(DURATION, it.duration)
})
Copy link

Choose a reason for hiding this comment

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

[ktlint] reported by reviewdog 🐶
Missing newline before ")"

@Archrahkshi Archrahkshi closed this Dec 1, 2020
@Archrahkshi Archrahkshi reopened this Dec 1, 2020
@Archrahkshi
Copy link
Owner Author

ktlint problem: pinterest/ktlint#527
ktlint import ordering ignored, using Android Studio default settings

@Archrahkshi Archrahkshi merged commit ff632e7 into master Dec 1, 2020
@Archrahkshi Archrahkshi deleted the lists branch December 1, 2020 18:28
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