moira icon indicating copy to clipboard operation
moira copied to clipboard

Fix linter issues

Open litleleprikon opened this issue 6 years ago • 10 comments

Moira is using golangci-lint to check code. Unfortunately we have a bunch of code from the times before we started to use linters and because of that we had to disable some linters.

You have a chance to help us to improve our code quality fixing linter issues.

I created a branch called feature/lint-hacktoberfest. You can fork it and fix issues in files.

To contribute you can use following steps:

  • Fork project and branch feature/lint-hacktoberfest
  • Open any file that have //nolint: at the beginning of the file and remove //nolint:
  • Fix linter issues
  • Make commit
  • Create PR
  • Profit!

litleleprikon avatar Oct 18 '19 16:10 litleleprikon

I can't find branch feature/lint-hacktoberfest. How should I actually contribute?

maximusKon avatar Oct 18 '19 20:10 maximusKon

Can i pick this?

ravik-karn avatar Oct 19 '19 07:10 ravik-karn

@litleleprikon i would like to work on this issue, can you please assign it to me? PS: i have already setup the repo

adrijshikhar avatar Feb 20 '20 21:02 adrijshikhar

Hello @litleleprikon i am super excited to work on this issue if anyone still no assigned.

shashikant231 avatar Mar 02 '20 17:03 shashikant231

I was checking on the issue. But there was no feature/lint-hacktoberfest branch. Will working in the master branch be okay @litleleprikon?

alishamohanty avatar Mar 10 '20 08:03 alishamohanty

@sashasushko can you help me point?

alishamohanty avatar Mar 10 '20 19:03 alishamohanty

@alishamohanty @shashikant231 @adrijshikhar OK, now we have the feature/lint-hacktoberfest branch with all linters enabled. As expected, it generates a lot of linter errors. You are welcome to try and fix them. Please, keep different linter fixes in different PRs, so multiple people can work on this issue in parallel.

beevee avatar Mar 12 '20 13:03 beevee

Okay, @beevee, Working on it. Keeping you posted here.

alishamohanty avatar Mar 15 '20 20:03 alishamohanty

Alright @beevee .i will start from now on!!

On Mon, 16 Mar 2020 at 01:35, Alisha Mohanty [email protected] wrote:

Okay, @beevee https://github.com/beevee, Working on it. Keeping you posted here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/moira-alert/moira/issues/446#issuecomment-599257616, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALP46BIWKC65IJJYJFUYS5DRHUYKNANCNFSM4JCJRVDA .

shashikant231 avatar Mar 16 '20 07:03 shashikant231

Can I take a stab at this if no one is working on it? @beevee

KavishShah09 avatar Aug 26 '20 17:08 KavishShah09