Skip to content

Instantly share code, notes, and snippets.

@walnutdust
Created August 25, 2020 12:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save walnutdust/05eab32720c759d0bf45e4f5d4299622 to your computer and use it in GitHub Desktop.
Save walnutdust/05eab32720c759d0bf45e4f5d4299622 to your computer and use it in GitHub Desktop.

GSoC 2020: Programmatic YAML Modification Package (Dart)

Official Link

Description of Work Done

  1. Created a Dart package for YAML Modification - package:yaml_edit
    • Preserves comments and whitespace where possible.
    • Allows users to define their expected styles in the final output.
    • 3 testing strategies: unit tests, testing against golden files, and generating 40 sets of 1000 random modifications to check for edge cases.
  2. Incorporated the above package into a pub add command (PR here) and a pub remove command (PR here) to facilitate convenient package management.
  3. Fixed incorrect license headers in some files in the pub repository (link).
  4. Improved pub outdated's version resolution (link)
  5. Filed issues for the following bugs:
    • pub upgrade not respecting version constraints (link)
    • pub downgrade not respecting version constraints (link)
  6. Opened a PR that allows for checking of configuration keys for typos via Levenshtein Distance (link)
  7. Opened a PR that allows for bumping of the current package version in pubspec.yaml (link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment