-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/profile image #47
Conversation
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
ktlint
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/repository/AuthRepository.kt
Line 21 in 14871b1
suspend fun uploadProfileImage(uploadURL: String, uploadMethod: String, uploadHeaders: String, file: File) |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/repository/AuthRepository.kt
Line 21 in 14871b1
suspend fun uploadProfileImage(uploadURL: String, uploadMethod: String, uploadHeaders: String, file: File) |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/repository/AuthRepository.kt
Line 21 in 14871b1
suspend fun uploadProfileImage(uploadURL: String, uploadMethod: String, uploadHeaders: String, file: File) |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/repository/AuthRepository.kt
Line 21 in 14871b1
suspend fun uploadProfileImage(uploadURL: String, uploadMethod: String, uploadHeaders: String, file: File) |
🚫 [ktlint] standard:function-expression-body reported by reviewdog 🐶
Function body should be replaced with body expression
Line 12 in 14871b1
override suspend fun execute(params: Param): ProfileImageData { |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
Line 17 in 14871b1
value class Param(val fileSize: Int) |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Line 17 in 14871b1
value class Param(val fileSize: Int) |
🚫 [ktlint] standard:final-newline reported by reviewdog 🐶
File must end with a newline (\n)
Line 18 in 14871b1
} |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/usecase/auth/UploadProfileImageUseCase.kt
Line 18 in 14871b1
file = params.file |
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/usecase/auth/UploadProfileImageUseCase.kt
Line 27 in 14871b1
val file: File |
🚫 [ktlint] standard:final-newline reported by reviewdog 🐶
File must end with a newline (\n)
Chevit-Android/domain/src/main/java/com/dkin/chevit/domain/usecase/auth/UploadProfileImageUseCase.kt
Line 29 in 14871b1
} |
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 27 in 14871b1
changeImage: (uri: Uri?) -> Unit |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 29 in 14871b1
val launcher = rememberLauncherForActivityResult( |
🚫 [ktlint] standard:indent reported by reviewdog 🐶
Unexpected indentation (8) (should be 12)
Line 31 in 14871b1
ActivityResultContracts.GetContent() |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 31 in 14871b1
ActivityResultContracts.GetContent() |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 43 in 14871b1
modifier = Modifier |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 48 in 14871b1
} |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 66 in 14871b1
modifier = Modifier |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 72 in 14871b1
} |
🚫 [ktlint] standard:no-unused-imports reported by reviewdog 🐶
Unused import
Line 4 in 14871b1
import android.os.FileUtils.copy |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 78 in 14871b1
imageChanged |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 80 in 14871b1
} |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 92 in 14871b1
} |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
Line 100 in 14871b1
private fun saveProfileSetting(name: String, imageUrl: String, imageChanged: Boolean) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 100 in 14871b1
private fun saveProfileSetting(name: String, imageUrl: String, imageChanged: Boolean) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 100 in 14871b1
private fun saveProfileSetting(name: String, imageUrl: String, imageChanged: Boolean) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Line 100 in 14871b1
private fun saveProfileSetting(name: String, imageUrl: String, imageChanged: Boolean) { |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 105 in 14871b1
val file = File.createTempFile( |
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
Line 115 in 14871b1
requireContext().contentResolver.openInputStream(imageUrl.toUri()) |
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
Line 115 in 14871b1
requireContext().contentResolver.openInputStream(imageUrl.toUri()) |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 121 in 14871b1
viewModel.dispatch(ProfileSettingIntent.SaveImageProfile( |
🚫 [ktlint] standard:wrapping reported by reviewdog 🐶
Missing newline after "("
Line 121 in 14871b1
viewModel.dispatch(ProfileSettingIntent.SaveImageProfile( |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 124 in 14871b1
file |
🚫 [ktlint] standard:wrapping reported by reviewdog 🐶
Missing newline before ")"
Line 125 in 14871b1
)) |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 127 in 14871b1
viewModel.dispatch(ProfileSettingIntent.SaveProfile( |
🚫 [ktlint] standard:wrapping reported by reviewdog 🐶
Missing newline after "("
Line 127 in 14871b1
viewModel.dispatch(ProfileSettingIntent.SaveProfile( |
🚫 [ktlint] standard:wrapping reported by reviewdog 🐶
Missing newline before ")"
Line 130 in 14871b1
)) |
🚫 [ktlint] standard:blank-line-before-declaration reported by reviewdog 🐶
Expected a blank line for this declaration
Line 11 in 14871b1
data class SaveImageProfile(val name: String, val imageUrl: String, val file: File) : ProfileSettingIntent |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
Line 11 in 14871b1
data class SaveImageProfile(val name: String, val imageUrl: String, val file: File) : ProfileSettingIntent |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 11 in 14871b1
data class SaveImageProfile(val name: String, val imageUrl: String, val file: File) : ProfileSettingIntent |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 11 in 14871b1
data class SaveImageProfile(val name: String, val imageUrl: String, val file: File) : ProfileSettingIntent |
🚫 [ktlint] standard:class-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Line 11 in 14871b1
data class SaveImageProfile(val name: String, val imageUrl: String, val file: File) : ProfileSettingIntent |
🚫 [ktlint] standard:condition-wrapping reported by reviewdog 🐶
Newline expected before operand in multiline condition
Line 95 in 14871b1
name.isNotBlank() && name.length < 8 && settingState.imageUrl.isNotBlank() |
🚫 [ktlint] standard:condition-wrapping reported by reviewdog 🐶
Newline expected before operand in multiline condition
Line 95 in 14871b1
name.isNotBlank() && name.length < 8 && settingState.imageUrl.isNotBlank() |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 123 in 14871b1
modifier = Modifier |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 129 in 14871b1
contentAlignment = Alignment.Center |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 134 in 14871b1
tint = ChevitTheme.colors.white |
🚫 [ktlint] standard:import-ordering reported by reviewdog 🐶
Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
Line 3 in 14871b1
import androidx.lifecycle.viewModelScope |
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 24 in 14871b1
private val uploadProfileImageUseCase: UploadProfileImageUseCase |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:parameter-list-spacing reported by reviewdog 🐶
Whitespace after ',' is missing
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Unnecessary trailing comma before ")"
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Line 47 in 14871b1
private suspend fun saveProfileWithImage(name: String, imageUrl: String, file: File,) { |
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
Line 48 in 14871b1
kotlin.runCatching { |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 50 in 14871b1
params = GetProfileImageDataUseCase.Param( |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 51 in 14871b1
fileSize = file.length().toInt() |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 52 in 14871b1
) |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 61 in 14871b1
file = file |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
Line 69 in 14871b1
private suspend fun updateProfile(name: String, imageUrl: String) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Parameter should start on a newline
Line 69 in 14871b1
private suspend fun updateProfile(name: String, imageUrl: String) { |
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before closing parenthesis
Line 69 in 14871b1
private suspend fun updateProfile(name: String, imageUrl: String) { |
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 86 in 14871b1
uploadHeaders: String |
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
Line 89 in 14871b1
kotlin.runCatching { |
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
Line 91 in 14871b1
params = UploadProfileImageUseCase.Param( |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
Line 95 in 14871b1
file = file |
🚫 [ktlint] standard:trailing-comma-on-call-site reported by reviewdog 🐶
Missing trailing comma before ")"
fun providePureOkHttpClient( | ||
httpLoggingInterceptor: HttpLoggingInterceptor, | ||
chuckerInterceptor: ChuckerInterceptor, | ||
) = OkHttpClient.Builder() |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
fun providePureRetrofit( | ||
@Named("Pure") okHttpClient: OkHttpClient, | ||
@JsonConverter jsonConverter: Converter.Factory, | ||
): Retrofit = Retrofit.Builder() |
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.
🚫 [ktlint] standard:multiline-expression-wrapping reported by reviewdog 🐶
A multiline expression should start on a new line
fun providePureRetrofit( | ||
@Named("Pure") okHttpClient: OkHttpClient, | ||
@JsonConverter jsonConverter: Converter.Factory, | ||
): Retrofit = Retrofit.Builder() |
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.
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected before expression body
fun providePureRetrofit( | ||
@Named("Pure") okHttpClient: OkHttpClient, | ||
@JsonConverter jsonConverter: Converter.Factory, | ||
): Retrofit = Retrofit.Builder() |
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.
🚫 [ktlint] standard:chain-method-continuation reported by reviewdog 🐶
Expected newline before '.'
@Provides | ||
@Singleton | ||
fun provideImageAPI( | ||
@Named("Pure") retrofit: Retrofit |
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.
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
uploadURL: String, | ||
uploadMethod: String, | ||
uploadHeaders: String, | ||
file: File |
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.
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
val uploadMethod: String, | ||
val uploadURL: String, | ||
val uploadHeaders: String, | ||
val imageURL: String |
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.
🚫 [ktlint] standard:trailing-comma-on-declaration-site reported by reviewdog 🐶
Missing trailing comma before ")"
val uploadURL: String, | ||
val uploadHeaders: String, | ||
val imageURL: String | ||
) : DomainModel |
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.
🚫 [ktlint] standard:final-newline reported by reviewdog 🐶
File must end with a newline (\n)
@@ -1,6 +1,9 @@ | |||
package com.dkin.chevit.domain.repository | |||
|
|||
import com.dkin.chevit.domain.base.None |
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.
🚫 [ktlint] standard:no-unused-imports reported by reviewdog 🐶
Unused import
|
||
suspend fun getProfileUploadURL(fileSize: Int): ProfileImageData | ||
|
||
suspend fun uploadProfileImage(uploadURL: String, uploadMethod: String, uploadHeaders: String, file: File) |
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.
🚫 [ktlint] standard:function-signature reported by reviewdog 🐶
Newline expected after opening parenthesis
프로필 이미지 수정 기능 추가