Format Brittany's source code with Brittany #238

Closed
opened 2019-06-19 00:57:58 +02:00 by tfausak · 3 comments
tfausak commented 2019-06-19 00:57:58 +02:00 (Migrated from github.com)

It would be nice if Brittany could be "self hosting" in that it could format its own source. Doing so would give a lot of confidence that things aren't broken, and also stand as a good example of what Brittany's output looks like.

It would be nice if Brittany could be "self hosting" in that it could format its own source. Doing so would give a lot of confidence that things aren't broken, and also stand as a good example of what Brittany's output looks like.
eborden commented 2019-06-19 06:00:04 +02:00 (Migrated from github.com)

I'm curious if using https://restyled.io/ would be an option once the initial formatting is done. This all depends on whether "self hosting" means formatting with HEAD or the most recent release.

I'm curious if using https://restyled.io/ would be an option once the initial formatting is done. This all depends on whether "self hosting" means formatting with `HEAD` or the most recent release.
tfausak commented 2019-06-19 15:07:25 +02:00 (Migrated from github.com)

That would probably be fine, especially with layout stability (#235). In fact it might be nice — we could recommend that other projects do that too, and we'd be eating our own dog food.

That would probably be fine, especially with layout stability (#235). In fact it might be nice — we could recommend that other projects do that too, and we'd be eating our own dog food.
tfausak commented 2020-12-11 18:28:30 +01:00 (Migrated from github.com)

I'm not sure this is possible. Brittany doesn't handle CPP, and Brittany's own source code has plenty of that.

$ rg --glob '*.hs' '^#' | wc -l
200
I'm not sure this is possible. Brittany doesn't handle CPP, and Brittany's own source code has plenty of that. ``` sh $ rg --glob '*.hs' '^#' | wc -l 200 ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#238
There is no content yet.