-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from memes/fix/116_linter_errors
Fixes for any linter errors
- Loading branch information
Showing
84 changed files
with
388 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
profile: production | ||
exclude_paths: | ||
- roles/**/tests/test.yml | ||
- .github | ||
- .vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# These github actions will perform linting using pre-commit. | ||
# yamllint disable rule:line-length | ||
# spell-checker: disable | ||
--- | ||
name: pre-commit | ||
|
@@ -21,14 +20,25 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install talisman | ||
# yamllint disable rule:line-length | ||
run: | | ||
sudo curl -sLo /usr/local/bin/talisman https://github.com/thoughtworks/talisman/releases/download/v1.32.0/talisman_linux_amd64 | ||
sudo chmod 0755 /usr/local/bin/talisman | ||
# yamllint enable rule:line-length | ||
- name: Install terraform-docs | ||
# yamllint disable rule:line-length | ||
run: | | ||
sudo sh -c 'curl -sL https://github.com/terraform-docs/terraform-docs/releases/download/v0.18.0/terraform-docs-v0.18.0-linux-amd64.tar.gz | tar xzf - -C /usr/local/bin' | ||
sudo chmod 0755 /usr/local/bin/terraform-docs | ||
# yamllint enable rule:line-length | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: pip | ||
cache-dependency-path: | | ||
requirements*.txt | ||
- name: install dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
ansible-galaxy collection install --requirements-file ansible-requirements.yaml | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ | ||
"acceleratedgcp", | ||
"apiserver", | ||
"arpa", | ||
"autoclean", | ||
"Autodetection", | ||
"autoprovision", | ||
"autoremove", | ||
"bionic", | ||
"bpffs", | ||
"calicoctl", | ||
"centos", | ||
"chmod", | ||
"CIFS", | ||
"creds", | ||
"cri-o", | ||
"crio", | ||
"Customise", | ||
"datacenter", | ||
"Dataplane", | ||
"dearmor", | ||
"devel", | ||
"dgst", | ||
"dpkg", | ||
"dvswitch", | ||
"elrepo", | ||
"endfor", | ||
"esxi", | ||
"fileignoreconfig", | ||
"firewalld", | ||
"fstype", | ||
"gpgcheck", | ||
"gpgkey", | ||
"hashi", | ||
"hashicorp", | ||
"hostvars", | ||
"hugepages", | ||
"ifname", | ||
"ignoreerrors", | ||
"ipaddr", | ||
"ipmi", | ||
"ippool", | ||
"iscsi", | ||
"iscsid", | ||
"isdir", | ||
"kube", | ||
"kubeadm", | ||
"kubeconfig", | ||
"kubectl", | ||
"kubelet", | ||
"kubernetes", | ||
"kubic", | ||
"libcontainers", | ||
"lineinfile", | ||
"loadbalancer", | ||
"markdownlint", | ||
"metacopy", | ||
"modinfo", | ||
"mountopt", | ||
"netboot", | ||
"netfilter", | ||
"netplan", | ||
"nmcli", | ||
"nobest", | ||
"nodev", | ||
"noexec", | ||
"noqa", | ||
"nosuid", | ||
"outform", | ||
"paramiko", | ||
"posix", | ||
"preseed", | ||
"projectcalico", | ||
"proto", | ||
"pubin", | ||
"pubkey", | ||
"pxelinux", | ||
"rbac", | ||
"realpath", | ||
"redhat", | ||
"relatime", | ||
"repos", | ||
"rhel", | ||
"rpcbind", | ||
"runc", | ||
"sbin", | ||
"selectattr", | ||
"selinux", | ||
"smbd", | ||
"storageclass", | ||
"swapfs", | ||
"swapoff", | ||
"syslinux", | ||
"tcpport", | ||
"testinfra", | ||
"tftpd", | ||
"Tigera", | ||
"udpport", | ||
"vcenter", | ||
"vcsa", | ||
"vesamenu", | ||
"vmgmt", | ||
"vmware", | ||
"vnet", | ||
"vsphere", | ||
"wontfix" | ||
], | ||
"flagWords": [ | ||
"hte" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,6 @@ | ||
{ | ||
"ansible.ansible.path": ".direnv/python-3.11.3/bin/ansible", | ||
"ansible.python.interpreterPath": ".direnv/python-3.11.3/bin/python3", | ||
"ansible.validation.lint.path": ".direnv/python-3.11.3/bin/ansible-lint", | ||
"cSpell.words": [ | ||
"acceleratedgcp", | ||
"apiserver", | ||
"arpa", | ||
"autoclean", | ||
"Autodetection", | ||
"autoprovision", | ||
"autoremove", | ||
"bionic", | ||
"bpffs", | ||
"calicoctl", | ||
"centos", | ||
"chmod", | ||
"CIFS", | ||
"creds", | ||
"cri-o", | ||
"crio", | ||
"Customise", | ||
"datacenter", | ||
"Dataplane", | ||
"dearmor", | ||
"devel", | ||
"dgst", | ||
"dpkg", | ||
"dvswitch", | ||
"elrepo", | ||
"endfor", | ||
"esxi", | ||
"fileignoreconfig", | ||
"firewalld", | ||
"fstype", | ||
"gpgcheck", | ||
"gpgkey", | ||
"hashi", | ||
"hashicorp", | ||
"hostvars", | ||
"hugepages", | ||
"ifname", | ||
"ignoreerrors", | ||
"ipaddr", | ||
"ipmi", | ||
"ippool", | ||
"iscsi", | ||
"iscsid", | ||
"isdir", | ||
"kube", | ||
"kubeadm", | ||
"kubeconfig", | ||
"kubectl", | ||
"kubelet", | ||
"kubernetes", | ||
"kubic", | ||
"libcontainers", | ||
"lineinfile", | ||
"loadbalancer", | ||
"markdownlint", | ||
"metacopy", | ||
"modinfo", | ||
"mountopt", | ||
"netboot", | ||
"netfilter", | ||
"netplan", | ||
"nmcli", | ||
"nobest", | ||
"nodev", | ||
"noexec", | ||
"noqa", | ||
"nosuid", | ||
"outform", | ||
"paramiko", | ||
"posix", | ||
"preseed", | ||
"projectcalico", | ||
"proto", | ||
"pubin", | ||
"pubkey", | ||
"pxelinux", | ||
"rbac", | ||
"realpath", | ||
"redhat", | ||
"relatime", | ||
"repos", | ||
"rhel", | ||
"rpcbind", | ||
"runc", | ||
"sbin", | ||
"selectattr", | ||
"selinux", | ||
"smbd", | ||
"storageclass", | ||
"swapfs", | ||
"swapoff", | ||
"syslinux", | ||
"tcpport", | ||
"testinfra", | ||
"tftpd", | ||
"Tigera", | ||
"udpport", | ||
"vcenter", | ||
"vcsa", | ||
"vesamenu", | ||
"vmgmt", | ||
"vmware", | ||
"vnet", | ||
"vsphere", | ||
"wontfix" | ||
], | ||
"yaml.schemas": { | ||
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible-lint-config.json": "/.ansible-lint" | ||
} | ||
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible-lint-config.json": ".ansible-lint" | ||
}, | ||
"editor.rulers": [120] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: | ||
max: 120 | ||
level: warning | ||
# Force yamllint rules to match ansible-lint requirements | ||
braces: | ||
max-spaces-inside: 1 | ||
comments: | ||
min-spaces-from-content: 1 | ||
comments-indentation: disable | ||
octal-values: | ||
forbid-explicit-octal: true | ||
forbid-implicit-octal: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.