efmt

Erlang code formatter

APACHE-2.0 License

Downloads
69.7K
Stars
68
Committers
3

Bot releases are visible (Hide)

efmt - v0.3.0

Published by github-actions[bot] over 2 years ago

What's Changed

Full Changelog: https://github.com/sile/efmt/compare/0.2.0...0.3.0

efmt - v0.2.0

Published by github-actions[bot] over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/sile/efmt/compare/0.1.1...0.2.0

efmt - v0.1.1

Published by github-actions[bot] almost 3 years ago

What's Changed

Full Changelog: https://github.com/sile/efmt/compare/0.1.0...0.1.1

efmt - v0.1.0

Published by github-actions[bot] almost 3 years ago

v0.1.0 release 🎉

Full Changelog: https://github.com/sile/efmt/compare/0.0.9...0.1.0

efmt - v0.0.9

Published by github-actions[bot] almost 3 years ago

Full Changelog: https://github.com/sile/efmt/compare/0.0.8...0.0.9

efmt - v0.0.8

Published by github-actions[bot] almost 3 years ago

  • Provides pre-built binaries for Linux and MacOS

Full Changelog: https://github.com/sile/efmt/compare/0.0.7...0.0.8

efmt - v0.0.7

Published by sile almost 3 years ago

  • Refactor and optimize the code base
  • Update efmt_derive to v0.0.3
  • Add command-line options (see below)
$ efmt -h
efmt 0.0.7
Erlang Code Formatter

USAGE:
    efmt [FLAGS] [OPTIONS] [--] [files]...

FLAGS:
    -c, --check                    Checks if input is formatted correctly
        --disable-include          Disables `-include` and `-include_lib` processing. This could improve formatting
                                   speed. All unknown macros will be replaced with `EFMT_DUMMY` atom
        --disable-include-cache    Disables include cache
    -h, --help                     Prints help information
        --parallel                 Executes formatting in parallel
    -V, --version                  Prints version information
        --verbose                  Outputs debug log messages
    -w, --write                    Overwrites input file with the formatted text

OPTIONS:
        --include-cache-dir <include-cache-dir>
            Where to save the caches for the macro definitions collected during processing `-include` or `-include_lib`
            directives [default: .efmt/cache]
    -I, --include-search-dir <include-dirs>...
            Where to search for include files to process Erlang `-include` directives

        --print-width <print-width>                Maximum line length [default: 120]

ARGS:
    <files>...    Format target files

Full Changelog: https://github.com/sile/efmt/compare/0.0.6...0.0.7

efmt - v0.0.6

Published by sile almost 3 years ago

  • Fix a lot of bugs
  • The first formatting style has almost been stabilized

Full Changelog: https://github.com/sile/efmt/compare/0.0.5...0.0.6

efmt - v0.0.5

Published by sile almost 3 years ago

Supported formatting the Erlang files included in the OTP 24.1 distribution (except for non-UTF-8 and broken files).

Command (fish shell):

$ cd otp_src_24.1/

# There are 3710 valid Erlang files
$ for f in (ls **.erl | grep -E -v 'sdocbook2xhtml.erl|wxXmlResource.erl|wxTaskBarIcon.erl|wxPrintout.erl|wxListCtrl.erl|ssh_sample_cli.erl|un(_atom)?[1-3].erl|bad_SUITE.erl|no_compile_SUITE.erl|bad_enc.erl|col_lat1.erl|tlatin.erl|snmp_agent_bl_test.erl|snmp_agent_ms_test.erl|snmp_agent_mt_test.erl|snmp_agent_v[1,2,3]_test.erl')
      echo $f
      env RUST_LOG=error efmt -I (dirname $f) -- $f > /dev/null; or break
  end

Full Changelog: https://github.com/sile/efmt/compare/0.0.4...0.0.5

efmt - v0.0.4

Published by sile almost 3 years ago

  • Update erl_tokenize to v0.4.4
  • A lot of minor improvements

Full Changelog: https://github.com/sile/efmt/compare/0.0.3...0.0.4

efmt - v0.0.3

Published by sile almost 3 years ago

Changes:

  • Improved macro handling
  • Refactored a large part of the code base

Full Changelog: https://github.com/sile/efmt/compare/0.0.2...0.0.3

efmt - v0.0.2

Published by sile almost 3 years ago

Minor bug fixes and warning message improvement.

Full Changelog: https://github.com/sile/efmt/compare/0.0.1...0.0.2

efmt - v0.0.1

Published by sile almost 3 years ago