Skip to content

Commit

Permalink
fix(#304): 뒤로 가기 시 OnBackPressedCallback을 활용한 CrdtTree 클리어
Browse files Browse the repository at this point in the history
Co-authored-by: yang1318 <[email protected]>
Co-authored-by: jaehan4707 <[email protected]>
  • Loading branch information
3 people committed Dec 13, 2023
1 parent 3b98b91 commit 16e57a1
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 146 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package boostcamp.and07.mindsync.ui.mindmap

import android.content.Context
import android.content.res.Configuration

Check failure on line 4 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt#L4 <standard:no-unused-imports>

Unused import
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt:4:1: error: Unused import (standard:no-unused-imports)
import android.os.Bundle

Check failure on line 5 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt#L5 <standard:no-unused-imports>

Unused import
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt:5:1: error: Unused import (standard:no-unused-imports)
import android.util.Log
import androidx.activity.OnBackPressedCallback
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
Expand Down Expand Up @@ -38,6 +42,18 @@ class MindMapFragment :
}
private lateinit var mindMapContainer: MindMapContainer
private val args: MindMapFragmentArgs by navArgs()
private var isBack = false

override fun onAttach(context: Context) {
super.onAttach(context)
val callback = object : OnBackPressedCallback(true) {

Check failure on line 49 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt#L49 <standard:multiline-expression-wrapping>

A multiline expression should start on a new line
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapFragment.kt:49:24: error: A multiline expression should start on a new line (standard:multiline-expression-wrapping)
override fun handleOnBackPressed() {
isBack = true
findNavController().popBackStack()
}
}
requireActivity().onBackPressedDispatcher.addCallback(this, callback)
}

override fun initView() {
setupRootNode()
Expand Down Expand Up @@ -165,4 +181,11 @@ class MindMapFragment :
) {
mindMapViewModel.moveNode(tree, target, parent)
}

