biome icon indicating copy to clipboard operation
biome copied to clipboard

In need of a bash wizard

Open 1egoman opened this issue 8 years ago • 10 comments

Are you good at writing bash? I could use some help refactoring Biome. A few things in particular that need updating:

  • Change local variables from uppercase to lowercase (and use the local keyword).
  • I'm pretty sure the convention is to exit with a different error code for each type of error. Right now, if there's an error, the error code is 1.
  • There's a lot of code like echo hello world - this should really be echo "hello world".
  • Anything else that I missed?

Thanks for the help!

1egoman avatar Oct 15 '16 19:10 1egoman

Can I work on this?

rozuur avatar Sep 28 '17 09:09 rozuur

Go for it!

1egoman avatar Sep 28 '17 10:09 1egoman

https://www.shellcheck.net/

howdoicomputer avatar Sep 28 '17 21:09 howdoicomputer

Yep, I've just recently learned about shellcheck, and most likely there's a lot of small changes that could be made to make this tool comply with typical bash conventions.

@rozuur Feel free to adjust anything you see to make it more compliant.

1egoman avatar Sep 28 '17 21:09 1egoman

I was planning to use shellcheck for refactoring. Will send a pull request by EOW.

rozuur avatar Oct 04 '17 05:10 rozuur

@1egoman I am new to circle ci and doesn't know how to trigger the build. Can you check if shellcheck is invoked with the current pull request?

rozuur avatar Oct 06 '17 08:10 rozuur

Can i contribute ?

Furinkazan33 avatar Oct 12 '17 16:10 Furinkazan33

@Furinkazan33 Go for it!

1egoman avatar Oct 12 '17 22:10 1egoman

@1egoman I need the permission to PR.

Furinkazan33 avatar Oct 13 '17 18:10 Furinkazan33

@Furinkazan33 Are you saying you need permission to create a pull request? You should be able to fork this project, perform any changes, and issue a pull request without special permission. Maybe I misunderstand what you're asking?

1egoman avatar Oct 13 '17 21:10 1egoman