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

Validation Project v2 #444

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open

Validation Project v2 #444

wants to merge 47 commits into from

Conversation

LotP1
Copy link
Contributor

@LotP1 LotP1 commented Dec 25, 2024

Refactor of the Validation System for more ease of use in the future.
The project now builds a standalone executable and executes it before the main project is built or published.
Since it is now a standalone executable we are also able to use .NET Core features as we are no longer locked to netstandard.

The project currently includes 1 task, LocalesValidationTask, that will check if the locales.json file has any of the following issues:
The json is invalid.
The json has locales with missing languages.
The json has locales with langauges that are just duplicates of the en_US field.

If the project is built or published locally it will also fix any missing languages or duplicate fields.

@github-actions github-actions bot added gui Affects the Avalonia UI or translations. infra Updates to dependencies labels Dec 25, 2024
@LotP1 LotP1 marked this pull request as draft December 25, 2024 03:20
@LotP1 LotP1 marked this pull request as ready for review December 26, 2024 23:00
LotP1 and others added 9 commits December 28, 2024 01:35
if running on git it will now fail if the file contains CRLF line endings and tell the user to run a local build to fix it.
isGitRunner is now a variable passed to all tasks.
Validation project can now accept more arguments, only the first argument is used at the moment.
Execute is no longer static, and you can now pass extra data to the task constructor if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui Affects the Avalonia UI or translations. infra Updates to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants