Compare commits

..

1 Commits

Author SHA1 Message Date
Jon
3ec2e024e6 ci: add ansible-lint
All checks were successful
Lint (Pull Request) / lint (pull_request) Successful in 38s
ref: #6
2025-07-12 22:40:20 +09:30
3 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ jobs:
run: pip install ansible-lint run: pip install ansible-lint
- name: Run Ansible-Lint - name: Run YAMLLint
run: | run: |
echo "NFC_PROBLEM_MATCHER_TYPE=pylint-json"; echo "NFC_PROBLEM_MATCHER_TYPE=pylint-json";
ansible-lint -f json . || true ansible-lint -f json . || true

View File

@ -74,4 +74,4 @@ rules:
level: error level: error
type: unix type: unix
truthy: disable truthy: disable

View File

@ -144,8 +144,8 @@ regex = {
r'"description":\s*"(?P<description>[^"]+)",\s*' r'"description":\s*"(?P<description>[^"]+)",\s*'
r'"fingerprint":\s*"(?P<fingerprint>[^"]+)",\s*' r'"fingerprint":\s*"(?P<fingerprint>[^"]+)",\s*'
r'"location":\s*\{\s*"path":\s*"(?P<path>[^"]+)".+?' r'"location":\s*\{\s*"path":\s*"(?P<path>[^"]+)".+?'
r'"line[s]?":.+?(?P<line>\d+).*?\}}' r'"line[s]?":.+?(?P<line>\d+).*?\}},'
r'(?:,\s"content":\s\{"body":\s"(?P<body>.+?)")?' r'(?:\s"content":\s\{"body":\s"(?P<body>.+?)")?'
) )
} }