Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a Notification and Messaging Client Backend(connects to server) #164

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

Zedonboy
Copy link

What this PR does:
Created The necessary backend part of realtime notification and messaging.

Which issue(s) this PR fixes:

It adds Feature for Realtime Notification and Messaging

Special notes for reviewers:

Devs can create frontends that connects to this library and Make UI changes.:

@todo
Copy link

todo bot commented Jan 20, 2021

("fill up the Object properties")

//TODO("fill up the Object properties")
data class Message(val content : String? = null, val authorId : String? = null){
val _id : String? = null
}
data class wsCallBack<T>(val onSuccess : (data : T) -> Unit, val onError : (Error?) -> Unit)


This comment was generated by todo based on a TODO comment in 685f0b8 in #164. cc @FightPandemics.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

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

ktlint

socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|77 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|88 col 33| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|90 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|90 col 59| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|90 col 63| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|91 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|95 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|95 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|100 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|103 col 33| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|103 col 46| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|103 col 76| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|107 col 26| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|107 col 40| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|107 col 70| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|117 col 23| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|117 col 38| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|117 col 73| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|119 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|119 col 52| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|123 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|123 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|130 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|141 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|141 col 60| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|142 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|142 col 45| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|142 col 49| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|146 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|146 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|153 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|160 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|162 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|162 col 59| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|166 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|166 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|173 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|180 col 23| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|180 col 67| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 64| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 68| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|186 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|186 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|190 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|193 col 1| Needless blank line(s)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|194 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|195 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|195 col 46| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|199 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|199 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|202 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|205 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|205 col 77| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|209 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|209 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|213 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|213 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|216 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|219 col 32| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|223 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|223 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|231 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 78| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|246 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 38| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 46| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|262 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|265 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|271 col 28| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|275 col 31| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|286 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 36| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|293 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 35| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|300 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 45| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|307 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 39| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|314 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 38| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|320 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|327 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|330 col 1| Needless blank line(s)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|361 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|365 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 65| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 21| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 62| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 19| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 58| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 67| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 17| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|398 col 1| Unexpected blank line(s) before "}"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|5 col 1| Missing space after //
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 32| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 63| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 80| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|7 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 40| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 74| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 33| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 41| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 39| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 55| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 56| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 50| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 85| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 1| Unexpected indentation (16) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 17| Unexpected indentation (expected 4, actual 16)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 48| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 49| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|18 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|20 col 25| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|43 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|44 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|45 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 56| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|47 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 58| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 65| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 67| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|54 col 14| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|55 col 15| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|58 col 22| Unexpected spacing before ":"
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|1 col 1| File must end with a newline (\n)
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|3 col 1| Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|5 col 1| Wildcard import (cannot be auto-corrected)

@@ -0,0 +1,24 @@
package com.fightpandemics.socketmanagerlib

Choose a reason for hiding this comment

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

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

@@ -0,0 +1,24 @@
package com.fightpandemics.socketmanagerlib

import androidx.test.platform.app.InstrumentationRegistry

Choose a reason for hiding this comment

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

🚫 [ktlint] 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

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Wildcard import (cannot be auto-corrected)

@@ -0,0 +1,399 @@
package com.fightpandemics.socketmanagerlib

Choose a reason for hiding this comment

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

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

* 3. Make sure forceRoomUpdate is implemented or assigned a lambda.
* */
class SocketComponentBackend {
private var _socket : Socket

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Unexpected spacing before ":"

fun identify(organisationId : String, oldRoomId : String, cb : wsCallBack<Boolean>) {
val jsonObject = JSONObject()
jsonObject.put("organisationId", organisationId)
_socket.emit(IDENTIFY, jsonObject, Ack{

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing newline after ","

fun identify(organisationId : String, oldRoomId : String, cb : wsCallBack<Boolean>) {
val jsonObject = JSONObject()
jsonObject.put("organisationId", organisationId)
_socket.emit(IDENTIFY, jsonObject, Ack{

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

val jsonObject = JSONObject()
jsonObject.put("organisationId", organisationId)
_socket.emit(IDENTIFY, jsonObject, Ack{
if(it.isEmpty()) return@Ack

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing after "if"

val responseJSONObject = it[0] as JSONObject
val jsondata = responseJSONObject.toString()
val response = _gson.fromJson(jsondata, Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing after "if"

val responseJSONObject = it[0] as JSONObject
val jsondata = responseJSONObject.toString()
val response = _gson.fromJson(jsondata, Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

@todo
Copy link

todo bot commented Jan 21, 2021

("fill up the Object properties from Backend Models")

//TODO("fill up the Object properties from Backend Models")
data class Message(val content : String? = null, val authorId : String? = null){
val _id : String? = null
}
data class wsCallBack<T>(val onSuccess : (data : T) -> Unit, val onError : (Error?) -> Unit)


This comment was generated by todo based on a TODO comment in 32de74b in #164. cc @FightPandemics.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

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

ktlint

socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|160 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|162 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|162 col 59| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|166 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|166 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|173 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|180 col 23| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|180 col 67| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 64| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|182 col 68| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|186 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|186 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|190 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|193 col 1| Needless blank line(s)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|194 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|195 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|195 col 46| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|199 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|199 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|202 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|205 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|205 col 77| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|209 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|209 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|213 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|213 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|216 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|219 col 32| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|223 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|223 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|231 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 78| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|246 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 38| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 46| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|262 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|265 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|271 col 28| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|275 col 31| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|286 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 36| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|293 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 35| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|300 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 45| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|307 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 39| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|314 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 38| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|320 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|327 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|330 col 1| Needless blank line(s)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|361 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|365 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 65| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 21| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 62| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 19| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 58| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 67| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 17| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|398 col 1| Unexpected blank line(s) before "}"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|5 col 1| Missing space after //
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 32| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 63| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 80| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|7 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 40| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 74| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 33| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 41| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 39| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 55| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 56| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 50| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 85| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 1| Unexpected indentation (16) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 17| Unexpected indentation (expected 4, actual 16)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 48| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 49| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|18 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|20 col 25| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|43 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|44 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|45 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 56| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|47 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 58| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 65| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 67| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|54 col 14| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|55 col 15| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|58 col 22| Unexpected spacing before ":"
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|1 col 1| File must end with a newline (\n)
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|3 col 1| Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|5 col 1| Wildcard import (cannot be auto-corrected)

* This property is a function that is in charge of a situation if a user is blocked
* */
var forceRoomUpdate = fun(_: String){
throw UninitializedPropertyAccessException("You must implement a forceUpdateListener. " +

Choose a reason for hiding this comment

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

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

_eventBus.post(WSEvent(wsEventsTypes.IDENTIFY_ERROR))
cb.onError(Error(response.message))
}
})

Choose a reason for hiding this comment

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

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

*
* */

fun sendMessage(messageData : Message, callBack: wsCallBack<Boolean>) {

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Unexpected spacing before ":"


fun sendMessage(messageData : Message, callBack: wsCallBack<Boolean>) {
val jsonedMssg = _gson.toJson(messageData)
_socket.emit(SEND_MESSAGE, JSONObject(jsonedMssg), Ack{

Choose a reason for hiding this comment

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

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


fun sendMessage(messageData : Message, callBack: wsCallBack<Boolean>) {
val jsonedMssg = _gson.toJson(messageData)
_socket.emit(SEND_MESSAGE, JSONObject(jsonedMssg), Ack{

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing newline after ","

* passes a payload of JsonElement type from Gson library and null respectively
* */
fun getUserRooms(cb : wsCallBack<JsonElement?>? = null){
_socket.emit(GET_USER_THREADS, null, Ack{

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing newline after ","

* passes a payload of JsonElement type from Gson library and null respectively
* */
fun getUserRooms(cb : wsCallBack<JsonElement?>? = null){
_socket.emit(GET_USER_THREADS, null, Ack{

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing after "if"

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

_eventBus.post(WSEvent(wsEventsTypes.GET_ROOMS_ERROR))
cb?.onError?.invoke(Error(response.message))
}
})

Choose a reason for hiding this comment

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

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

@Zedonboy Zedonboy closed this Jan 21, 2021
@Zedonboy Zedonboy reopened this Jan 21, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

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

ktlint

socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|223 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|227 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|231 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|234 col 78| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|238 col 53| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|242 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|246 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 25| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|249 col 38| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 22| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 46| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|255 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|259 col 37| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|262 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|265 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|271 col 28| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|275 col 31| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|280 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|286 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|288 col 36| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|293 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|295 col 35| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|300 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|302 col 45| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|307 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|309 col 39| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|314 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|316 col 38| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|320 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 20| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|322 col 37| Missing newline after ","
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|327 col 9| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|330 col 1| Needless blank line(s)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|332 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|361 col 22| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|365 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|367 col 65| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 21| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|372 col 62| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 19| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|377 col 58| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 24| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|382 col 67| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|387 col 53| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 17| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|391 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 15| Missing spacing after "if"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|393 col 41| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/SocketComponent.kt|398 col 1| Unexpected blank line(s) before "}"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|5 col 1| Missing space after //
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 32| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 63| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|6 col 80| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|7 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 40| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 48| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|10 col 74| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 25| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|11 col 33| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|12 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|13 col 41| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 1| Unexpected indentation (24) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 25| Unexpected indentation (expected 4, actual 24)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 39| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 55| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|14 col 56| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 30| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 50| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|15 col 85| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Parameter should be on a separate line (unless all parameters can fit a single line)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 17| Missing newline after "("
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|16 col 27| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 1| Unexpected indentation (16) (should be 4)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 17| Unexpected indentation (expected 4, actual 16)
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 48| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 49| Missing newline before ")"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|17 col 50| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|18 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|20 col 25| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|42 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|43 col 60| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|44 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|45 col 31| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|46 col 56| Missing spacing before "{"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|47 col 13| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|50 col 58| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 36| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|51 col 65| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 34| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|52 col 67| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|54 col 14| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|55 col 15| Unexpected spacing before ":"
socketManagerLib/src/main/java/com/fightpandemics/socketmanagerlib/wsTypes.kt|58 col 22| Unexpected spacing before ":"
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|1 col 1| File must end with a newline (\n)
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|3 col 1| Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
socketManagerLib/src/test/java/com/fightpandemics/socketmanagerlib/ExampleUnitTest.kt|5 col 1| Wildcard import (cannot be auto-corrected)

* This Function posts GET_MESSAGE_HISTORY and GET_MESSAGE_HISTORY_ERROR Events,
* passes a payload of JsonElement type from Gson library and null respectively
* */
fun getChatLog(data : GetChatLog, cb: wsCallBack<JsonElement?>? = null) {

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Unexpected spacing before ":"

* */
fun getChatLog(data : GetChatLog, cb: wsCallBack<JsonElement?>? = null) {
val jsonedMssg = _gson.toJson(data)
_socket.emit(GET_CHAT_LOG, JSONObject(jsonedMssg), Ack {

Choose a reason for hiding this comment

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

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

* */
fun getChatLog(data : GetChatLog, cb: wsCallBack<JsonElement?>? = null) {
val jsonedMssg = _gson.toJson(data)
_socket.emit(GET_CHAT_LOG, JSONObject(jsonedMssg), Ack {

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing newline after ","

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing after "if"

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing after "if"

if (it.isEmpty()) return@Ack // I hate nonsense!!
val jsonobj = it[0] as JSONObject
val response = _gson.fromJson(jsonobj.toString(), Response::class.java)
if(response.code == 200){

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "{"

if(response.code == 200){
joinRoom(JoinRoom(threadId), cb)
} else cb?.onError?.invoke(Error(response.message))
})

Choose a reason for hiding this comment

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

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

})
}

fun archiveThread(threadId : String, cb: wsCallBack<JsonElement?>? = null) {

Choose a reason for hiding this comment

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

🚫 [ktlint] reported by reviewdog 🐶
Unexpected spacing before ":"

val jsondata = JSONObject()
jsondata.put("threadId", threadId)
jsondata.put("newStatus", "archived")
_socket.emit(UPDATE_THREAD_STATUS, jsondata, Ack {

Choose a reason for hiding this comment

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

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

Copy link
Collaborator

@carl05 carl05 left a comment

Choose a reason for hiding this comment

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

Please try to solve ktlints issues reported by reviewdog. You can add a plgin to android studio and it automatically show these errors and sugguests quick actions to solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants