Add detekt.yml

This commit is contained in:
Mygod
2018-01-21 17:34:20 -08:00
parent 14050f7dbf
commit 6e7df8ecf7
4 changed files with 269 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ class RepeaterFragment : Fragment(), ServiceConnection, Toolbar.OnMenuItemClickL
IpNeighbour.State.INCOMPLETE, null -> R.string.connected_state_incomplete
IpNeighbour.State.VALID -> R.string.connected_state_valid
IpNeighbour.State.FAILED -> R.string.connected_state_failed
else -> throw IllegalStateException()
else -> throw IllegalStateException("Invalid IpNeighbour.State")
}, iface)
}
private class ClientViewHolder(val binding: ListitemClientBinding) : RecyclerView.ViewHolder(binding.root)