Giter VIP home page Giter VIP logo

Comments (13)

dbale-altoros avatar dbale-altoros commented on May 23, 2024 2

I will check this as soon as i can
thanks @madlabman for the suggestion

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024 2

Hey @MaxenceAdnot I will implement this fix as well
Probably next week
solhint community is a fork from protofire solhint
both are open source

We will mantain this original solhint because it is an important part of protofire products

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024 1

@MaxenceAdnot
@madlabman
Expect new solhint version on Monday

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024 1

Will merge this
#578
To fix this issue

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024 1

New version
https://www.npmjs.com/package/solhint

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024 1

@madlabman
Yes , sorry. You're right
I mean, reports[0] contains all errors from the first contract analyzed
If you have more than one contract this will not provide correct info
Like you said I need to loop through all contracts ( all reports[] )
I will fix it today on my afternoon

Thanks a lot for the feedback !! Really appreciate

from solhint.

juanpcapurro avatar juanpcapurro commented on May 23, 2024

FWIW I overhauled the exit codes on solhint-community with:

solhint-community/solhint-community#134 -- to exit early and with a different code if there's a misconfiguration
solhint-community/solhint-community#76 -- to have --quiet not override --max-warnings

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024

FWIW I overhauled the exit codes on solhint-community with:

solhint-community/solhint-community#134 -- to exit early and with a different code if there's a misconfiguration solhint-community/solhint-community#76 -- to have --quiet not override --max-warnings

cool!
Thanks @juanpcapurro for that!

from solhint.

MaxenceAdnot avatar MaxenceAdnot commented on May 23, 2024

Hello @dbale-altoros

Do you plan to implement this in solhint or should we move to solhint-community ?

from solhint.

MaxenceAdnot avatar MaxenceAdnot commented on May 23, 2024

Thanks a lot @dbale-altoros

from solhint.

madlabman avatar madlabman commented on May 23, 2024

image
Welp, still doesn't work for me.

Probably, the reason is the following code

if (reports[0].errorCount > 0) process.exit(EXIT_CODES.REPORTED_ERRORS)

should iterate over the all the reports instead.

@dbale-altoros

from solhint.

dbale-altoros avatar dbale-altoros commented on May 23, 2024

@madlabman made a new package on npm
whenever you can, please confirm if it is working

from solhint.

madlabman avatar madlabman commented on May 23, 2024

@madlabman made a new package on npm whenever you can, please confirm if it is working

LGTM, thank you @dbale-altoros !

from solhint.

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.