Fix yml formatting and add editorconfig rules to properly handle markdown files and enforce max line length of 120 globally
This commit is contained in:
parent
5bf17931be
commit
f0dd87646d
2 changed files with 24 additions and 15 deletions
|
@ -2,15 +2,24 @@ root = true
|
|||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
ij_continuation_indent_size = 4
|
||||
tab_width = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
max_line_length = 120
|
||||
|
||||
[*.{kt,kts}]
|
||||
ij_kotlin_imports_layout = *,^
|
||||
ij_kotlin_allow_trailing_comma = true
|
||||
ij_kotlin_allow_trailing_comma_on_call_site = true
|
||||
|
||||
[*.{yml,yaml,json,toml}]
|
||||
[*.{yml,yaml,json,toml,md}]
|
||||
indent_size = 2
|
||||
tab_width = 2
|
||||
ij_continuation_indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
|
26
.github/workflows/markdown.yml
vendored
26
.github/workflows/markdown.yml
vendored
|
@ -7,20 +7,20 @@ on:
|
|||
- '.github/workflows/markdown.yml'
|
||||
|
||||
jobs:
|
||||
markdown_quality:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
markdown_quality:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Quality - Spotless Markdown Check
|
||||
run: ./gradlew spotlessMarkdownCheck
|
||||
- name: Quality - Spotless Markdown Check
|
||||
run: ./gradlew spotlessMarkdownCheck
|
||||
|
|
Loading…
Reference in a new issue