Repository navigation
v0.29.0: LangSync context_file and ICU namespaces, cms validate causes and params - #24
Merged
Merged
Conversation
cms-schema 0.12.0 gives each finding a cause (which of its rule's causes it is) and typed params (the facts its message is made of), so a client can word findings in any language. `cms validate -o json` and `-o yaml` print them beside the English message and hint, additive to report version 1; the table and `-o text` are unchanged. The module's skipped rule now names its reason as a code, with the sentence in `message`. Report version 1 keeps `quality.skipped[].reason` English and adds `code` and `params`, and the notes on stderr print the sentence, not the code. Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
A namespace in .langsync.json can name a context_file, a flat JSON object of key descriptions in the source language. sync sends the descriptions of the source file's keys with the job (contexts); the others are left out with one warning line. A missing or invalid file and a description over 1,000 characters stop the sync before anything is sent; a context_file the language scan would read as a language is refused when the project file is loaded. pull doesn't read it, and init keeps it (and language_aliases) when a namespace is picked again. namespaces create and update take --message-syntax plain|icu, from the generated client's enum; namespaces list shows it. The sync summary words each translation LangSync didn't store (key, language, code and its facts, "and N more"), counts unreviewed translations per language, and names the context file when the server refuses the descriptions. JSON summaries carry failures and unreviewedPerLanguage. The LangSync client is regenerated from the current API (the other services' clients are left as they are). Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
cms-schema 0.12.1 sends the kinds of value a finding names (params.expected and params.actual) as codes from a closed vocabulary (group_of_fields where 0.12.0 sent "group of fields"), and a localized group's mixed field types in params.type and params.otherType. `cms validate -o json` and `-o yaml` print the params as the module emits them; the table, `-o text` and every English message and hint read as before. Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz> # Conflicts: # CHANGELOG.md # docs/DESIGN.md
cms-schema 0.12.2 names the kind of schema declaration a refused fact looks up as a code (params.declarationKind) instead of an English word in params.kind. nrc cms validate prints findings, not fact refusals, so its output is unchanged. Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LangSync: context_file key descriptions, --message-syntax plain|icu, sync failure codes and unreviewed counts (server support in production since today). cms validate -o json: cause and params (cms-schema 0.12.2).