Coder Social home page Coder Social logo

Comments (6)

dmah42 avatar dmah42 commented on August 16, 2024

i'll start on this to get a feel for the code if you want

from aurae.

future-highway avatar future-highway commented on August 16, 2024

Thinking about the approach to this, I'm not sure about using deny to fail the build. It makes it more difficult to differentiate normal errors from lint based ones. I'm also concerned about discouraging contributions since not everyone is fully comfortable with rust yet.

An alternate approach is to use warn for any lints we want (that are default-allow). Then, we can alter the cargo clippy to cargo clippy -- -D warnings in the GitHub checks. The hope is that we don't discourage contributors from opening a PR, where those who need it can get a review/help in fixing the warnings.

from aurae.

dmah42 avatar dmah42 commented on August 16, 2024

ok, that's fair. i think we'd also want to add this to the Makefile, not just the github checks.

i can start by adding the warnings to the Makefile and fixing anything, then we can audit any default-allow warnings we want to add?

from aurae.

future-highway avatar future-highway commented on August 16, 2024

I'm fine with whatever the decision is, but the reason I didn't want to suggest adding it to the makefile was to let people open PR's with the warnings. cargo clippy -- -D warnings will make all the warnings show as errors.

Maybe we can have an additional makefile command that is strict and people could be encouraged to run it prior to the PR, but wouldn't be part of the normal dev flow.

from aurae.

bpmooch avatar bpmooch commented on August 16, 2024

at work we have below and it works pretty good

install: deps
	@cargo install --path .

## Lint code
lint: deps
	@rustup component add clippy 2> /dev/null
	@cargo clippy --all-features --all -- -D clippy::all -D warnings

from aurae.

dmah42 avatar dmah42 commented on August 16, 2024

i think it's ok to close this. we have some more to enable but it doesn't need an issue to track :)

from aurae.

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.