override fun onDestroyView() {
super.onDestroyView()
if (isBack) {
mindMapViewModel.clearTree()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,186 +30,191 @@ import javax.inject.Inject

@HiltViewModel
class MindMapViewModel
@Inject
constructor() : ViewModel() {
private var boardId: String = ""
val crdtTree = CrdtTree(id = IdGenerator.makeRandomNodeId(), tree = Tree())
private var _selectedNode = MutableStateFlow<Node?>(null)
val selectedNode: StateFlow<Node?> = _selectedNode
private val _operation = MutableStateFlow<Operation?>(null)
val operation: StateFlow<Operation?> = _operation
private val mindMapSocketManager = MindMapSocketManager()
private val _socketState = MutableStateFlow(SocketState.DISCONNECT)
val socketState: StateFlow<SocketState> = _socketState
private val _socketEvent = MutableStateFlow<SocketEvent?>(null)
val socketEvent: StateFlow<SocketEvent?> = _socketEvent
private val _operationType = MutableStateFlow("")
val operationType: StateFlow<String> = _operationType

init {
setSocketState()
setSocketEvent()
}
@Inject

Check failure on line 33 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L33 <standard:indent>

Unexpected indentation (0) (should be 4)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:33:1: error: Unexpected indentation (0) (should be 4) (standard:indent)
constructor() : ViewModel() {

Check failure on line 34 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L34 <standard:indent>

Unexpected indentation (0) (should be 4)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:34:1: error: Unexpected indentation (0) (should be 4) (standard:indent)
private var boardId: String = ""

Check failure on line 35 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L35 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:35:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
var crdtTree = CrdtTree(id = IdGenerator.makeRandomNodeId(), tree = Tree())

Check failure on line 36 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L36 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:36:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private var _selectedNode = MutableStateFlow<Node?>(null)

Check failure on line 37 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L37 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:37:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val selectedNode: StateFlow<Node?> = _selectedNode

Check failure on line 38 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L38 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:38:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private val _operation = MutableStateFlow<Operation?>(null)

Check failure on line 39 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L39 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:39:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val operation: StateFlow<Operation?> = _operation

Check failure on line 40 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L40 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:40:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private val mindMapSocketManager = MindMapSocketManager()

Check failure on line 41 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L41 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:41:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private val _socketState = MutableStateFlow(SocketState.DISCONNECT)

Check failure on line 42 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L42 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:42:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val socketState: StateFlow<SocketState> = _socketState

Check failure on line 43 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L43 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:43:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private val _socketEvent = MutableStateFlow<SocketEvent?>(null)

Check failure on line 44 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L44 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:44:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val socketEvent: StateFlow<SocketEvent?> = _socketEvent

Check failure on line 45 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L45 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:45:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
private val _operationType = MutableStateFlow("")

Check failure on line 46 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L46 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:46:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val operationType: StateFlow<String> = _operationType

Check failure on line 47 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L47 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:47:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

init {

Check failure on line 49 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L49 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:49:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
setSocketState()

Check failure on line 50 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L50 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:50:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
setSocketEvent()

Check failure on line 51 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L51 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:51:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 52 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L52 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:52:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun setBoard(
boardId: String,
boardName: String,
) {
if (this.boardId != boardId) {
this.boardId = boardId
joinBoard(boardId, boardName)
updateNode(crdtTree.tree.getRootNode().copy(description = boardName))
}
fun setBoard(

Check failure on line 54 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L54 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:54:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
boardId: String,

Check failure on line 55 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L55 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:55:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
boardName: String,

Check failure on line 56 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L56 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:56:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
) {

Check failure on line 57 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L57 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:57:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
if (this.boardId != boardId) {

Check failure on line 58 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L58 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:58:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
this.boardId = boardId

Check failure on line 59 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L59 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:59:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
joinBoard(boardId, boardName)

Check failure on line 60 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L60 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:60:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
updateNode(crdtTree.tree.getRootNode().copy(description = boardName))

Check failure on line 61 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L61 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:61:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
}
}

Check failure on line 63 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L63 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:63:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

private fun setSocketState() {
viewModelScope.launch {
mindMapSocketManager.listenState().collectLatest { state ->
_socketState.value = state
}
private fun setSocketState() {

Check failure on line 65 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L65 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:65:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
viewModelScope.launch {

Check failure on line 66 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L66 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:66:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
mindMapSocketManager.listenState().collectLatest { state ->

Check failure on line 67 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L67 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:67:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
_socketState.value = state

Check failure on line 68 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L68 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:68:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
}
}
}

Check failure on line 71 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L71 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:71:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

private fun setSocketEvent() {

Check failure on line 73 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L73 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:73:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
viewModelScope.launch {

Check failure on line 74 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L74 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:74:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
mindMapSocketManager.listenEvent().collectLatest { event ->

Check failure on line 75 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L75 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:75:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
_socketEvent.value = event

Check failure on line 76 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L76 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:76:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
when (event.eventType) {

Check failure on line 77 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L77 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:77:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
SocketEventType.OPERATION_FROM_SERVER -> {

Check failure on line 78 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L78 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:78:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
when (val operation = event.operation) {

Check failure on line 79 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L79 <standard:indent>

Unexpected indentation (24) (should be 28)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:79:1: error: Unexpected indentation (24) (should be 28) (standard:indent)
is SerializedOperation -> {

Check failure on line 80 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L80 <standard:indent>

Unexpected indentation (28) (should be 32)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:80:1: error: Unexpected indentation (28) (should be 32) (standard:indent)
applyOperation(operation)

Check failure on line 81 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L81 <standard:indent>

Unexpected indentation (32) (should be 36)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:81:1: error: Unexpected indentation (32) (should be 36) (standard:indent)
}

Check failure on line 82 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L82 <standard:indent>

Unexpected indentation (28) (should be 32)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:82:1: error: Unexpected indentation (28) (should be 32) (standard:indent)

private fun setSocketEvent() {
viewModelScope.launch {
mindMapSocketManager.listenEvent().collectLatest { event ->
_socketEvent.value = event
when (event.eventType) {
SocketEventType.OPERATION_FROM_SERVER -> {
when (val operation = event.operation) {
is SerializedOperation -> {
applyOperation(operation)
}

is SerializedCrdtTree -> {
applyOperation(operation)
}
is SerializedCrdtTree -> {

Check failure on line 84 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L84 <standard:indent>

Unexpected indentation (28) (should be 32)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:84:1: error: Unexpected indentation (28) (should be 32) (standard:indent)
applyOperation(operation)

Check failure on line 85 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L85 <standard:indent>

Unexpected indentation (32) (should be 36)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:85:1: error: Unexpected indentation (32) (should be 36) (standard:indent)
}
}
}
}
}
}
}

Check failure on line 92 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L92 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:92:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun joinBoard(
boardId: String,
boardName: String,
) {
mindMapSocketManager.joinBoard(boardId, boardName)
}
fun joinBoard(

Check failure on line 94 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L94 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:94:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
boardId: String,

Check failure on line 95 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L95 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:95:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
boardName: String,

Check failure on line 96 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L96 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:96:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
) {

Check failure on line 97 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L97 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:97:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
mindMapSocketManager.joinBoard(boardId, boardName)

Check failure on line 98 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L98 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:98:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 99 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L99 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:99:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun addNode(
parent: Node,
addNode: RectangleNode,
) {
val addOperation =
crdtTree.generateOperationAdd(addNode.id, parent.id, addNode.description)
crdtTree.applyOperation(addOperation)
_operation.value = addOperation
requestUpdateMindMap(operation = addOperation)
}
fun addNode(

Check failure on line 101 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L101 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:101:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
parent: Node,

Check failure on line 102 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L102 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:102:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
addNode: RectangleNode,

Check failure on line 103 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L103 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:103:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
) {

Check failure on line 104 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L104 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:104:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val addOperation =

Check failure on line 105 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L105 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:105:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
crdtTree.generateOperationAdd(addNode.id, parent.id, addNode.description)

Check failure on line 106 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L106 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:106:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
crdtTree.applyOperation(addOperation)

Check failure on line 107 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L107 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:107:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_operation.value = addOperation

Check failure on line 108 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L108 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:108:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
requestUpdateMindMap(operation = addOperation)

Check failure on line 109 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L109 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:109:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 110 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L110 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:110:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun removeNode(target: Node) {
_selectedNode.value = null
val removeOperation = crdtTree.generateOperationDelete(target.id)
crdtTree.applyOperation(removeOperation)
_operation.value = removeOperation
requestUpdateMindMap(operation = removeOperation)
}
fun removeNode(target: Node) {

Check failure on line 112 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L112 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:112:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
_selectedNode.value = null

Check failure on line 113 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L113 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:113:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
val removeOperation = crdtTree.generateOperationDelete(target.id)

Check failure on line 114 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L114 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:114:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
crdtTree.applyOperation(removeOperation)

Check failure on line 115 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L115 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:115:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_operation.value = removeOperation

Check failure on line 116 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L116 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:116:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
requestUpdateMindMap(operation = removeOperation)

Check failure on line 117 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L117 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:117:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 118 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L118 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:118:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun moveNode(
tree: Tree,
target: Node,
parent: Node,
) {
this.crdtTree.tree = tree
val moveOperation = crdtTree.generateOperationMove(target.id, parent.id)
crdtTree.applyOperation(moveOperation)
_operation.value = moveOperation
requestUpdateMindMap(operation = moveOperation)
}
fun moveNode(

Check failure on line 120 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L120 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:120:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
tree: Tree,

Check failure on line 121 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L121 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:121:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
target: Node,

Check failure on line 122 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L122 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:122:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
parent: Node,

Check failure on line 123 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L123 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:123:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
) {

Check failure on line 124 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L124 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:124:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
this.crdtTree.tree = tree

Check failure on line 125 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L125 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:125:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
val moveOperation = crdtTree.generateOperationMove(target.id, parent.id)

Check failure on line 126 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L126 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:126:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
crdtTree.applyOperation(moveOperation)

Check failure on line 127 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L127 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:127:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_operation.value = moveOperation

Check failure on line 128 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L128 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:128:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
requestUpdateMindMap(operation = moveOperation)

Check failure on line 129 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L129 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:129:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 130 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L130 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:130:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun setSelectedNode(selectNode: Node?) {
_selectedNode.value = selectNode
}
fun setSelectedNode(selectNode: Node?) {

Check failure on line 132 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L132 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:132:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
_selectedNode.value = selectNode

Check failure on line 133 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L133 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:133:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 134 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L134 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:134:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun requestUpdateMindMap(operation: Operation) {

Check failure on line 136 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L136 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:136:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val serializedOperation =

Check failure on line 137 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L137 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:137:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
when (operation) {

Check failure on line 138 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L138 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:138:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
is OperationAdd -> crdtTree.serializeOperationAdd(operation)

Check failure on line 139 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L139 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:139:1: error: Unexpected indentation (16) (should be 20) (standard:indent)

fun requestUpdateMindMap(operation: Operation) {
val serializedOperation =
when (operation) {
is OperationAdd -> crdtTree.serializeOperationAdd(operation)
is OperationDelete -> crdtTree.serializeOperationDelete(operation)

Check failure on line 141 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L141 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:141:1: error: Unexpected indentation (16) (should be 20) (standard:indent)

is OperationDelete -> crdtTree.serializeOperationDelete(operation)
is OperationMove -> crdtTree.serializeOperationMove(operation)

Check failure on line 143 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L143 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:143:1: error: Unexpected indentation (16) (should be 20) (standard:indent)

is OperationMove -> crdtTree.serializeOperationMove(operation)
is OperationUpdate -> crdtTree.serializeOperationUpdate(operation)

Check failure on line 145 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L145 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:145:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
}

Check failure on line 146 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L146 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:146:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
mindMapSocketManager.updateMindMap(

Check failure on line 147 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L147 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:147:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
serializedOperation = serializedOperation,

Check failure on line 148 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L148 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:148:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
boardId = boardId,

Check failure on line 149 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L149 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:149:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
)

Check failure on line 150 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L150 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:150:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 151 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L151 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:151:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

is OperationUpdate -> crdtTree.serializeOperationUpdate(operation)
fun applyOperation(operation: SerializedOperation) {

Check failure on line 153 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L153 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:153:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val operation =

Check failure on line 154 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L154 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:154:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
when (operation.operationType) {

Check failure on line 155 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L155 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:155:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
OperationType.ADD.command -> crdtTree.deserializeOperationAdd(operation)

Check failure on line 156 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L156 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:156:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
OperationType.DELETE.command -> crdtTree.deserializeOperationDelete(operation)

Check failure on line 157 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L157 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:157:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
OperationType.UPDATE.command -> crdtTree.deserializeOperationUpdate(operation)

Check failure on line 158 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L158 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:158:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
OperationType.MOVE.command -> crdtTree.deserializeOperationMove(operation)

Check failure on line 159 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L159 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:159:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
else -> {

Check failure on line 160 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L160 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:160:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
throw IllegalArgumentException(ExceptionMessage.ERROR_MESSAGE_NOT_DEFINED_OPERATION.message)

Check failure on line 161 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L161 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:161:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
}
mindMapSocketManager.updateMindMap(
serializedOperation = serializedOperation,
boardId = boardId,
)
}
}

Check failure on line 163 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L163 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:163:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
crdtTree.applyOperation(operation)

Check failure on line 164 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L164 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:164:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_operation.value = operation

Check failure on line 165 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L165 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:165:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 166 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L166 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:166:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun applyOperation(operation: SerializedOperation) {
fun applyOperation(operation: SerializedCrdtTree) {

Check failure on line 168 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L168 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:168:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
operation.operationLogs?.forEach { operationLog ->

Check failure on line 169 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L169 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:169:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
val operation =
when (operation.operationType) {
OperationType.ADD.command -> crdtTree.deserializeOperationAdd(operation)
OperationType.DELETE.command -> crdtTree.deserializeOperationDelete(operation)
OperationType.UPDATE.command -> crdtTree.deserializeOperationUpdate(operation)
OperationType.MOVE.command -> crdtTree.deserializeOperationMove(operation)
when (operationLog.operation.operationType) {

Check failure on line 171 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L171 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:171:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
OperationType.ADD.command -> crdtTree.deserializeOperationAdd(operationLog.operation)

Check failure on line 172 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L172 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:172:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
OperationType.DELETE.command -> crdtTree.deserializeOperationDelete(operationLog.operation)

Check failure on line 173 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L173 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:173:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
OperationType.UPDATE.command -> crdtTree.deserializeOperationUpdate(operationLog.operation)

Check failure on line 174 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L174 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:174:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
OperationType.MOVE.command -> crdtTree.deserializeOperationMove(operationLog.operation)

Check failure on line 175 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L175 <standard:indent>

Unexpected indentation (20) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:175:1: error: Unexpected indentation (20) (should be 24) (standard:indent)
else -> {
throw IllegalArgumentException(ExceptionMessage.ERROR_MESSAGE_NOT_DEFINED_OPERATION.message)
}
}
crdtTree.applyOperation(operation)
_operation.value = operation
}
}

Check failure on line 183 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L183 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:183:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun applyOperation(operation: SerializedCrdtTree) {
operation.operationLogs?.forEach { operationLog ->
val operation =
when (operationLog.operation.operationType) {
OperationType.ADD.command -> crdtTree.deserializeOperationAdd(operationLog.operation)
OperationType.DELETE.command -> crdtTree.deserializeOperationDelete(operationLog.operation)
OperationType.UPDATE.command -> crdtTree.deserializeOperationUpdate(operationLog.operation)
OperationType.MOVE.command -> crdtTree.deserializeOperationMove(operationLog.operation)
else -> {
throw IllegalArgumentException(ExceptionMessage.ERROR_MESSAGE_NOT_DEFINED_OPERATION.message)
}
}
crdtTree.applyOperation(operation)
_operation.value = operation
}
}

fun updateNode(updateNode: Node) {
val updateOperation =
crdtTree.generateOperationUpdate(updateNode.id, updateNode.description)
crdtTree.applyOperation(updateOperation)
_operation.value = updateOperation
requestUpdateMindMap(updateOperation)
}
fun updateNode(updateNode: Node) {

Check failure on line 185 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L185 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:185:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
val updateOperation =

Check failure on line 186 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L186 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:186:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
crdtTree.generateOperationUpdate(updateNode.id, updateNode.description)

Check failure on line 187 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L187 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:187:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
crdtTree.applyOperation(updateOperation)

Check failure on line 188 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L188 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:188:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_operation.value = updateOperation

Check failure on line 189 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L189 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:189:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
requestUpdateMindMap(updateOperation)

Check failure on line 190 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L190 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:190:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 191 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L191 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:191:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun update(newTree: Tree) {
crdtTree.tree = newTree
}
fun update(newTree: Tree) {

Check failure on line 193 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L193 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:193:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
crdtTree.tree = newTree

Check failure on line 194 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L194 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:194:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 195 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L195 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:195:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun changeRootXY(
windowWidth: Dp,
windowHeight: Dp,
) {
crdtTree.tree.setRootNode(
crdtTree.tree.getRootNode().copy(
path =
crdtTree.tree.getRootNode().path.copy(
centerX = windowWidth,
centerY = windowHeight,
),
fun changeRootXY(

Check failure on line 197 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L197 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:197:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
windowWidth: Dp,

Check failure on line 198 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L198 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:198:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
windowHeight: Dp,

Check failure on line 199 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L199 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:199:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
) {

Check failure on line 200 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L200 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:200:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
crdtTree.tree.setRootNode(

Check failure on line 201 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L201 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:201:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
crdtTree.tree.getRootNode().copy(

Check failure on line 202 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L202 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:202:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
path =

Check failure on line 203 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L203 <standard:indent>

Unexpected indentation (16) (should be 20)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:203:1: error: Unexpected indentation (16) (should be 20) (standard:indent)
crdtTree.tree.getRootNode().path.copy(

Check failure on line 204 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L204 <standard:indent>

Unexpected indentation (16) (should be 24)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:204:1: error: Unexpected indentation (16) (should be 24) (standard:indent)
centerX = windowWidth,

Check failure on line 205 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L205 <standard:indent>

Unexpected indentation (20) (should be 28)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:205:1: error: Unexpected indentation (20) (should be 28) (standard:indent)
centerY = windowHeight,

Check failure on line 206 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L206 <standard:indent>

Unexpected indentation (20) (should be 28)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:206:1: error: Unexpected indentation (20) (should be 28) (standard:indent)
),
)
}
),

Check failure on line 208 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L208 <standard:indent>

Unexpected indentation (12) (should be 16)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:208:1: error: Unexpected indentation (12) (should be 16) (standard:indent)
)

Check failure on line 209 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L209 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:209:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 210 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L210 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:210:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun updateOperationType(operationType: String) {
_operationType.value = operationType
}
fun updateOperationType(operationType: String) {

Check failure on line 212 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L212 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:212:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
_operationType.value = operationType

Check failure on line 213 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L213 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:213:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}

Check failure on line 214 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L214 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:214:1: error: Unexpected indentation (4) (should be 8) (standard:indent)

fun clearTree() {

Check failure on line 216 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L216 <standard:indent>

Unexpected indentation (4) (should be 8)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:216:1: error: Unexpected indentation (4) (should be 8) (standard:indent)
crdtTree = CrdtTree(id = "", tree = Tree())

Check failure on line 217 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L217 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:217:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
_selectedNode.value = null

Check failure on line 218 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L218 <standard:indent>

Unexpected indentation (8) (should be 12)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:218:1: error: Unexpected indentation (8) (should be 12) (standard:indent)
}
}

Check failure on line 220 in AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt#L220 <standard:indent>

Unexpected indentation (0) (should be 4)
Raw output
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/mindmap/MindMapViewModel.kt:220:1: error: Unexpected indentation (0) (should be 4) (standard:indent)

0 comments on commit 16e57a1

Please sign in to comment.