Commit Graph

14 Commits

Author SHA1 Message Date
Laurent Destailleur (aka Eldy)
9a61a6e6c9 Update files after moving build into dev/ 2025-01-05 14:46:26 +01:00
MDW
0ac595364b
Qual: Fix phan/phpstan notices in class files (part 1) (#31501)
* Ignore phpstan configuration for spelling

* Qual: Fix phan notices in class files
2024-10-25 21:00:02 +02:00
MDW
8fe0fa77b3
Qual: Add exclusion for *PDF for codespell (#30823) 2024-09-04 21:59:53 +02:00
MDW
fad3e2d2bf
QUAL: Add sqlfluff (SQL code and style check) (#29097)
* QUAL: Add sqlfluff (SQL code and style check)

# QUAL: Add sqlfluff (SQL code and style check)

This adds a validity and style check on the .sql files.
The same tool can be used to fix style (which can be set up as a
pre-commit hook).

* Ignore some sqlfluff notices

* Ignore RF04 notice, warning about the use of sql keywords

* Adjust dialects for some directories
2024-04-16 01:23:27 +02:00
MDW
c23794a23c
NEW: Script for fast identification of missing/unused/duplicate translations
# NEW: Script for fast identification of missing/unused/duplicate translations

Fast analysis of files to identify missing, unused and duplicate translations.
Fast = less than 3 seconds when there are no exceptions (on my development machine).
2024-03-10 16:39:42 +01:00
MDW
20b740dcc8
Qual: Review pre-commit configure - re-enable no-commit-to-branch (#28385)
# Qual: Review pre-commit configure - re-enable no-commit-to-branch

This reviews some of the documentation inside the pre-commit-config.yaml file.
It also re-enables the no-commit-to-branch hook.

Also enable spelling on hidden files (changes to pyproject.toml +
exceptions file).
2024-02-24 15:38:20 +01:00
MDW
8655d5a86b
QUAL Use phan to help detect new issues (#27706)
* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-21 18:14:29 +01:00
MDW
e5423d5c59
Qual: Add exceptions for codespell (#28186)
* Dev: Add setup scripts for phpunit/database

# Dev: Add setup scripts for phpunit/database

Some scripts that helped to setup some unit testing.

* NEW Add Windows ci workflow

# NEW Add Windows ci workflow

This adds a workflow to execute ci on a windows platform

* Disable open_basedir for now, to test effect

* Qual: Exclude documents directory from codespell

# Qual: Exclude documents directory from codespell

Documents directory may be present during development (unit tests).
Do not check spelling there

* Qual: Add codespell exceptions

# Qual: Add codespell exceptions

Add new exceptions to codespell (var identified as misspelling).
2024-02-15 14:49:09 +01:00
MDW
e523fd58fa Qual: Add yamlfix configuration
Add a yamlfix configuration so that it can be adapted to
the project's preferences
2024-01-30 16:45:46 +01:00
MDW
13a32a5549 Qual: codespell: More general exclusion of SVG images
'*.svg' was recently added to the .pre-commit configuration, excluding
the 'image' type is more general.
The pyproject.toml which is used from the CLI has been updated
to exclude '*.svg'.
2024-01-24 15:03:24 +01:00
MDW
ba379435c8 Fix: pre-commit & codespell configuration.
# Fix: pre-commit & codespell configuration.

When codespell is run from the CLI it gets its configuration from
pyproject.toml or .codespellrc .
`pyproject.toml` was used because other tools also use that while
.codespellrc is specific.

A typo was fixed in the pre-commit configuration.

The end of file fixer was limited to yaml files, but that was mainly
to fix the yamllint errors that were reported in ci.
This hook can be applied on the files this normally applies to
without requiring it (not in ci, only local).
2024-01-18 13:53:18 +01:00
Laurent Destailleur
f735499e17
Update pyproject.toml 2024-01-14 18:58:55 +01:00
Laurent Destailleur
69de3f29d0 Try move setup in config file 2024-01-14 18:56:01 +01:00
MDW
5bfccb7016
Qual: Add pre-commit & codespell (#27392)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-01-14 14:24:29 +01:00