Skip to content

[Anchor] Lack of Code Formatting #19

@julianzamt

Description

@julianzamt

Describe the bug
Not a bug, but something to have in mind.
As stated in the Get Started Docs, this is not implemented yet, but it is a quite easy fix that we can add to the generation pipeline that will add value to our product.

To Reproduce
1 - Generate any Anchor program
2 - take a look at the lack of formatting in the generated code.

Expected behavior
1- Include rustfmt as required dependencies for codigo
2- execute cargo fmt from the root directory of the generated code.

Screenshots
Before
image

After
image

Código CLI version:

  • Version v0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis has been merged to developEnhancementThis improve the product or Código's source code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions