Commit Graph

216 Commits

Author SHA1 Message Date
Laurent Destailleur
f40ad6e90a Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-03-11 13:31:55 +01:00
MDW
f166f15f7d Qual: Backport/pre commit / log annotation simplification (#28614)
* 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)

* 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.

* Qual: Optimize workflow (#28386)

# Qual: Optimize workflow

The log annotation based on the pre-commit logs is now simplified.
2024-03-04 18:21:32 +01:00
Laurent Destailleur
65533360a2 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	htdocs/main.inc.php
2024-02-12 03:32:58 +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
e6b165003f Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Conflicts:
	htdocs/core/class/commonobject.class.php
2024-02-07 18:01:11 +01:00
MDW
72305a9218 Qual: pre-commit: run phpcs on all files in 'main' branches. (#28018)
This change to the workflow will run phpcs on all files in develop,
17.0, 18.0, ... (rule== branch ends in .0).

This ensures that phpcs is run in a github workflow for fast phpcs
issue detection in the develop and other main branches.

Ultimately, this means that the PHPCS action can be disabled
in branches where it is active.  But I propose to verify that
the updated action does the job as expected (tested in a fork
it is ok).
2024-02-05 13:35:20 +01:00
MDW
ed3bfb152a Qual: Backport pre-commit to 17.0 (#27948)
Backport the pre-commit tool to bring extra checks to the older versions
so that they are fixed earlier before merging in upper versions.

Other PRs will be created for backporting to 18.0 and 19.0.
The PRs should be accepted in reverse order:
- develop;
- 19.0:
- 18.0;
- 17.0.

That should avoid merge conflicts and ensure that options (and ignored
messages or steps) are adapted to the version branch.
2024-02-03 00:10:49 +01:00
Laurent Destailleur
750924531b Add phpcs check on github for branch v18 2023-09-04 02:44:11 +02:00
Laurent Destailleur
118b70a437 Test CI 2023-07-03 19:33:05 +02:00
Laurent Destailleur
e075cb5c3a Removed not used file 2023-06-30 20:17:37 +02:00
Laurent Destailleur
d2b6d87680 Rename batch 2023-06-30 20:17:10 +02:00
Laurent Destailleur
aea1d25ea0 Disable github CI, Travis is back 2023-06-30 20:11:45 +02:00
Laurent Destailleur
1cd30cd2b3 Clean code 2023-06-30 20:04:38 +02:00
Laurent Destailleur
61c5400d77 Test CI 2023-06-30 15:57:03 +02:00
Laurent Destailleur
877fb73a87 Test CI 2023-06-30 13:02:22 +02:00
Laurent Destailleur
1a73f2f1d6 Test CI 2023-06-30 12:43:26 +02:00
Laurent Destailleur
703ef2e5a0 Test CI 2023-06-30 12:20:13 +02:00
Laurent Destailleur
ba8801f385 Test CI 2023-06-30 12:11:30 +02:00
Laurent Destailleur
e83a53fe9a Test CI 2023-06-30 11:59:23 +02:00
Laurent Destailleur
d7dbb25bdf Test CI 2023-06-30 11:51:07 +02:00
Laurent Destailleur
1fcbda759b Test CI 2023-06-30 11:32:47 +02:00
Laurent Destailleur
24454077da Test CI 2023-06-30 11:21:27 +02:00
Laurent Destailleur
444ab2f357 Test CI 2023-06-30 10:32:00 +02:00
Laurent Destailleur
a0552d16bd Test CI 2023-06-30 10:17:41 +02:00
Laurent Destailleur
220e058e41 Test CI 2023-06-30 10:13:52 +02:00
Laurent Destailleur
4cc072ecdd Test CI 2023-06-30 10:08:13 +02:00
Laurent Destailleur
61c1803fa8 Test CI 2023-06-30 10:03:09 +02:00
Laurent Destailleur
ae0ac87f9e Test CI 2023-06-30 09:53:19 +02:00
Laurent Destailleur
01d8be4447 Try to replace stickler with github actions 2023-06-30 09:39:08 +02:00
Laurent Destailleur
73bcc9c261 Test CI 2023-06-26 22:23:34 +02:00
Laurent Destailleur
9329f6d369 Test CI 2023-06-26 22:16:19 +02:00
Laurent Destailleur
cec2ef520d Test CI 2023-06-26 21:20:20 +02:00
dependabot[bot]
c5a16281d3 Bump JetBrains/qodana-action from 2023.1.4 to 2023.1.5
Bumps [JetBrains/qodana-action](https://github.com/jetbrains/qodana-action) from 2023.1.4 to 2023.1.5.
- [Release notes](https://github.com/jetbrains/qodana-action/releases)
- [Commits](https://github.com/jetbrains/qodana-action/compare/v2023.1.4...v2023.1.5)

---
updated-dependencies:
- dependency-name: JetBrains/qodana-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 05:58:37 +00:00
Laurent Destailleur
fd632bc2c0 Test CI 2023-06-22 21:56:23 +02:00
Laurent Destailleur
a358b453ce Test CI 2023-06-22 21:56:15 +02:00
Laurent Destailleur
4d5c88f5f1 Test CI 2023-06-22 21:53:12 +02:00
Laurent Destailleur
a0e48ec69f Test CI 2023-06-22 20:55:31 +02:00
Laurent Destailleur
d50885d30c Test CI 2023-06-22 20:54:38 +02:00
Laurent Destailleur
e995d756ce Test CI 2023-06-22 20:27:00 +02:00
Laurent Destailleur
a42e4ce683 Test CI 2023-06-22 20:19:18 +02:00
Laurent Destailleur
2ba4007c33 Test CI 2023-06-22 19:14:10 +02:00
Laurent Destailleur
3803c73637 Fix travis 2023-06-22 17:17:24 +02:00
Laurent Destailleur
d91f468f86 Test CI 2023-06-22 15:26:41 +02:00
Laurent Destailleur
202add5b36 Test CI 2023-06-22 14:56:05 +02:00
Laurent Destailleur
12e834c12b Test CI 2023-06-22 14:38:32 +02:00
Laurent Destailleur
d518c17d18 Test CI 2023-06-22 14:13:31 +02:00
Laurent Destailleur
e4c371ebf0 Test CI 2023-06-22 14:03:21 +02:00
Laurent Destailleur
65a43428b9 Test CI 2023-06-22 13:54:40 +02:00
Laurent Destailleur
31110d585c Test CI 2023-06-22 13:46:49 +02:00
Laurent Destailleur
b0f87e7b75 Test CI 2023-06-22 13:40:11 +02:00