enterprise-contract / ec-cli

Enterprise Contract command line interface
https://enterprisecontract.dev/docs/ec-cli/main/index.html
Apache License 2.0
26 stars 23 forks source link

Use .template extension for all go templates #1664

Closed simonbaird closed 1 month ago

simonbaird commented 1 month ago

There were some templates used in the text output with extension .tmpl. Rename those to be consistent.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.94%. Comparing base (6207701) to head (47588ea). Report is 6 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/graphs/tree.svg?width=650&height=150&src=pr&token=CY5ORXJB33&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract)](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) ```diff @@ Coverage Diff @@ ## main #1664 +/- ## ========================================== - Coverage 80.00% 71.94% -8.06% ========================================== Files 65 73 +8 Lines 4796 5087 +291 ========================================== - Hits 3837 3660 -177 - Misses 959 1427 +468 ``` | [Flag](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [acceptance](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `71.94% <50.00%> (?)` | | | [generative](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `?` | | | [integration](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `?` | | | [unit](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract) | Coverage Δ | | |---|---|---| | [internal/opa/output.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664?src=pr&el=tree&filepath=internal%2Fopa%2Foutput.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvb3BhL291dHB1dC5nbw==) | `76.92% <100.00%> (-15.39%)` | :arrow_down: | | [internal/utils/templates.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664?src=pr&el=tree&filepath=internal%2Futils%2Ftemplates.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvdXRpbHMvdGVtcGxhdGVzLmdv) | `13.33% <ø> (-41.67%)` | :arrow_down: | | [internal/applicationsnapshot/report.go](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664?src=pr&el=tree&filepath=internal%2Fapplicationsnapshot%2Freport.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract#diff-aW50ZXJuYWwvYXBwbGljYXRpb25zbmFwc2hvdC9yZXBvcnQuZ28=) | `31.46% <0.00%> (-36.52%)` | :arrow_down: | ... and [66 files with indirect coverage changes](https://app.codecov.io/gh/enterprise-contract/ec-cli/pull/1664/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=enterprise-contract)
simonbaird commented 1 month ago

Let's go for #1665 instead.