Coder Social home page Coder Social logo

Lots of RuboCop offenses about dry-validation HOT 8 CLOSED

dry-rb avatar dry-rb commented on August 28, 2024
Lots of RuboCop offenses

from dry-validation.

Comments (8)

solnic avatar solnic commented on August 28, 2024

Hey, yes I'd accept a PR that fixes the issues with the exception of .() calls, I love it and I want to make it more popular, esp. that you can attach some extra meaning to it, ie. such calls could mean a side-effect-less call that is functional. I hope @AMHOL can get used to it? 😂

from dry-validation.

zacholauson avatar zacholauson commented on August 28, 2024

Awesome. I like the .() call syntax as well. I haven't seen it used very much so its cool to see it used so consistently in this project.

I'll start working through the offenses and post back if I have any questions about desired code style.

Thanks!

from dry-validation.

zacholauson avatar zacholauson commented on August 28, 2024

@solnic / @AMHOL, I opened a work in progress pull request as I work through the offenses. Initially I disabled the inspection that prefers .call() over .(), but we could also change this inspection to enforce .() over .call(). What would you guys prefer?

from dry-validation.

solnic avatar solnic commented on August 28, 2024

I'd say we should simply disable this check
On Sat, 12 Dec 2015 at 20:05, Zach Olauson [email protected] wrote:

@solnic https://github.com/solnic, I opened a work in progress pull
request as I work through the offenses. Initially I disabled the inspection
that prefers .call() over .(), but we could also change this inspection
to enforce .() over .call(). What would you prefer?


Reply to this email directly or view it on GitHub
#33 (comment)
.

from dry-validation.

zacholauson avatar zacholauson commented on August 28, 2024

Sounds good. Thanks @solnic

from dry-validation.

AMHOL avatar AMHOL commented on August 28, 2024

@solnic @zacholauson I can live with it lol

from dry-validation.

zacholauson avatar zacholauson commented on August 28, 2024

Hey guys, just as an update. I've been home visiting family so I haven't been working on this much. I plan to continue to work on it this weekend, I have about 10 offenses left.

from dry-validation.

solnic avatar solnic commented on August 28, 2024

No worries man :) BTW a lot of code has been moved to dry-logic.

from dry-validation.

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.