Sha256: fbf8f0963476d49dc326e4c6c7af22956ee718e3a892f5323000b05b9e32afa3

Contents?: true

Size: 1.66 KB

Versions: 1

Compression:

Stored size: 1.66 KB

Contents

<%- errors.each do |file, errs| -%>
=== <%= file %>
  <%- errs.each do |full_key, err| -%>
    <%= full_key %>  #<%= 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 -%>
<%= summary_line %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n_flow-0.1.0 lib/i18n_flow/cli/lint_command/ascii.erb