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

yamlfmt: created content analyzer #106

Merged
merged 2 commits into from
Apr 2, 2023
Merged

Commits on Apr 1, 2023

  1. yamlfmt: created content analyzer

    In some use cases the provided patterns of exclusion aren't enough, for
    example when something generates a lot of yaml files in weird places, or
    when single files should be ignored out of large directories. This PR
    adds the following:
    * The concept of and ability to read metadata, with the first type of
      metadata being "ignore"
    * A new ContentAnalyzer interface and a BasicContentAnalyzer which will accept
      an array of regex pattern strings. This will first read the metadata
      from the content of each file to find the ignore metadata, then will
      match the content to the regex patterns provided to determine which
      patterns will be excluded.
    braydonk committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    fd69a30 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2023

  1. yamlfmt: improve metadata errors

    Change metadata errors into a wrapped error struct so that the line
    number and path can be included in the resulting error. Make metadata
    errors non-fatal to `yamlfmt` as a whole. Also add the docs in this
    commit.
    braydonk committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    f7ed9be View commit details
    Browse the repository at this point in the history