23 issues fixed. 22 issues found.
Annotations
Check warning on line 152 in nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt#L152
Parentheses in (red[index] * 0.2125f + green[index] * 0.7154f + blue[index] * 0.0721f) are unnecessary and can be replaced with: red[index] * 0.2125f + green[index] * 0.7154f + blue[index] * 0.0721f (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/SigmaClip.kt#L55
Parentheses in (sigmaUpper * std) are unnecessary and can be replaced with: sigmaUpper * std (detekt.UnnecessaryParentheses)
Check warning on line 259 in nebulosa-xisf/src/test/kotlin/XisfFormatTest.kt
codefactor-io / CodeFactor
nebulosa-xisf/src/test/kotlin/XisfFormatTest.kt#L259
Parentheses in (image.raster.dataBuffer as DataBufferInt) are unnecessary and can be replaced with: image.raster.dataBuffer as DataBufferInt (detekt.UnnecessaryParentheses)
Check warning on line 331 in nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt#L331
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/computation/hfd/HFD.kt#L56
Parentheses in (baseY - searchRegion) are unnecessary and can be replaced with: baseY - searchRegion (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/ScreenTransformFunction.kt#L61
Parentheses in (i * k1) are unnecessary and can be replaced with: i * k1 (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/AutoScreenTransformFunction.kt#L35
Parentheses in ((m - 1) * x) are unnecessary and can be replaced with: (m - 1) * x (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-xisf/src/main/kotlin/nebulosa/xisf/XisfMonolithicFileHeaderImageData.kt#L69
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/computation/hfd/HFD.kt#L54
Parentheses in (baseX - searchRegion) are unnecessary and can be replaced with: baseX - searchRegion (detekt.UnnecessaryParentheses)
Check warning on line 66 in nebulosa-fits/src/main/kotlin/nebulosa/fits/SeekableSourceImageData.kt
codefactor-io / CodeFactor
nebulosa-fits/src/main/kotlin/nebulosa/fits/SeekableSourceImageData.kt#L66
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/SigmaClip.kt#L54
Parentheses in (sigmaLower * std) are unnecessary and can be replaced with: sigmaLower * std (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/AutoScreenTransformFunction.kt#L23
Parentheses in (median - 2.8f * mad) are unnecessary and can be replaced with: median - 2.8f * mad (detekt.UnnecessaryParentheses)
Check warning on line 19 in nebulosa-fits/src/main/kotlin/nebulosa/fits/FitsFormat.kt
codefactor-io / CodeFactor
nebulosa-fits/src/main/kotlin/nebulosa/fits/FitsFormat.kt#L19
Parentheses in (numberOfBlocks * BLOCK_SIZE) are unnecessary and can be replaced with: numberOfBlocks * BLOCK_SIZE (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/computation/Histogram.kt#L20
Parentheses in (bitLength - 1) are unnecessary and can be replaced with: bitLength - 1 (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-alpaca-indi/src/main/kotlin/nebulosa/alpaca/indi/device/cameras/ASCOMCamera.kt#L101
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
Check warning on line 253 in nebulosa-xisf/src/test/kotlin/XisfFormatTest.kt
codefactor-io / CodeFactor
nebulosa-xisf/src/test/kotlin/XisfFormatTest.kt#L253
Parentheses in (image.raster.dataBuffer as DataBufferByte) are unnecessary and can be replaced with: image.raster.dataBuffer as DataBufferByte (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/ScreenTransformFunction.kt#L31
Parentheses in (1f / (highlight - shadow)) are unnecessary and can be replaced with: 1f / (highlight - shadow) (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/computation/hfd/HFD.kt#L57
Parentheses in (baseY + searchRegion) are unnecessary and can be replaced with: baseY + searchRegion (detekt.UnnecessaryParentheses)
Check warning on line 18 in nebulosa-fits/src/main/kotlin/nebulosa/fits/FitsFormat.kt
codefactor-io / CodeFactor
nebulosa-fits/src/main/kotlin/nebulosa/fits/FitsFormat.kt#L18
Parentheses in (sizeInBytes / BLOCK_SIZE) are unnecessary and can be replaced with: sizeInBytes / BLOCK_SIZE (detekt.UnnecessaryParentheses)
Check warning on line 369 in nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/Image.kt#L369
Forbidden TODO todo marker in comment, please do the changes. (detekt.ForbiddenComment)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/transformation/AutoScreenTransformFunction.kt#L26
Parentheses in (median + 2.8f * mad) are unnecessary and can be replaced with: median + 2.8f * mad (detekt.UnnecessaryParentheses)
codefactor-io / CodeFactor
nebulosa-image/src/main/kotlin/nebulosa/image/algorithms/computation/hfd/HFD.kt#L55
Parentheses in (baseX + searchRegion) are unnecessary and can be replaced with: baseX + searchRegion (detekt.UnnecessaryParentheses)