flagger icon indicating copy to clipboard operation
flagger copied to clipboard

feat: Add auto-formatting with prettier in `make crd` command

Open kahirokunn opened this issue 11 months ago • 1 comments

Overview

This PR adds automatic code formatting using prettier when generating CRD manifests through the make crd command. This ensures consistent formatting across all generated CRD files.

Changes

  • Added prettier formatting step in the CRD generation process
  • Updated Makefile to include prettier in the make crd command

Purpose

  • Maintains consistent code style in generated CRD files
  • Reduces manual formatting effort
  • Improves readability of generated manifests

kahirokunn avatar Dec 12 '24 06:12 kahirokunn

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.30%. Comparing base (8f83838) to head (fffa471). Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1740      +/-   ##
==========================================
+ Coverage   35.08%   39.30%   +4.21%     
==========================================
  Files         283      284       +1     
  Lines       24653    22391    -2262     
==========================================
+ Hits         8650     8801     +151     
+ Misses      15063    12643    -2420     
- Partials      940      947       +7     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Dec 17 '24 07:12 codecov-commenter