2
0
forked from Wavyzz/dolibarr
Commit Graph

128 Commits

Author SHA1 Message Date
MDW
acf09b805f Fix: Make all 'relative paths' absolute (#28196)
# Fix: Make all 'relative paths' absolute

The phpcs ruleset xml file's relative exclude patterns are relative to
the filename(s) provided on the command line.
Hence with partial verifications, the path exclusion does not function
as we would like.
Removing the relative-path attribute from the patterns the exclusion
works.
At the same time, the patterns were optimized and a comment was added.
2024-02-16 12:59:04 +01:00
MDW
60f15baef2 Qual: Backport: pre-commit php-cs with cache (#28123)
* Qual: Lower severity on php-cs messages that should not block (#28072)

# Qual: Lower severity on php-cs messages that should not block

Some warning messages result in php-cs having an exit code of 2 and others
only have an exit ocde of 1.  When the exit code is 2, the warnings are fixable
by php-cbf.

In order to be able to filter on the warnings in the github ci flow, but still
show them in the travis flow, I lower the level of the warnings that should not
be blocking to 4.

At the same time, the php-cs configuration in pre-commit now requires that the
severity is minimum 5 to show the message (level 5 is the default for all warnings
and errors).

So this will limit the warning messages to the ones that should result in a failing
ci action.  If any new cases are discovered, they should also be lowered in the
php-cs configuration file.

* Qual: ci: Run pre-commit/php-cs with cache (#28079)

This adds a hook to .pre-commit-config.yaml and updates the workflow
to run php-cs with cache when it is run for all files.
When running on changed files only, the cache is not useful.

The php-codesniffer ruleset.xml was cleaned up (duplicates removal/formatted)
2024-02-12 03:30:19 +01:00
Laurent Destailleur
b73c29f817 Doc 2022-12-15 19:04:51 +01:00
Laurent Destailleur
77265b8828 Add example of fail2ban to block 403 forbidden tries 2022-12-15 11:29:32 +01:00
Laurent Destailleur
cacce73d9a Doc 2022-11-15 11:00:33 +01:00
Laurent Destailleur
938bc27917 Update sample for fail2ban 2022-10-18 12:59:15 +02:00
Laurent Destailleur
fb24a1ee55 Clean code 2022-10-08 20:41:45 +02:00
Laurent Destailleur
9f6b78b053 NEW Add fail2ban rule to limit access to /public pages 2022-09-17 15:06:36 +02:00
Laurent Destailleur
68bef8ebcf Merge branch 'imap-by-oauth2' of github.com:fboitel/dolibarr into
fboitel-imap-by-oauth2

# Conflicts:
#	htdocs/install/mysql/migration/16.0.0-17.0.0.sql
2022-08-23 22:34:44 +02:00
bagtaib
7157df4fad ingnore external libraries in precommit 2022-06-15 14:53:51 +02:00
Laurent Destailleur
5942bc57e6 Add DDOS protection 2022-01-30 01:03:07 +01:00
Laurent Destailleur
5917a9f73e Fix phpcs 2021-05-12 23:08:52 +02:00
Laurent Destailleur
8bb8d846ad More complete setup file 2021-04-28 14:18:15 +02:00
Laurent Destailleur
143417d727 Fix duplicate line 2021-04-28 14:17:00 +02:00
Laurent Destailleur
3315bf6c00 Add samples to show how to setup fail2ban 2021-04-07 19:16:07 +02:00
Laurent Destailleur
9f1051f95c Fix typo 2021-03-12 14:47:41 +01:00
Laurent Destailleur
f6b41a92db Add ${DIRPHPCS} 2021-03-12 14:45:52 +01:00
Laurent Destailleur
dc5557e4f7 Fix test on precommit hook 2021-03-12 14:30:32 +01:00
Laurent Destailleur
78588f24b9 Move git hooks pre-commit into dev/setup dir 2021-03-09 10:42:59 +01:00
Frédéric FRANCE
a4e25359e7 add missing rule 2021-03-01 20:37:16 +01:00
Frédéric FRANCE
82aea0be9a remove rule exception 2021-03-01 11:26:00 +01:00
Frédéric FRANCE
1247ca9e02 add new rule 2021-03-01 08:38:35 +01:00
Frédéric FRANCE
683ef8d1c9 add new rule 2021-03-01 08:32:14 +01:00
Frédéric FRANCE
1b046f25cf add new rule 2021-03-01 00:19:52 +01:00
UT from dolibit
5f15c339c7 Update dolibarr
/var/run/php/php7.0-fpm.sock
2021-01-18 16:03:27 +01:00
Laurent Destailleur
d3bd709ad6 Fix phpcs 2020-12-20 18:51:17 +01:00
Frédéric FRANCE
7a7a6f8018 fix phpcs 2020-10-27 21:28:26 +01:00
Frédéric FRANCE
674b0e38c8 add new rule 2020-05-21 15:13:31 +02:00
Frédéric FRANCE
d9f42f85d1 add new rule 2020-05-21 15:08:14 +02:00
Frédéric FRANCE
ba8cf2b398 add new rule 2020-05-21 09:21:30 +02:00
Frédéric FRANCE
43dcd9beb5 add new rule 2020-05-21 00:02:33 +02:00
Laurent Destailleur
22301d63d8 Replace a ZEND phpcs rule with a PSR2 rule 2020-05-13 00:35:10 +02:00
Laurent Destailleur
b5f3be4599 Clean phpcs rule file 2020-05-13 00:29:46 +02:00
Laurent Destailleur
4d6a45d491 Major doxygen fix 2020-05-03 22:48:35 +02:00
Laurent Destailleur
a88ab40384 Clean phpcs 2020-05-02 15:18:59 +02:00
Laurent Destailleur
6bc7085297 Check more phpcs rules 2020-05-02 13:02:58 +02:00
Laurent Destailleur
b20d85b198 Fix phpcs 2020-04-26 23:06:52 +02:00
Laurent Destailleur
6caa872280 Enable more PHPCS rules 2020-04-25 19:27:42 +02:00
Laurent Destailleur
068a890c36 Enable more PHPCS rules 2020-04-25 19:13:20 +02:00
Laurent Destailleur
f7726cd366 Try to disable a not expected rule 2020-04-10 13:04:30 +02:00
Frédéric FRANCE
fc34b5a4cb compress png with zopflipng 2020-04-06 19:03:48 +02:00
Laurent Destailleur
b995dc87fa NEW Add profile for PSR12 for Eclipse 2020-02-25 12:57:26 +01:00
Laurent Destailleur
55bef402c4 Fix remove a lot of warnings on Eclipse 2020-02-21 17:47:36 +01:00
Laurent Destailleur
ec09e7222d Fix remove a lot of warnings on Eclipse 2020-02-21 17:31:37 +01:00
Laurent Destailleur
62b84810bd Exclude includes in dev 2020-01-15 14:25:16 +01:00
Frédéric FRANCE
8f6d38ee82 clean indent 2019-10-27 17:01:23 +01:00
Frédéric FRANCE
7f3f48be0f clean indent in theme directory 2019-10-26 21:11:36 +02:00
Frédéric FRANCE
a7797ba1da clean indent in variants directory 2019-10-26 20:53:39 +02:00
Frédéric FRANCE
635306c084 restore original rules to be mergeable without errors 2019-10-26 18:23:51 +02:00
Frédéric FRANCE
a1f0245c79 clean indent in compta, contact directory 2019-10-26 18:13:20 +02:00