upgrade ktlint plugin to 12.0.3 (#4169)
There are some new rules, I think they mostly make sense, except for the max line length which I had to disable because we are over it in a lot of places. --------- Co-authored-by: Goooler <wangzongler@gmail.com>
This commit is contained in:
parent
33cd6fdb98
commit
5192fb08a5
215 changed files with 2813 additions and 1177 deletions
|
|
@ -15,7 +15,7 @@ data class Instance(
|
|||
// val registrations: Registrations,
|
||||
// val contact: Contact,
|
||||
val rules: List<Rule>,
|
||||
val pleroma: PleromaConfiguration?,
|
||||
val pleroma: PleromaConfiguration?
|
||||
) {
|
||||
data class Usage(val users: Users) {
|
||||
data class Users(@SerializedName("active_month") val activeMonth: Int)
|
||||
|
|
@ -23,11 +23,11 @@ data class Instance(
|
|||
data class Thumbnail(
|
||||
val url: String,
|
||||
val blurhash: String?,
|
||||
val versions: Versions?,
|
||||
val versions: Versions?
|
||||
) {
|
||||
data class Versions(
|
||||
@SerializedName("@1x") val at1x: String?,
|
||||
@SerializedName("@2x") val at2x: String?,
|
||||
@SerializedName("@2x") val at2x: String?
|
||||
)
|
||||
}
|
||||
data class Configuration(
|
||||
|
|
@ -36,14 +36,14 @@ data class Instance(
|
|||
val statuses: Statuses?,
|
||||
@SerializedName("media_attachments") val mediaAttachments: MediaAttachments?,
|
||||
val polls: Polls?,
|
||||
val translation: Translation?,
|
||||
val translation: Translation?
|
||||
) {
|
||||
data class Urls(@SerializedName("streaming_api") val streamingApi: String)
|
||||
data class Accounts(@SerializedName("max_featured_tags") val maxFeaturedTags: Int)
|
||||
data class Statuses(
|
||||
@SerializedName("max_characters") val maxCharacters: Int,
|
||||
@SerializedName("max_media_attachments") val maxMediaAttachments: Int,
|
||||
@SerializedName("characters_reserved_per_url") val charactersReservedPerUrl: Int,
|
||||
@SerializedName("characters_reserved_per_url") val charactersReservedPerUrl: Int
|
||||
)
|
||||
data class MediaAttachments(
|
||||
// Warning: This is an array in mastodon and a dictionary in friendica
|
||||
|
|
@ -52,20 +52,20 @@ data class Instance(
|
|||
@SerializedName("image_matrix_limit") val imagePixelCountLimit: Long,
|
||||
@SerializedName("video_size_limit") val videoSizeLimitBytes: Long,
|
||||
@SerializedName("video_matrix_limit") val videoPixelCountLimit: Long,
|
||||
@SerializedName("video_frame_rate_limit") val videoFrameRateLimit: Int,
|
||||
@SerializedName("video_frame_rate_limit") val videoFrameRateLimit: Int
|
||||
)
|
||||
data class Polls(
|
||||
@SerializedName("max_options") val maxOptions: Int,
|
||||
@SerializedName("max_characters_per_option") val maxCharactersPerOption: Int,
|
||||
@SerializedName("min_expiration") val minExpirationSeconds: Int,
|
||||
@SerializedName("max_expiration") val maxExpirationSeconds: Int,
|
||||
@SerializedName("max_expiration") val maxExpirationSeconds: Int
|
||||
)
|
||||
data class Translation(val enabled: Boolean)
|
||||
}
|
||||
data class Registrations(
|
||||
val enabled: Boolean,
|
||||
@SerializedName("approval_required") val approvalRequired: Boolean,
|
||||
val message: String?,
|
||||
val message: String?
|
||||
)
|
||||
data class Contact(val email: String, val account: Account)
|
||||
data class Rule(val id: String, val text: String)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue