Skip to content

Commit 4e227b9

Browse files
committed
Performed some lint cleaning and added the corresponding cleaning file
I also installed the pre-commit config to avoid pushes, that are not lint-clean
1 parent 4dc0990 commit 4e227b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+176
-129
lines changed

.ansible-lint

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
skip_list:
2+
- empty-string-compare
3+
- indentation
4+
- line-length
5+
- command-instead-of-module # Using command rather than module
6+
- command-instead-of-shell # Use shell only when shell functionality is required
7+
- experimental # all rules tagged as experimental
8+
- no-changed-when # Commands should not change things if nothing needs doing
9+
- no-handler # Tasks that run when changed should likely be handlers
10+
- risky-shell-pipe # Shells that use pipes should set the pipefail option
11+
- unnamed-task # All tasks should be named

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ __pycache__/
5151

5252
# VSCode
5353
.vscode
54-

.pre-commit-config.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
exclude: '^$'
3+
fail_fast: true
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.0.1
7+
hooks:
8+
- id: end-of-file-fixer
9+
- id: check-merge-conflict
10+
- id: check-symlinks
11+
types: ["symlink"]
12+
types_or: ["symlink"]
13+
stages: [manual]
14+
- id: check-executables-have-shebangs
15+
name: "Executable text files have shebangs"
16+
- id: trailing-whitespace
17+
- id: check-xml
18+
- id: check-yaml
19+
args:
20+
- "-m"
21+
# - repo: https://github.com/adrienverge/yamllint.git
22+
# rev: v1.26.3
23+
# hooks:
24+
# - id: yamllint
25+
# exclude: >
26+
# (?x)^(
27+
# examples/playbooks/templates/.*|
28+
# examples/other/some.j2.yaml
29+
# )$
30+
# files: \.(yaml|yml)$
31+
# types: [file, yaml]
32+
# entry: yamllint --strict
33+
- repo: https://github.com/ansible-community/ansible-lint.git
34+
rev: v5.3.1 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/
35+
hooks:
36+
- id: ansible-lint
37+
files: \.(yaml|yml)$

.yamllint

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
ignore: |
3+
.github
4+
.tox
5+
6+
extends: default
7+
8+
rules:
9+
line-length: disable
10+
truthy: disable
11+
document-start: disable
12+
braces: disable
13+
comments-indentation: disable

LICENSE

100755100644
File mode changed.

docs/diagrams/workflow_module_sap_facts.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/diagrams/workflow_role_sap_control.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/diagrams/workflow_role_sap_firewall.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/diagrams/workflow_sample_exec_sap_operations_sample.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/module_sap_facts.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| **sap_facts** | Dictionary list of all the details | `<register_variable>.sap_facts` |
1515

1616
- Sample `sap_facts` dictionary list generated:
17-
17+
1818
```yaml
1919
[
2020
{
@@ -43,4 +43,3 @@
4343
}
4444
]
4545
```
46-

0 commit comments

Comments
 (0)