Skip to content

new-package, new-rule, report changes, and perf

Compare
Choose a tag to compare
@jfmengels jfmengels released this 14 Jun 14:08

New subcommands

First of all, there are 2 new subcommands:

  • new-package: Creates a new package aimed at publishing elm-review rules
  • new-rule: Adds a new rule to your review configuration/project

These aim to help you create good rules and consistent review packages. Try them out, and let us know what you think!

Changes to the error report

  • Running with --no-details hides the details from an error message.
  • The separator between errors now includes the name of the file. This helps avoid having to scroll to know which file the error is for.
  • The header (and separator) now contain the line and column for each error, which allows you to go straight from your terminal to the error.
  • There is now a summary of the number of errors at the end of the report.
  • In watch mode, a message is shown when the analysis is running after a change.

Performance

  • Changes in watch mode are being batched more than before. This should prevent the CLI from running over and over for each file or from crashing.
  • elm-json has been upgraded to 0.2.7, which contains a lot of performance improvements that elm-review will benefit from.

Bug fixes

  • The compilation error message was not being shown.
  • Debug messages were not being shown.

v2.1.4...v2.2.0