Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reorder imports in a consistent way #2378

Merged
merged 1 commit into from
Sep 20, 2024
Merged

chore: reorder imports in a consistent way #2378

merged 1 commit into from
Sep 20, 2024

Conversation

thomaspoignant
Copy link
Owner

Description

The project had no safe guards in how the order of imports.
In this PR:

  • Adds gofmt and gci in the linter.
  • Reorder all the imports in a consistent way.
  • Add auto-fix for pre-commit to be sure that we have the right order all the time.

Checklist

Copy link

netlify bot commented Sep 20, 2024

Deploy Preview for go-feature-flag-doc-preview canceled.

Name Link
🔨 Latest commit b8c804b
🔍 Latest deploy log https://app.netlify.com/sites/go-feature-flag-doc-preview/deploys/66ed294be0014100081988cc

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.10%. Comparing base (7e20e6a) to head (b8c804b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2378   +/-   ##
=======================================
  Coverage   86.10%   86.10%           
=======================================
  Files         102      102           
  Lines        3778     3778           
=======================================
  Hits         3253     3253           
  Misses        400      400           
  Partials      125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +753 to +781
{
Kind: "http",
URL: "https://github.com/thomaspoignant/go-feature-flag/main/examples/retriever_file/flags.goff.yaml",
HTTPHeaders: map[string][]string{
"authorization": []string{
"authorization": {
"test",
},
"token": []string{"token"},
"token": {"token"},
},
},
config.RetrieverConf{
{
Kind: "file",
Path: "examples/retriever_file/flags.goff.yaml",
HTTPHeaders: map[string][]string{
"token": []string{
"token": {
"11213123",
},
"authorization": []string{
"authorization": {
"test1",
},
},
},
config.RetrieverConf{
{
HTTPHeaders: map[string][]string{

"authorization": []string{
"authorization": {
"test1",
},
"x-goff-custom": []string{
"x-goff-custom": {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is because of gofmt

Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
Copy link

sonarcloud bot commented Sep 20, 2024

@thomaspoignant thomaspoignant merged commit 6456671 into main Sep 20, 2024
22 checks passed
@thomaspoignant thomaspoignant deleted the fix-gofmt branch September 20, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant