diff --git a/LICENSE_HEADER.md b/HEADER.md similarity index 95% rename from LICENSE_HEADER.md rename to HEADER.md index 68a872d..ab3a204 100644 --- a/LICENSE_HEADER.md +++ b/HEADER.md @@ -1,8 +1,8 @@ -This file is part of NoHorny. The plugin securing your server against nsfw. +This file is part of NoHorny. The plugin securing your server against nsfw builds. MIT License -Copyright (c) 2023 Xpdustry +Copyright (c) 2024 Xpdustry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/LICENSE.md b/LICENSE.md index 691cf83..17feb1d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Xpdustry +Copyright (c) 2024 Xpdustry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/build.gradle.kts b/build.gradle.kts index 2569856..893a600 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -124,15 +124,14 @@ signing { spotless { kotlin { - fun toLongComment(text: String) = + ktfmt().dropboxStyle() + licenseHeader( buildString { appendLine("/*") - text.lines().forEach { appendLine(" * ${it.trim()}") } + rootProject.file("HEADER.md").readText().lines().forEach { appendLine(" * ${it.trim()}") } appendLine(" */") - } - - ktfmt().dropboxStyle() - licenseHeader(toLongComment(rootProject.file("LICENSE_HEADER.md").readText())) + }, + ) indentWithSpaces(4) trimTrailingWhitespace() endWithNewline() diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyAPI.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyAPI.kt index 7d05a1d..b346945 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyAPI.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyAPI.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyAutoBan.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyAutoBan.kt index b7207e4..d505b48 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyAutoBan.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyAutoBan.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyCache.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyCache.kt index 02a5636..306f73b 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyCache.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyCache.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyConfig.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyConfig.kt index 2c79a52..b13ac29 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyConfig.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyConfig.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyImage.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyImage.kt index 2fc066f..add9626 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyImage.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyImage.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyListener.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyListener.kt index 9994073..af111e4 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyListener.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyListener.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyLogger.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyLogger.kt index 62ae696..3cce64b 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyLogger.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyLogger.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt index 7c74d94..0ffea9b 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/NoHornyTracker.kt b/src/main/kotlin/com/xpdustry/nohorny/NoHornyTracker.kt index 61cfaee..ed9e4be 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/NoHornyTracker.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/NoHornyTracker.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/DebugImageAnalyzer.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/DebugImageAnalyzer.kt index b744944..3607d73 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/DebugImageAnalyzer.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/DebugImageAnalyzer.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/FallbackAnalyzer.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/FallbackAnalyzer.kt index e6b1a9e..5cb90f1 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/FallbackAnalyzer.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/FallbackAnalyzer.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzer.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzer.kt index c10e5b6..359a8c6 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzer.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzer.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzerEvent.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzerEvent.kt index 176977e..1022d44 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzerEvent.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ImageAnalyzerEvent.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ModerateContentAnalyzer.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ModerateContentAnalyzer.kt index 60dcc34..eeb9850 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/ModerateContentAnalyzer.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/ModerateContentAnalyzer.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/analyzer/SightEngineAnalyzer.kt b/src/main/kotlin/com/xpdustry/nohorny/analyzer/SightEngineAnalyzer.kt index 48d1577..785222b 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/analyzer/SightEngineAnalyzer.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/analyzer/SightEngineAnalyzer.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/extension/BufferedImageExtensions.kt b/src/main/kotlin/com/xpdustry/nohorny/extension/BufferedImageExtensions.kt index 3ed0e00..b4f831d 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/extension/BufferedImageExtensions.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/extension/BufferedImageExtensions.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/extension/MindustryExtensions.kt b/src/main/kotlin/com/xpdustry/nohorny/extension/MindustryExtensions.kt index 1e230b6..f1daf97 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/extension/MindustryExtensions.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/extension/MindustryExtensions.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/extension/OkHttpExtensions.kt b/src/main/kotlin/com/xpdustry/nohorny/extension/OkHttpExtensions.kt index 72fa60f..5356ea0 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/extension/OkHttpExtensions.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/extension/OkHttpExtensions.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/extension/SchedulerExtensions.kt b/src/main/kotlin/com/xpdustry/nohorny/extension/SchedulerExtensions.kt index 289dbbd..ebecc86 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/extension/SchedulerExtensions.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/extension/SchedulerExtensions.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/geometry/Cluster.kt b/src/main/kotlin/com/xpdustry/nohorny/geometry/Cluster.kt index 6b7ab09..47e1031 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/geometry/Cluster.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/geometry/Cluster.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/geometry/ClusterManager.kt b/src/main/kotlin/com/xpdustry/nohorny/geometry/ClusterManager.kt index 1e00be8..88fbf1e 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/geometry/ClusterManager.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/geometry/ClusterManager.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/geometry/ImmutablePoint.kt b/src/main/kotlin/com/xpdustry/nohorny/geometry/ImmutablePoint.kt index 1c343a0..7f589ea 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/geometry/ImmutablePoint.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/geometry/ImmutablePoint.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/main/kotlin/com/xpdustry/nohorny/geometry/Rectangle.kt b/src/main/kotlin/com/xpdustry/nohorny/geometry/Rectangle.kt index 4839553..69e5949 100644 --- a/src/main/kotlin/com/xpdustry/nohorny/geometry/Rectangle.kt +++ b/src/main/kotlin/com/xpdustry/nohorny/geometry/Rectangle.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/test/kotlin/com/xpdustry/nohorny/geometry/ClusterManagerTest.kt b/src/test/kotlin/com/xpdustry/nohorny/geometry/ClusterManagerTest.kt index 537bd5c..d49c983 100644 --- a/src/test/kotlin/com/xpdustry/nohorny/geometry/ClusterManagerTest.kt +++ b/src/test/kotlin/com/xpdustry/nohorny/geometry/ClusterManagerTest.kt @@ -1,9 +1,9 @@ /* - * This file is part of NoHorny. The plugin securing your server against nsfw. + * This file is part of NoHorny. The plugin securing your server against nsfw builds. * * MIT License * - * Copyright (c) 2023 Xpdustry + * Copyright (c) 2024 Xpdustry * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal