Sha256: ca6a0263c59b7006b5b89731fc77577b6b001de0c90d4a3c412b4227a8140ec7
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
[I18nFlow] <%= summary_line %> [→ Lint rules and how to fix](https://github.com/creasty/i18n_flow/blob/master/doc/rules.md) <%- errors.each do |file, errs| -%> ## [<%= file %>](@<%= file %>) <%- errs.each do |full_key, err| -%> ### <%= full_key %> [L<%= err.line %>](@<%= err.file %>:<%= err.line %>) <%- case err when nil -%> <%- when I18nFlow::Validator::InvalidTypeError -%> <%- if err.single? -%> A file must start with scopes that derive from its file path reason: it must not have a scalar value <%- else -%> Structure mismatches with the master file <%- end -%> <%- when I18nFlow::Validator::MissingKeyError -%> <%- if err.single? -%> A file must start with scopes that derive from its file path reason: missing key <%- else -%> The key is missing <%- end -%> <%- when I18nFlow::Validator::ExtraKeyError -%> <%- if err.single? -%> A file must start with scopes that derive from its file path reason: extra key <%- else -%> An extra key found <%- end -%> <%- when I18nFlow::Validator::InvalidTodoError -%> Todo cannot be annotated on a mapping/sequence <%- when I18nFlow::Validator::TodoContentError -%> It has "!todo" but the content diverges from the master file master: `<%= err.expect %>` foreign: `<%= err.actual %>` <%- when I18nFlow::Validator::InvalidLocaleError -%> It has "!only" but the locale is invalid valid: `[<%= err.expect.join(', ') %>]` got: `<%= err.actual %>` <%- when I18nFlow::Validator::AsymmetricArgsError -%> Interpolation arguments diverge from the master file master: `[<%= err.expect.join(', ') %>]` foreign: `[<%= err.actual.join(', ') %>]` <%- end -%> <%- end -%> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_flow-0.1.0 | lib/i18n_flow/cli/lint_command/markdown.erb |