add yamllint config and update action

This commit is contained in:
HAHWUL 2024-01-02 01:08:35 +09:00
parent d464534e7c
commit 95ca6c66a5
2 changed files with 32 additions and 1 deletions

View File

@ -12,3 +12,4 @@
uses: ibiqlik/action-yamllint@v3 uses: ibiqlik/action-yamllint@v3
with: with:
file_or_dir: weapons/*.yaml file_or_dir: weapons/*.yaml
config_file: .yamllint.yml

30
.yamllint.yml Normal file
View File

@ -0,0 +1,30 @@
---
rules:
anchors: enable
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
level: warning
comments-indentation:
level: warning
document-end: disable
document-start:
level: warning
empty-lines: enable
empty-values: disable
float-values: disable
hyphens: enable
indentation: enable
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy:
level: warning