2
0
forked from Wavyzz/dolibarr
Commit Graph

240 Commits

Author SHA1 Message Date
Laurent Destailleur
e72671bf50 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-11 13:39:04 +01:00
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
ff2d609814 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
Conflicts:
	htdocs/core/class/commonobject.class.php
	htdocs/mrp/mo_production.php
2024-02-12 03:35:39 +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
097290fc38 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
Conflicts:
	htdocs/comm/action/peruser.php
	htdocs/core/class/commonobject.class.php
2024-02-07 18:16:57 +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
MDW
4d0fbc657e Qual: Backport pre-commit to 19.0 (#27950)
* Qual: Backport pre-commit to 17.0

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.

* Qual: Backport pre-commit to 18.0

# Qual: Backport pre-commit to 18.0

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.

* Qual: Backport pre-commit to 19.0

# Qual: Backport pre-commit to 19.0

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-01 17:37:25 +01:00
MDW
e47811a710 QUAL Improve spelling in documentation strings/text (#26611) 2023-11-16 15:33:55 +01:00
dependabot[bot]
b0f7ebab18 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 05:08:42 +00:00
Laurent Destailleur
924da777bf Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-04 23:26:35 +02:00
Laurent Destailleur
750924531b Add phpcs check on github for branch v18 2023-09-04 02:44:11 +02:00
Laurent Destailleur
24d03009e9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-09-04 02:38:22 +02:00
Laurent Destailleur
c3ee677256 Ignore rule 2023-09-04 02:29:15 +02:00
Laurent Destailleur
2f6f99b9c5 Disabled a duplicate github action 2023-09-01 00:12:22 +02:00
Laurent Destailleur
7ba40c9aa5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-08-26 22:41:39 +02:00
Laurent Destailleur
89143099e8 Clean github actions 2023-08-26 22:41:03 +02:00
Frédéric FRANCE
0b678fa515 Update phpcs.yml 2023-08-25 14:45:07 +02:00
Frédéric FRANCE
f8ef7f7f00 Create phpcs.yml 2023-08-25 13:41:30 +02:00
Laurent Destailleur
bd9bed835a exakat only once per month 2023-08-04 10:55:47 +02:00
Laurent Destailleur
39d847b74a Test for exakat 2023-08-04 01:56:56 +02:00
Laurent Destailleur
e8ac645abd Exclude some files 2023-08-04 00:56:11 +02:00
Laurent Destailleur
3c6d681d22 Test again exakat 2023-08-02 03:05:08 +02:00
dependabot[bot]
f0922c8d8b Bump JetBrains/qodana-action from 2023.1.5 to 2023.2.1 (#25441)
Bumps [JetBrains/qodana-action](https://github.com/jetbrains/qodana-action) from 2023.1.5 to 2023.2.1.
- [Release notes](https://github.com/jetbrains/qodana-action/releases)
- [Commits](https://github.com/jetbrains/qodana-action/compare/v2023.1.5...v2023.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-24 19:41:27 +02:00
Laurent Destailleur
b74fe4f99b Test CI 2023-07-09 14:20:28 +02:00
Laurent Destailleur
043bda80a0 Test CI 2023-07-09 14:04:57 +02:00
Laurent Destailleur
34908a72c7 Test CI 2023-07-09 13:48:05 +02:00
Laurent Destailleur
533360ff27 Test CI 2023-07-05 23:57:43 +02:00
Laurent Destailleur
92219bb43e Try to replace stickler 2023-07-05 20:03:02 +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