Giter Club home page Giter Club logo

Comments (17)

budmc29 avatar budmc29 commented on September 24, 2024 1

I can give this a try and see how it goes after #104 is completed, since it's dependent on that.

from bash.

budmc29 avatar budmc29 commented on September 24, 2024 1

Forgot about this, I'll see what I can do in the following days.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024 1

I will look into this again after I have gotten a couple more exercises ported to the track.

from bash.

budmc29 avatar budmc29 commented on September 24, 2024 1

I'll have another try at this.

from bash.

budmc29 avatar budmc29 commented on September 24, 2024

That looks good and definitely something that will help, I tested it with a sample script and the suggestions were good.

One downside might be with Bats support, as per: koalaman/shellcheck#417, which is not yet merged.

from bash.

sjwarner-bp avatar sjwarner-bp commented on September 24, 2024

That's a great point - I didn't see this before.

If we were set on using shellcheck as a linter, we could omit testing the bats files. Equally, it seems as though there is a good PR attached to the issue, so hopefully it may be merged in the future (or just use the unmerged branch - people seem to think it works pretty well).

Conversely, I have no particular attachment to shellcheck, and as such am happy to take suggestions for any other linters 🙂

from bash.

kotp avatar kotp commented on September 24, 2024

Linting on the bats file is the test file, and the test file gets seen by the user/learner, and therefore should be as correct as can be.

The solutions are submitted by contributors, and it would be nice to conform to conventions, but this has somewhat less exposure to a learner.

from bash.

sjwarner-bp avatar sjwarner-bp commented on September 24, 2024

Any progress on this one @budmc29 ? 🙂

I imagine there will be a lot of edits with this.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024

Did #148 take care of this?

from bash.

budmc29 avatar budmc29 commented on September 24, 2024

No, this is a different issue.
I don't have time to work on it anymore, so if you can take over if you want.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024

I'll consider this. I'm going to focus on updating the out of date tests with the generator first, so we can get version files for everything.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024

I'll check later today, but I believe shellcheck gets mad if you use [ ] instead of [[ ]].

I think if we implement it we will have to change all of our tests to use [[ ]].

from bash.

budmc29 avatar budmc29 commented on September 24, 2024

I see no issue with that, it's actually an improvement if my understand of how [[ works is correct.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024

Okay, great. I will look into adding linting with shellcheck.

I guess we will need to make other scripts and bin/* follow the same guidelines.

from bash.

guygastineau avatar guygastineau commented on September 24, 2024

A glance through our example solutions suggests that most of them would need changing before they would pass linting with shellcheck. Some of them will need outright replacement

from bash.

budmc29 avatar budmc29 commented on September 24, 2024

I have closed my attempt since I don't have that much time anymore, but if anyone is interested you can see the progress I made on #234

from bash.

budmc29 avatar budmc29 commented on September 24, 2024

I'll close this. If anyone has time to pick it up, feel free to reopen.

from bash.

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.