Removed complexity (detekt)
This commit is contained in:
parent
02fae4d8e4
commit
fbe36d50b7
10 changed files with 328 additions and 271 deletions
|
@ -2,25 +2,15 @@
|
|||
<SmellBaseline>
|
||||
<Blacklist></Blacklist>
|
||||
<Whitelist>
|
||||
<ID>ComplexCondition:UrlMgr.kt$UrlMgr$Ignore.isNotIgnored(sender) && (cmds.size == 1 || !cmds[1].contains(bot.nick) || !cmds[1].endsWith(" (${Ignore.IGNORE_CMD}"))</ID>
|
||||
<ID>ComplexMethod:Posting.kt$Posting$commandResponse</ID>
|
||||
<ID>ComplexMethod:UrlMgr.kt$UrlMgr$commandResponse</ID>
|
||||
<ID>ComplexMethod:View.kt$View$commandResponse</ID>
|
||||
<ID>LongMethod:Posting.kt$Posting$commandResponse</ID>
|
||||
<ID>LongMethod:UrlMgr.kt$UrlMgr$commandResponse</ID>
|
||||
<ID>LongMethod:View.kt$View$commandResponse</ID>
|
||||
<ID>LongParameterList:AbstractCommand.kt$AbstractCommand$( bot: Mobibot, sender: String, login: String, args: String, isOp: Boolean, isPrivate: Boolean )</ID>
|
||||
<ID>LoopWithTooManyJumpStatements:View.kt$View$while (i < max) { entry = getEntry(i) if (lcArgs.isNotEmpty()) { if (entry.link.toLowerCase().contains(lcArgs) || entry.title.toLowerCase().contains(lcArgs) || entry.nick.toLowerCase().contains(lcArgs)) { if (sent > maxEntries) { bot.send( sender, "To view more, try: " + Utils.bold("${bot.nick}: $command ${i + 1} $lcArgs"), isPrivate ) break } bot.send(sender, EntriesUtils.buildLink(i, entry, true), isPrivate) sent++ } } else { if (sent > maxEntries) { bot.send( sender, "To view more, try: " + Utils.bold("${bot.nick}: $command ${i + 1}"), isPrivate ) break } bot.send(sender, EntriesUtils.buildLink(i, entry, true), isPrivate) sent++ } i++ }</ID>
|
||||
<ID>LongParameterList:Comment.kt$Comment$( bot: Mobibot, cmd: String, sender: String, isOp: Boolean, entry: EntryLink, index: Int, commentIndex: Int )</ID>
|
||||
<ID>LongParameterList:Comment.kt$Comment$(bot: Mobibot, cmd: String, sender: String, entry: EntryLink, index: Int, commentIndex: Int)</ID>
|
||||
<ID>MagicNumber:Comment.kt$Comment$3</ID>
|
||||
<ID>MagicNumber:Cycle.kt$Cycle$10</ID>
|
||||
<ID>MagicNumber:Recap.kt$Recap.Companion$10</ID>
|
||||
<ID>MagicNumber:UrlMgr.kt$UrlMgr$1000L</ID>
|
||||
<ID>MagicNumber:UrlMgr.kt$UrlMgr$60L</ID>
|
||||
<ID>MagicNumber:View.kt$View$8</ID>
|
||||
<ID>NestedBlockDepth:Comment.kt$Comment$commandResponse</ID>
|
||||
<ID>NestedBlockDepth:Ignore.kt$Ignore$commandResponse</ID>
|
||||
<ID>NestedBlockDepth:Posting.kt$Posting$commandResponse</ID>
|
||||
<ID>NestedBlockDepth:UrlMgr.kt$UrlMgr$commandResponse</ID>
|
||||
<ID>NestedBlockDepth:View.kt$View$commandResponse</ID>
|
||||
</Whitelist>
|
||||
</SmellBaseline>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue