Skip to content

Comments loose whitespace information (e.g. code indentation) #14

@VojtechVitek

Description

@VojtechVitek

Steps to reproduce:

Given this code:

struct IntentRequest
  - userAddress: string
    + go.field.type = prototyp.Hash
  - originChainId: uint64
    + go.field.name = OriginChainID
  - originTokenAddress: string
    + go.field.type = prototyp.Hash

Comment out some type definition

# struct IntentRequest
#   - userAddress: string
#     + go.field.type = prototyp.Hash
#   - originChainId: uint64
#     + go.field.name = OriginChainID
#   - originTokenAddress: string
#     + go.field.type = prototyp.Hash

Run ridlfmt:

-# struct IntentRequest
-#   - userAddress: string
-#     + go.field.type = prototyp.Hash
-#   - originChainId: uint64
-#     + go.field.name = OriginChainID
-#   - originTokenAddress: string
-#     + go.field.type = prototyp.Hash
+# struct IntentRequest
+# - userAddress: string
+# + go.field.type = prototyp.Hash
+# - originChainId: uint64
+# + go.field.name = OriginChainID
+# - originTokenAddress: string
+# + go.field.type = prototyp.Hash

Notice that the leading whitespaces (code indentation) was removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions