Claude 1
This commit is contained in:
24
sophos-xgs-ansible/tests/linting/.yamllint
Normal file
24
sophos-xgs-ansible/tests/linting/.yamllint
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# YAML Lint Configuration
|
||||
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
max: 160
|
||||
level: warning
|
||||
|
||||
indentation:
|
||||
spaces: 2
|
||||
indent-sequences: true
|
||||
|
||||
comments:
|
||||
min-spaces-from-content: 2
|
||||
|
||||
truthy:
|
||||
allowed-values: ['true', 'false', 'yes', 'no']
|
||||
|
||||
ignore: |
|
||||
.git/
|
||||
collections/
|
||||
tests/sample_config/
|
||||
17
sophos-xgs-ansible/tests/linting/ansible-lint.yml
Normal file
17
sophos-xgs-ansible/tests/linting/ansible-lint.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# Ansible Lint Configuration
|
||||
# Run with: ansible-lint -c tests/linting/ansible-lint.yml
|
||||
|
||||
skip_list:
|
||||
- yaml[line-length] # Allow longer lines in templates
|
||||
- no-changed-when # Some API calls are difficult to make idempotent
|
||||
- risky-file-permissions # Handled by role defaults
|
||||
|
||||
warn_list:
|
||||
- experimental
|
||||
- jinja[spacing]
|
||||
|
||||
exclude_paths:
|
||||
- .git/
|
||||
- .github/
|
||||
- tests/sample_config/
|
||||
Reference in New Issue
Block a user