mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 23:58:43 +07:00
Fixed more warnings (#9401)
* fix: fix FunctionParameterNaming warnings * fix: fix InvalidPackageDeclaration warnings * fix: fix MatchingDeclarationName warnings * fix: fix WrongEqualsTypeParameter warnings * fix: fix UnusedPrivateProperty warnings * fix: fix UseCheckOrError warningsU * fix: fix UseRequire warningsU * detekt: disabled SpreadOperator rule * fix: resolve MemberNameEqualsClassName rule * detekt: disabled ForbiddenComment rule * fix: resolved SwallowedException warning * fix: resolved ThrowingExceptionsWithoutMessageOrCause warning * fix: resolved EmptyFunctionBlock warning * fix: resolved EmptyFunctionBlock warning * fix: resolved InstanceOfCheckForError warning * detekt: disable TooGenericExceptionCaught warning * detekt: disable TooGenericExceptionThrown warning * fix: resolve part of NestedBlockDepth warnings
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
@file:Suppress("InvalidPackageDeclaration")
|
||||
package com.unciv.build
|
||||
|
||||
import com.badlogic.gdx.graphics.Texture
|
||||
@ -62,14 +63,15 @@ object AndroidImagePacker {
|
||||
|
||||
// pack for mods
|
||||
val modDirectory = File("mods")
|
||||
if (modDirectory.exists()) {
|
||||
for (mod in modDirectory.listFiles()!!) {
|
||||
if (!mod.isHidden) {
|
||||
try {
|
||||
packImagesPerMod(mod.path, mod.path, defaultSettings)
|
||||
} catch (ex: Throwable) {
|
||||
}
|
||||
}
|
||||
if (!modDirectory.exists())
|
||||
return
|
||||
for (mod in modDirectory.listFiles()!!) {
|
||||
if (mod.isHidden)
|
||||
continue
|
||||
try {
|
||||
packImagesPerMod(mod.path, mod.path, defaultSettings)
|
||||
} catch (ex: Throwable) {
|
||||
ex.printStackTrace()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user