mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-04 18:00:26 -07:00
Enable required YAML lint rules and fix results
This commit is contained in:
parent
3de16da36a
commit
4ee4cc60b5
91 changed files with 225 additions and 223 deletions
|
@ -1,7 +1,5 @@
|
||||||
---
|
---
|
||||||
profile: production
|
profile: production
|
||||||
parseable: true
|
parseable: true
|
||||||
skip_list:
|
|
||||||
- ANSIBLE0010
|
|
||||||
use_default_rules: true
|
use_default_rules: true
|
||||||
verbosity: 1
|
verbosity: 1
|
||||||
|
|
2
.github/workflows/ansible-test.yml
vendored
2
.github/workflows/ansible-test.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- name: Run ansible-test sanity
|
- name: Run ansible-test sanity
|
||||||
run: ansible-test sanity -v --color
|
run: ansible-test sanity -v --color
|
||||||
- name: Install ansible-lint
|
- name: Install ansible-lint
|
||||||
run: pip install ansible-lint==24.7.0
|
run: pip install ansible-lint
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
run: ansible-lint
|
run: ansible-lint
|
||||||
unit:
|
unit:
|
||||||
|
|
|
@ -15,7 +15,8 @@ rules:
|
||||||
commas:
|
commas:
|
||||||
max-spaces-after: -1
|
max-spaces-after: -1
|
||||||
level: error
|
level: error
|
||||||
comments: disable
|
comments:
|
||||||
|
min-spaces-from-content: 1
|
||||||
comments-indentation: disable
|
comments-indentation: disable
|
||||||
document-start: disable
|
document-start: disable
|
||||||
empty-lines:
|
empty-lines:
|
||||||
|
@ -29,5 +30,8 @@ rules:
|
||||||
new-line-at-end-of-file: disable
|
new-line-at-end-of-file: disable
|
||||||
new-lines:
|
new-lines:
|
||||||
type: unix
|
type: unix
|
||||||
|
octal-values:
|
||||||
|
forbid-implicit-octal: true
|
||||||
|
forbid-explicit-octal: true
|
||||||
trailing-spaces: disable
|
trailing-spaces: disable
|
||||||
truthy: disable
|
truthy: disable
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
content: Ansible GCS test file
|
content: Ansible GCS test file
|
||||||
dest: "{{ upload_temp.path }}"
|
dest: "{{ upload_temp.path }}"
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
- name: Create a bucket
|
- name: Create a bucket
|
||||||
google.cloud.gcp_storage_bucket:
|
google.cloud.gcp_storage_bucket:
|
||||||
name: "{{ resource_name }}"
|
name: "{{ resource_name }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue