-
Notifications
You must be signed in to change notification settings - Fork 8
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 #218 from alma/develop
Release 3.0.3
- Loading branch information
Showing
39 changed files
with
423 additions
and
448 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# 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 | ||
|
||
- repo: local | ||
hooks: | ||
- id: coding-standard-fixer | ||
name: PHP and Prestashop 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/pre-commit/mirrors-prettier | ||
# rev: v3.0.0-alpha.4 | ||
# hooks: | ||
# - id: prettier | ||
# files: "(^.*\\.js$)|(^pos/frontend/.*$)" | ||
|
||
# - repo: https://github.com/pre-commit/mirrors-eslint | ||
# rev: v8.29.0 | ||
# hooks: | ||
# - id: eslint | ||
# files: "(^dashboard/frontend/src/.*\\.[jt]sx?$)" # *.js, *.jsx, *.ts and *.tsx | ||
# types: [file] | ||
# args: | ||
# - --fix | ||
|
||
# - repo: https://github.com/thibaudcolas/pre-commit-stylelint | ||
# rev: v14.16.0 | ||
# hooks: | ||
# - id: stylelint | ||
# files: "(^src/assets/css/.*\\.css$)|(^src/assets/widget/css/.*\\.css$)|(^.*\\.css$)" | ||
# args: | ||
# - --config | ||
# - stylelint.config.cjs | ||
# additional_dependencies: | ||
# - [email protected] | ||
# - [email protected] | ||
# - [email protected] | ||
# - [email protected] | ||
|
||
- 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|HEAD)$$" |
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
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
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
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
Oops, something went wrong.