cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
522
Views
1
Helpful
0
Replies

Meme Monday: YAML Spacing

atacke
Cisco Employee
Cisco Employee

YAML-spacing.jpeg

Usually, the heated debate regarding tabs versus spaces is mostly ignored as silly, programmer fodder. However, in this rare instance, spacing and indentation DO matter in this data serialization language! 

YAML stands for YAML Ain’t Markup Language (yay recursion!)  

You’ll often find YAML used for configuration files as they’re easy for humans to write but also easy for machines to read. Cisco also uses YAML for configuration. 

Because spacing and indentation matter with YAML, your formatting has to be perfect. So, make sure you triple-check your YAML files! Or better yet, use a linter to automatically do the checking for you. yamllint is a great one to try that is YAML-specific.  

Do you have a YAML linting tool you prefer? Have a story about a misconfigured YAML file to share? We'd love to hear it  

0 Replies 0