Skip to content

Commit

Permalink
Merge pull request #77 from alma/feature/ecom-1296-add-pre-commit-on-…
Browse files Browse the repository at this point in the history
…php-client

Add pre-commit config
  • Loading branch information
joyet-simon authored Feb 8, 2024
2 parents 98bd3a0 + 2a17e87 commit bdd2886
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: detect-private-key
- id: check-merge-conflict
- id: no-commit-to-branch
args: [--branch, develop, --branch, main]


# - repo: local
# hooks:
# - id: coding-standard-fixer
# name: PHP coding standards Fixer test
# language: script
# entry: ./scripts/coding-standard-fixer.sh
# stages: [commit]
#
# - repo: local
# hooks:
# - id: coding-standard
# name: Check the PHP and Prestashop coding standards
# language: script
# entry: ./scripts/coding-standard.sh
# stages: [commit]
#
# - repo: local
# hooks:
# - id: php-compatibility
# name: Check the PHP compatibility
# language: script
# entry: ./scripts/php-compatibility.sh
# stages: [commit]
#
# - repo: https://github.com/returntocorp/semgrep
# rev: v1.27.0
# hooks:
# - id: semgrep
# args:
# - --error
# - --config
# - semgrep/rules/
# - --metrics
# - "off"
# - --quiet
# - --disable-version-check
# - --skip-unknown-extensions
# pass_filenames: false # Passing files explicitely override semgremignore

- repo: https://github.com/alma/pre-commit-hooks
rev: 1.1.2
hooks:
- id: check-branch-name
args:
- "-r^((chore|ci|dependabot|devx|docs|feature|fix|hotfix|hotfix-backport|infra|other|perf|refactor|security|test)\/.+|(snyk)-.+|main|develop|HEAD)$$"

0 comments on commit bdd2886

Please sign in to comment.