From 4b8b945f2873012fb10e3fad8a58eff69c027efd Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 19 Jun 2021 14:24:36 +0200 Subject: [PATCH] Don't run the diktatcheck task in every build, and edit Formatting.yml even more --- Formatting.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ build.gradle.kts | 1 - 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Formatting.yml b/Formatting.yml index d31aac5..2d6c5dc 100644 --- a/Formatting.yml +++ b/Formatting.yml @@ -21,9 +21,13 @@ enabled: true configuration: extendedIndentOfParameters: false + extendedIndentBeforeDot: false alignedParameters: true indentationSize: 4 +- name: WRONG_NEWLINES + enabled: false + - name: NO_BRACES_IN_CONDITIONALS_AND_LOOPS enabled: false @@ -32,7 +36,26 @@ configuration: ignoreEnums: true ignoreExtensionFunctions: true + ignorePropertyDeclaration: true + ignoreConstantDeclaration: true + destructuringDeclaration: false +- name: LONG_NUMERICAL_VALUES_SEPARATED + enabled: false + +- name: ENUMS_SEPARATED + enabled: false + +- name: COMPLEX_EXPRESSION + enabled: false + +- name: AVOID_USING_UTILITY_CLASS + enabled: false + +- name: TOO_MANY_PARAMETERS + enabled: true + configuration: + maxParameterListSize: 12 - name: CLASS_SHOULD_NOT_BE_ABSTRACT enabled: false @@ -42,6 +65,22 @@ - name: FUNCTION_NAME_INCORRECT_CASE enabled: false +- name: FILE_NAME_INCORRECT + enabled: false + +- name: FILE_WILDCARD_IMPORTS + enabled: true + configuration: + allowedWildcards: "com.mojang.blaze3d.vertex.*" +- name: HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE + enabled: false + +- name: VARIABLE_HAS_PREFIX + enabled: false + +- name: IDENTIFIER_LENGTH + enabled: false + - name: CONSTANT_UPPERCASE enabled: false @@ -51,5 +90,8 @@ - name: MISSING_KDOC_CLASS_ELEMENTS enabled: false +- name: KDOC_NO_CONSTRUCTOR_PROPERTY + enabled: false + - name: MISSING_KDOC_ON_FUNCTION enabled: false \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 5aabb1f..ba67a12 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -152,7 +152,6 @@ subprojects { input.set(shrinkedJar) if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars")) } - build.get().dependsOn(diktatCheck) } }