Giter Club home page Giter Club logo

Comments (2)

SergioBenitez avatar SergioBenitez commented on June 18, 2024

I was surprised that this crate isn't using Clippy (many pending lints)

We do use clippy, we just don't fix every lint because not all of them are strict improvements. Instead of peppering the codebase with allow(clippy) annotations, we either declare them in the [lints.clippy] Cargo.toml file or leave them be.

and isn't formatted using rustfmt. This makes reading the code and contributing harder, at least for me.

As of the last time I checked, rustfmt is still unable to format a bunch of reasonable code (like things in macro invocations) in a reasonable manner. Nevertheless, we do have code style guidelines that we rather strictly enforce. Which code are you finding hard to read?

Are you open for a PR to use both?

We have tried rustfmt many times and each time has ended poorly. As a result we committed a rustfmt file that simply disables rustfmt. If the state of rustfmt has changed significantly then I'm happy to try again, but we would want the most conservative settings that result in the smallest diff.

As for clippy: as I said we do use clippy, but if you have ways to improve our use of want to submit fixes that clippy identified, they are absolutely welcome!

from figment.

SergioBenitez avatar SergioBenitez commented on June 18, 2024

Closing as there's nothing directly actionable. Happy to field PRs as indicated above.

from figment.

Related Issues (20)

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.