Skip to content

Styler mangles multi-line comments in config filesΒ #230

@cschmatzler

Description

@cschmatzler

This config file:

import Config

# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# before starting your production server.
config :tuist, cache_static_manifest: "priv/static/cache_manifest.json"

# Configures Bamboo API Client
config :tuist, Tuist.Mailer, adapter: Bamboo.MailgunAdapter

# Do not print debug messages in production
config :logger, level: :info

After applying Styler, looks like this:

import Config

# Do not print debug messages in production
config :logger, level: :info

# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix assets.deploy` task,

# Configures Bamboo API Client
# which you should run after static files are built and
# before starting your production server.
config :tuist, Tuist.Mailer, adapter: Bamboo.MailgunAdapter
config :tuist, cache_static_manifest: "priv/static/cache_manifest.json"

No idea where it sees the newline, but it's a lot of manual work to rearrange comments.

This is on 1.4.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions