Skip to content

Instantly share code, notes, and snippets.

@baybatu
Last active May 3, 2021 11:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/8c813cb790f2d0183da1889282a9f7d5 to your computer and use it in GitHub Desktop.
Save baybatu/8c813cb790f2d0183da1889282a9f7d5 to your computer and use it in GitHub Desktop.
Iyi pratik ornegi olarak Yaml dosyalarinda cift tirnak kullanimi

Yaml dosyalarda yes, on, true gibi degerlerin hepsi boolean true degerine eslestiriliyor. Bu da gozden kactiginda tespiti zor buglara neden oluyor.

Bu tarz sorunlardan bastan kacinmak icin string alanlari cift tirnak ile cevrelemek iyi bir pratik.

🚫 Kotu ornek:

watermark:
  - no
  - yes

Iyi ornek:

watermark:
  - "no"
  - "yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment