mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Format
This commit is contained in:
parent
5ab4ea7ec8
commit
cf205a707c
|
@ -95,7 +95,8 @@ spotless {
|
||||||
endWithNewline()
|
endWithNewline()
|
||||||
}
|
}
|
||||||
kotlin {
|
kotlin {
|
||||||
ktlint("0.40.0")
|
ktlint("0.40.0").userData(["disabled_rules": "no-wildcard-imports"])
|
||||||
|
licenseHeaderFile "license_header"
|
||||||
trimTrailingWhitespace()
|
trimTrailingWhitespace()
|
||||||
endWithNewline()
|
endWithNewline()
|
||||||
}
|
}
|
||||||
|
|
18
license_header
Normal file
18
license_header
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
Mangadex@Home
|
||||||
|
Copyright (c) 2020, MangaDex Network
|
||||||
|
This file is part of MangaDex@Home.
|
||||||
|
|
||||||
|
MangaDex@Home is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
MangaDex@Home is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet
|
package mdnet
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationFeature
|
import com.fasterxml.jackson.databind.DeserializationFeature
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet
|
package mdnet
|
||||||
|
|
||||||
import ch.qos.logback.classic.LoggerContext
|
import ch.qos.logback.classic.LoggerContext
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet
|
package mdnet
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException
|
import com.fasterxml.jackson.core.JsonProcessingException
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet
|
package mdnet
|
||||||
|
|
||||||
import io.micrometer.prometheus.PrometheusConfig
|
import io.micrometer.prometheus.PrometheusConfig
|
||||||
|
|
1
src/main/kotlin/mdnet/cache/ImageStorage.kt
vendored
1
src/main/kotlin/mdnet/cache/ImageStorage.kt
vendored
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.cache
|
package mdnet.cache
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper
|
import com.fasterxml.jackson.databind.ObjectMapper
|
||||||
|
|
1
src/main/kotlin/mdnet/cache/metadata.kt
vendored
1
src/main/kotlin/mdnet/cache/metadata.kt
vendored
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.cache
|
package mdnet.cache
|
||||||
|
|
||||||
import org.ktorm.schema.*
|
import org.ktorm.schema.*
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.metrics
|
package mdnet.metrics
|
||||||
|
|
||||||
import io.micrometer.core.instrument.Tag
|
import io.micrometer.core.instrument.Tag
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.metrics
|
package mdnet.metrics
|
||||||
|
|
||||||
import com.maxmind.db.CHMCache
|
import com.maxmind.db.CHMCache
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.metrics
|
package mdnet.metrics
|
||||||
|
|
||||||
import org.http4k.core.HttpTransaction
|
import org.http4k.core.HttpTransaction
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.netty
|
package mdnet.netty
|
||||||
|
|
||||||
import io.netty.bootstrap.ServerBootstrap
|
import io.netty.bootstrap.ServerBootstrap
|
||||||
|
|
|
@ -1,24 +1,21 @@
|
||||||
// The code below is adapted from from https://github.com/Mastercard/client-encryption-java/blob/master/src/main/java/com/mastercard/developer/utils/EncryptionUtils.java
|
/*
|
||||||
//
|
Mangadex@Home
|
||||||
// Copyright (c) 2019 Mastercard
|
Copyright (c) 2020, MangaDex Network
|
||||||
//
|
This file is part of MangaDex@Home.
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
MangaDex@Home is free software: you can redistribute it and/or modify
|
||||||
// in the Software without restriction, including without limitation the rights
|
it under the terms of the GNU General Public License as published by
|
||||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
// copies of the Software, and to permit persons to whom the Software is
|
(at your option) any later version.
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
//
|
MangaDex@Home is distributed in the hope that it will be useful,
|
||||||
// The above copyright notice and this permission notice shall be included in all
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// copies or substantial portions of the Software.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
//
|
GNU General Public License for more details.
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
You should have received a copy of the GNU General Public License
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// 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.
|
|
||||||
package mdnet.netty
|
package mdnet.netty
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.server
|
package mdnet.server
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException
|
import com.fasterxml.jackson.core.JsonProcessingException
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.server
|
package mdnet.server
|
||||||
|
|
||||||
import mdnet.BuildInfo
|
import mdnet.BuildInfo
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.server
|
package mdnet.server
|
||||||
|
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet
|
package mdnet
|
||||||
|
|
||||||
import io.kotest.core.config.AbstractProjectConfig
|
import io.kotest.core.config.AbstractProjectConfig
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.cache
|
package mdnet.cache
|
||||||
|
|
||||||
import io.kotest.assertions.throwables.shouldThrow
|
import io.kotest.assertions.throwables.shouldThrow
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
/*
|
||||||
|
Mangadex@Home
|
||||||
|
Copyright (c) 2020, MangaDex Network
|
||||||
|
This file is part of MangaDex@Home.
|
||||||
|
|
||||||
|
MangaDex@Home is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
MangaDex@Home is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
package mdnet.metrics
|
package mdnet.metrics
|
||||||
|
|
||||||
import com.maxmind.geoip2.DatabaseReader
|
import com.maxmind.geoip2.DatabaseReader
|
||||||
|
|
|
@ -16,7 +16,6 @@ GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
along with this MangaDex@Home. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* ktlint-disable no-wildcard-imports */
|
|
||||||
package mdnet.server
|
package mdnet.server
|
||||||
|
|
||||||
import io.kotest.assertions.withClue
|
import io.kotest.assertions.withClue
|
||||||
|
|
Loading…
Reference in a new issue