Skip to content

v1.19.0 - #500

Merged
Leon406 merged 380 commits into
mainfrom
dev
Dec 15, 2025
Merged

Leon406 merged 380 commits into
mainfrom
dev

Conversation

@Leon406

@Leon406 Leon406 commented Dec 15, 2025

Copy link
Copy Markdown
Owner

No description provided.

renovate Bot and others added 30 commits May 24, 2024 13:57
Leon406 and others added 28 commits October 2, 2025 14:45
mutableSetOf<Int>()
.apply {
// PUA
addAll(0xE000..0xF8FF)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
// PUA
addAll(0xE000..0xF8FF)
// PUA_EXT_A
addAll(0xF0000..0xFFFFF)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
// PUA
addAll(0xE000..0xF8FF)
// PUA_EXT_A
addAll(0xF0000..0xFFFFF)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
// PUA_EXT_A
addAll(0xF0000..0xFFFFF)
// PUA_EXT_B
addAll(0x100000..0x10FFFF)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
// PUA_EXT_A
addAll(0xF0000..0xFFFFF)
// PUA_EXT_B
addAll(0x100000..0x10FFFF)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
fun Double.ieee754HexLE() = ieee754Hex().chunked(2).reversed().joinToString("")

fun Double.ieee754Readable() =
with(ieee754().replace(" ", "")) { "${first()} ${substring(1..11)} ${substring(12)}" }

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
.filter { it.first.code > 32 }
.sortedByDescending { it.second }
.joinToString(System.lineSeparator()) { "${it.first}: ${it.second}" }
.filter { it.first.unicodeCharToInt() > 32 }

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
val unicode = it.first.unicodeCharToInt()
val unicodeStr =
if (PUA_RANGE.contains(unicode)) {
"\tU+${unicode.toString(16).uppercase()}"

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.

fun String.winEscape() = replace("^\\^\"", "\"").replace(winEscapeReg, "$1")

fun String.parseCurl(): Request {

Check warning

Code scanning / detekt

Prefer splitting up complex methods into smaller, easier to understand methods. Warning

The function parseCurl appears to be too complex (19). Defined complexity threshold for methods is set to '15'
s.startsWith("curl ") ->
with(s.removeFirstAndEndQuotes(startIndex)) {
if (startsWith("-X")) {
val str = substring(3)

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
@Leon406
Leon406 merged commit aa03ca9 into main Dec 15, 2025
8 checks passed
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.

2 participants