Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qual: Backport/pre commit / log annotation simplification #28614

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

mdeweerd
Copy link
Contributor

@mdeweerd mdeweerd commented Mar 3, 2024

Qual: Backport/pre commit / log annotation simplification

This backports the updates to the pre-commit configuration regarding the method concernant the Github Annotations.

mdeweerd added 3 commits March 3, 2024 21:57
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

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

The log annotation based on the pre-commit logs is now simplified.
@eldy eldy merged commit f166f15 into Dolibarr:17.0 Mar 4, 2024
3 checks passed
@mdeweerd mdeweerd deleted the backport/pre-commit branch March 4, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants