Coder Social home page Coder Social logo

elm-review-bot's Introduction

elm-review-bot

A bot that uses elm-review to find common mistakes in Elm packages.

Currently the bot only checks if there are unused dependencies but some future checks might be:

  • Check that the Elm version range in the elm.json file is valid
  • Check that packages don't depend on packages that no longer exist
  • Check that all the types used by exposed functions are also exposed
  • Detect Debug.* functions (apparently there's some bug that lets you include Debug.log in published packages)

This bot is written 100% written using Elm and is hosted with Lamdera.

elm-review-bot's People

Contributors

martinsstewart avatar supermario avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

supermario

elm-review-bot's Issues

Only add Elm modules that are actually used by a package

Currently all Elm modules in a packages src/ and tests/ folder are added. Sometimes modules in those folders aren't actually used by the package though and this can cause problems if there's name collisions or if the extra modules don't parse.

Improve performance and reduce ram usage

Currently it takes forever to check all the packages ~700 packages per hour and it eats so much ram that the Lamdera app dies. This might be due to agu-z/elm-zip being unoptimised but it could be something else as well.

false positive `Unused.Dependencies`

elm-review-bot created a new PR in elm-bits.
When I run the suggested

npx elm-review --template jfmengels/elm-review-unused/example --rules NoUnused.Dependencies

or try running elm-review with the newest elm-review-unused dependency installed, no errors are found.

elm-review-bot however, suggests

-   "lue-bird/elm-typed-value": "5.0.0 <= v < 6.0.0",
    "lue-bird/elm-typesafe-array": "18.0.0 <= v < 19.0.0"
},
"test-dependencies": {
+   "lue-bird/elm-typed-value": "5.0.0 <= v < 6.0.0"
}

This is probably (?) an issue with the used elm-review-unused version (bot uses 1.1.9, latest is 1.1.16).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.