DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

chore(ui): Remove the max line width from the YAML formatter #135

Closed flippingbits closed 1 year ago

flippingbits commented 1 year ago

By default, js-yaml breaks lines after 80 characters.

I removed the limitation, so we do not break lines after a specific length, which could become problematic when, for instance, breaking inlined Python functions that contain comments into multiple lines.

Example: Screenshot 2023-01-12 at 15 15 30

I moved the YAML formatting to a central helper function so we do not have to maintain configuration at multiple locations.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information