( Huncraft | 2022. 02. 14., h – 12:19 )

Na jó, adok konkrét példákat:

Linters:
    # Ezeknél a logika tipikusan az, hogy a hook megvizsgálja, hogy a commitban milyen típusú file-ok változtak, majd arra ráhívja a megfelelő linter(eket)
    Ansible Lint (https://ansible-lint.readthedocs.io/en/latest/)
    bandit (https://github.com/PyCQA/bandit)
    flake8 (https://github.com/PyCQA/flake8)
    Jenkinsfile lint (házi script, ami Jenkins Development Tools-ra épít: https://www.jenkins.io/doc/book/pipeline/development/ )
    Hadolint (https://hadolint.github.io/hadolint/)
    pylint (https://pylint.org/)
    shellcheck (https://www.shellcheck.net/)
    Buildifier (Bazel projectekhez: https://github.com/bazelbuild/buildtools/tree/master/buildifier )
    gofmt (https://pkg.go.dev/cmd/gofmt)
    yamllint (https://github.com/adrienverge/yamllint)
    helm lint (https://github.com/helm/helm)
    pmd (https://pmd.github.io/ - tipikusan java projectekhez használjuk)
    Perlcritic (https://metacpan.org/dist/Perl-Critic/view/bin/perlcritic)
    Robot linter (https://github.com/boakley/robotframework-lint)
    
További checkek, formatter-ek)
    ClangFormat (https://clang.llvm.org/docs/ClangFormat.html)
    jsonnetfmt (https://github.com/google/jsonnet)
    Black (https://github.com/psf/black)
    Binary check (lehetőleg bináris file-t ne merge-eljünk be)
    Commit message check (van e Commit-ID a commit message-ben)
    CRLF check (sorvége karakterek legyenek egységesek)
    Whitespace checker (sor végén ne legyen whitespace, illetve tab/szóköz indentáció egységes legyen)
    Python version checker (házi script, sokan nem tudták Python2-őt elengedni)
    Restricted filenames checker (con/con ugyan vicces, de nem minden rendszer díjazza)
    Symbolic link checker (symlink lehet, de git repo-n kívülre nem mutathat, mert az erős security risk)