Don't run the diktatcheck task in every build, and edit Formatting.yml even more

This commit is contained in:
Username404 2021-06-19 14:24:36 +02:00
parent 1bd054c7c5
commit 4b8b945f28
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 42 additions and 1 deletions

View File

@ -21,9 +21,13 @@
enabled: true enabled: true
configuration: configuration:
extendedIndentOfParameters: false extendedIndentOfParameters: false
extendedIndentBeforeDot: false
alignedParameters: true alignedParameters: true
indentationSize: 4 indentationSize: 4
- name: WRONG_NEWLINES
enabled: false
- name: NO_BRACES_IN_CONDITIONALS_AND_LOOPS - name: NO_BRACES_IN_CONDITIONALS_AND_LOOPS
enabled: false enabled: false
@ -32,7 +36,26 @@
configuration: configuration:
ignoreEnums: true ignoreEnums: true
ignoreExtensionFunctions: 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 - name: CLASS_SHOULD_NOT_BE_ABSTRACT
enabled: false enabled: false
@ -42,6 +65,22 @@
- name: FUNCTION_NAME_INCORRECT_CASE - name: FUNCTION_NAME_INCORRECT_CASE
enabled: false 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 - name: CONSTANT_UPPERCASE
enabled: false enabled: false
@ -51,5 +90,8 @@
- name: MISSING_KDOC_CLASS_ELEMENTS - name: MISSING_KDOC_CLASS_ELEMENTS
enabled: false enabled: false
- name: KDOC_NO_CONSTRUCTOR_PROPERTY
enabled: false
- name: MISSING_KDOC_ON_FUNCTION - name: MISSING_KDOC_ON_FUNCTION
enabled: false enabled: false

View File

@ -152,7 +152,6 @@ subprojects {
input.set(shrinkedJar) input.set(shrinkedJar)
if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars")) if (!archiveFileName.get().contains("common")) destinationDirectory.set(file("$rootDir/remappedJars"))
} }
build.get().dependsOn(diktatCheck)
} }
} }