Project Description

yamltidy is a tidier/linter for YAML files. It's pretty new.

The advantage to a linter like yamllint is that yamllint just tells you what it complains about, and yamltidy corrects it automatically.

That saves you annoying time to open the files and do the improvements manually, and you can use your time for more important stuff.

Nowadays, we are working with YAML a lot in different contexts, and it would be good if we could just tell our editor to enforce a certain style configured in a project.

Goal for this Hackweek

Some of the issues on github

Resources

Please have a look at the configuration examples linked here and the existing issues. Maybe you have more ideas?

Looking for hackers with the skills:

yaml linter perl

This project is part of:

Hack Week 21

Activity

  • over 2 years ago: cdywan liked this project.
  • over 2 years ago: kraih liked this project.
  • over 2 years ago: tinita added keyword "perl" to this project.
  • over 2 years ago: tinita started this project.
  • over 2 years ago: tinita added keyword "yaml" to this project.
  • over 2 years ago: tinita added keyword "linter" to this project.
  • over 2 years ago: tinita originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    Create object oriented API for perl's YAML::XS module, with YAML 1.2 Support by tinita

    Description

    YAML::XS is a binding to libyaml and already quite old, but the most popular YAML module for perl. There are two main issues:

    • It uses global package variables to influence behaviour.
    • It didn't implement the loading of types like numbers and booleans according to the YAML spec (neither 1.1 nor 1.2).

    Goals

    Create a new interface which works object oriented. Currently YAML::XS exports a list of functions.

    • The new API will allow to create a YAML::XS object containing configuration influencing the behaviour of loading and dumping.
      • It keeps the libyaml parser and emitter structs in memory, so repeated calls can save the creation of those structs
    • It will by default implement the YAML 1.2 Core Schema, so it is compatible to other YAML processors in perl and in other languages
    • If I have time, I would like to add the merge << key feature as an option. We could then use it in openQA as a replacement for YAML::PP to be faster.

    I already created a proof of concept with a minimal functionality some weeks before this HackWeek.

    Resources

    • Work is currently happening on the oop branch


    Create object oriented API for perl's YAML::XS module, with YAML 1.2 Support by tinita

    Description

    YAML::XS is a binding to libyaml and already quite old, but the most popular YAML module for perl. There are two main issues:

    • It uses global package variables to influence behaviour.
    • It didn't implement the loading of types like numbers and booleans according to the YAML spec (neither 1.1 nor 1.2).

    Goals

    Create a new interface which works object oriented. Currently YAML::XS exports a list of functions.

    • The new API will allow to create a YAML::XS object containing configuration influencing the behaviour of loading and dumping.
      • It keeps the libyaml parser and emitter structs in memory, so repeated calls can save the creation of those structs
    • It will by default implement the YAML 1.2 Core Schema, so it is compatible to other YAML processors in perl and in other languages
    • If I have time, I would like to add the merge << key feature as an option. We could then use it in openQA as a replacement for YAML::PP to be faster.

    I already created a proof of concept with a minimal functionality some weeks before this HackWeek.

    Resources

    • Work is currently happening on the oop branch