Linter fixes, plus a lint suppression for Buffer.kt.

This commit is contained in:
KotlinGeekDev
2026-02-12 14:28:59 +01:00
parent 9caba9dcd4
commit 68c7f5e884
9 changed files with 10 additions and 29 deletions
@@ -76,8 +76,8 @@ object SCrypt {
): ByteArray { ): ByteArray {
require(!(n < 2 || (n and (n - 1)) != 0)) { "N must be a power of 2 greater than 1" } require(!(n < 2 || (n and (n - 1)) != 0)) { "N must be a power of 2 greater than 1" }
require(n <= Int.Companion.MAX_VALUE / 128 / r) { "Parameter N is too large" } require(n <= Int.MAX_VALUE / 128 / r) { "Parameter N is too large" }
require(r <= Int.Companion.MAX_VALUE / 128 / p) { "Parameter r is too large" } require(r <= Int.MAX_VALUE / 128 / p) { "Parameter r is too large" }
val mac = MacInstance("HmacSHA256", passwd) val mac = MacInstance("HmacSHA256", passwd)
@@ -20,26 +20,6 @@
*/ */
package com.vitorpamplona.quartz package com.vitorpamplona.quartz
/**
* Copyright (c) 2025 Vitor Pamplona
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
expect class TestResourceLoader() { expect class TestResourceLoader() {
fun loadString(file: String): String fun loadString(file: String): String
} }
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -21,6 +21,7 @@
package com.vitorpamplona.quartz.utils.io package com.vitorpamplona.quartz.utils.io
// Credits: skolson, from https://github.com/skolson/KmpIO // Credits: skolson, from https://github.com/skolson/KmpIO
@Suppress("ktlint")
abstract class Buffer<Element, Array> internal constructor( abstract class Buffer<Element, Array> internal constructor(
markPosition: Int, markPosition: Int,
pos: Int, pos: Int,
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of
@@ -1,4 +1,4 @@
/** /*
* Copyright (c) 2025 Vitor Pamplona * Copyright (c) 2025 Vitor Pamplona
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy of * Permission is hereby granted, free of charge, to any person obtaining a copy of