Skip to content

Commit

Permalink
test: add detekt baseline
Browse files Browse the repository at this point in the history
Signed-off-by: Art Shendrik <[email protected]>
  • Loading branch information
amal committed Jun 28, 2024
1 parent 6a7506f commit ddade5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions fluxo-io-rad/detekt-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues></ManuallySuppressedIssues>
<CurrentIssues>
<ID>ForbiddenComment:AsyncFileChannelRad.kt$// TODO: Avoid runBlocking usage, block without coroutine suspension (use Semaphore?)</ID>
<ID>ForbiddenComment:RandomAccessDataInputStream.kt$RandomAccessDataInputStream$// TODO: Can it cause Int overflow?</ID>
<ID>ForbiddenComment:RandomAccessFileRad.kt$// TODO: Try to avoiding the excessive `filePointer` usages.</ID>
<ID>ForbiddenComment:ReflectionUtils.kt$// TODO: Complex search as for dynamic methods ?</ID>
<ID>ForbiddenComment:StreamFactoryRad.kt$// FIXME: Use own BufferedInputStream heir to gain better random access performance?</ID>
</CurrentIssues>
</SmellBaseline>
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private constructor(access: StreamFactoryAccess, offset: Long, size: Long) :
if (skipped > 0L) {
toSkip -= skipped
idles = 0
} else if (++idles >= 3) {
} else if (++idles >= @Suppress("MagicNumber") 3) {
throw EOFException("Can't skip enough bytes ($length). 3 idle skips")
}
}
Expand Down

0 comments on commit ddade5b

Please sign in to comment.