Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ansible
roles
nagios-nrpe-agent
Commits
03e717b6
Verified
Commit
03e717b6
authored
Nov 20, 2020
by
Dan Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pre-commit config
parent
324aafda
Pipeline
#31300
failed with stage
in 5 minutes and 8 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
3 deletions
+38
-3
.ansible-lint
.ansible-lint
+4
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+34
-0
.yamllint
.yamllint
+0
-3
No files found.
.ansible-lint
View file @
03e717b6
---
exclude_paths:
- ./.venv
warn_list:
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
.pre-commit-config.yaml
0 → 100644
View file @
03e717b6
---
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
"
v3.2.0"
hooks
:
-
id
:
check-added-large-files
-
id
:
check-json
-
id
:
check-merge-conflict
-
id
:
check-symlinks
-
id
:
check-yaml
-
id
:
detect-private-key
-
id
:
end-of-file-fixer
-
id
:
mixed-line-ending
-
id
:
trailing-whitespace
-
repo
:
https://github.com/ansible/ansible-lint.git
rev
:
v4.3.5
hooks
:
-
id
:
ansible-lint
files
:
\.(yaml|yml)$
args
:
[
"
--exclude=molecule/resources"
,
"
--exclude=roles"
,
"
--exclude=.gitlab-ci.yml"
,
"
."
]
-
repo
:
https://gitlab.com/devopshq/gitlab-ci-linter
rev
:
v1.0.1
hooks
:
-
id
:
gitlab-ci-linter
args
:
-
'
--server'
-
'
https://gitlab.triumf.ca'
.yamllint
View file @
03e717b6
...
...
@@ -2,9 +2,6 @@
# Based on ansible-lint config
extends: default
ignore: |
*.venv
rules:
braces:
max-spaces-inside: 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment