Skip to content

Normalize and standardize newlines when batching #238

Closed
@miniscruff

Description

@miniscruff

New lines are starting to become a headache around when changie adds them compared to when they are expected from formats, files or anything else. This may introduce visual differences but I do not think it is backwards incompatible and can be done in a minor release.

Solution 1:
Remove all manual new lines and expect files and inputs to be handled by the end user

Solution 2:
Add a newline before and after all supplied files and formatting

Solution 3:
Create configurations for when to add new lines and when not to, for example before + after headers, footers, changes, kinds, components, etc

Solution 4:
Create configurations but only for files and templates.

Solution 5:
Just like solution 3 but with numbers instead of bools... just cause you might want to have more than one empty line.

Solution 5 works the best, a separate "Newline" section to config would make the most sense.
Something like:

Config:
  Newlines:
    BeforeVersion: 0
    AfterVersion: 1
    BeforeComponent: 1
    AfterHeaderFile: 0
    AfterFooterFile: 0
    ... etc

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions