Skip to content

Commit b7b7e79

Browse files
committed
Updating .gitignore and .pre-commit-config.yaml
1 parent fb2a674 commit b7b7e79

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ include/vendor/csrf/csrf-secret.php
100100
.vscode/**
101101

102102
# Ignore vendor folders
103-
include/vendor/*
104-
vendor/*
103+
include/vendor/**
104+
vendor/**
105105

106106
# Ignore the API for now
107-
api/*
107+
api/**
108+
109+
# Ignore the composer lock file
110+
composer.lock

.pre-commit-config.yaml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,50 @@ repos:
77
hooks:
88
- id: check-added-large-files
99
args: ['--maxkb=512']
10+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1011
- id: check-executables-have-shebangs
12+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1113
- id: check-json
12-
- id: detect-aws-credentials
13-
- id: detect-private-key
14+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1415
- id: end-of-file-fixer
16+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1517
- id: mixed-line-ending
18+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1619
- id: pretty-format-json
20+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1721
- id: trailing-whitespace
22+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor|\.css$|\.js$)\/.*$
1823

19-
- repo: https://github.com/codespell-project/codespell.git
20-
rev: 'v2.0.0'
21-
hooks:
22-
- id: codespell
23-
args: [--config .codespellrc]
24-
exclude: (^.git\/|^css\/|^fonts\/|^img\/|^js\/|^twig\/|^vendor\/|\.png$|\.gif$|\.eot$|\.ttf$|\.woff$|\.woff2$|\.ico$|\.phar$|\.map$|\.psd$)
24+
# - repo: https://github.com/codespell-project/codespell.git
25+
# rev: 'v2.4.1'
26+
# hooks:
27+
# - id: codespell
28+
# args: [--config .codespellrc]
29+
# exclude: (^.git\/|^css\/|^fonts\/|^img\/|^js\/|^twig\/|^vendor\/|\.png$|\.css$|\.pot$|\.po$|\.mo$|\.gif$|\.eot$|\.ttf$|\.woff$|\.woff2$|\.ico$|\.phar$|\.map$|\.psd$)
2530

2631
- repo: https://github.com/markdownlint/markdownlint.git
27-
rev: 'v0.11.0'
32+
rev: 'v0.12.0'
2833
hooks:
2934
- id: markdownlint
3035
files: \.(md|MD)$
31-
exclude: ^(js|vendor)\/.*$
36+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
3237

3338
- repo: https://github.com/cigamit/pre-commit-php.git
3439
rev: '511692fd4e9f93f3bf556086e3966caf647e47e0'
3540
hooks:
3641
- id: php-lint
42+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
3743
- id: php-lint-all
44+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
3845
- id: php-cs-fixer
3946
args: [--path-mode=intersection]
4047
files: \.(php)$
48+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$
4149
- id: php-stan
42-
args:
50+
args:
4351
- analyze
44-
- ./src
52+
- .
4553
- "--level 8"
4654
- "--configuration=src/phpstan.neon"
4755
files: \.(php)$
56+
exclude: ^(locales|include/fa|include/css|include/js|include/vendor)\/.*$

0 commit comments

Comments
 (0)