elm-format icon indicating copy to clipboard operation
elm-format copied to clipboard

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide

Results 123 elm-format issues
Sort by recently updated
recently updated
newest added

This issue is intended as a place to describe how I generate coverage reports for elm-format using [hpc](https://wiki.haskell.org/Haskell_program_coverage), for future reference. Code commits in [emmabastas/elm-format:coverage-report](/emmabastas/elm-format/tree/coverage-report) ### The gist of it...

maintenance

While greatly improved by https://github.com/avh4/elm-format/issues/642, something is still slow for large lists. Two Elm Slack users have noted that files with ~5000 element literal lists can take more than a...

help wanted
performance
upgraded-parser

This is valid according to Elm 0.19.1: ```elm module Main exposing (main) import Html main = let text = String.toUpper (String.trim """ Hello! """ ) in Html.text text ``` elm-format...

Today I first tried elm-format and shocked with [this result](https://github.com/WorksApplications/office-maker/commit/a2a584c097cbe15de0e84ea03fbc990853cd35e4#diff-9e9c9d7a6a3aa1ddef3de9fd517c5c86L308). It consumes 12 spaces per one chain. ```diff - model.floor - |> Maybe.map EditingFloor.present - |> Maybe.andThen (\floor -> List.head...

discussion

At the moment, if you have *no* imports, you cannot comment the top most function of your file. That comment will be pulled to the top of the file. Example:...

## Motivation There are a few longstanding issues with `elm-json-decode-pipeline`. I wrote them up [here](https://github.com/rtfeldman/elm-json-experiment#background). (Briefly: reordering fields in `type alias` can break its decoders' implementations, its unusual types are...

Can not install Elm-format on MacOs High Sierra. this is a section of the message: errno: -13, syscall: 'mkdir', code: 'EACCES', path: '/usr/local/lib/node_modules/elm-format/unpacked_bin' } npm ERR! code ELIFECYCLE npm ERR!...

If `blah.txt` contains the following contents: ``` whatever = 6 + 12 ``` `elm-format` (version 0.8.5) will change the file to one that has different semantics: ``` % ./node_modules/.bin/elm-format blah.txt...

Elm names (i.e. variable, type, module, variant and port names) can contain unicode lower-/uppercase characters, but elm-format does not test for this in it's test suite. What is lower and...

Before: ```elm "\r\n\t" ``` After: ```elm "\x0D\n\t" ``` Is this intended? I prefer "\r" for readability.

discussion