Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint the Codebase and Create CI/CD workflow for the same #32

Closed
uzaxirr opened this issue Jan 1, 2023 · 8 comments · Fixed by #62
Closed

Lint the Codebase and Create CI/CD workflow for the same #32

uzaxirr opened this issue Jan 1, 2023 · 8 comments · Fixed by #62
Assignees
Labels
good first issue Good for newcomers

Comments

@uzaxirr
Copy link
Member

uzaxirr commented Jan 1, 2023

Currently the codebase is not properly linted, when we run golangci-lint run in the root of repository we get many errors, so it is desirable to fix them up and create a GitHub action workflow for the same to avoid bumping into this in future

Screenshot 2023-01-02 at 1 13 49 AM

@uzaxirr uzaxirr added the good first issue Good for newcomers label Jan 1, 2023
@Shofiya2003
Copy link
Collaborator

Hey!
Can I work on the issue?
Here, we need GitHub Action workflow for linting. Right?

@uzaxirr
Copy link
Member Author

uzaxirr commented Jan 3, 2023

Hey @Shofiya2003

Yes, You can work on this. Assigning this to you right away

Here, we need GitHub Action workflow for linting. Right?

Yes we do need an workflow for linting and also you need to fix the currently existing issues (shown in the above screen-shot) that occurs when running a linter so that the GitHub actions checks may pass.

@abhishekraj272 should we remove the dev()function as it was used just for temporary testing and is currently being flagged by the linter

@abskrj
Copy link
Member

abskrj commented Jan 3, 2023

yes, we can remove the dev function now

@Shofiya2003
Copy link
Collaborator

Hey!

  • first I should resolve the errors we get when we run golangci-lint
  • use GitHub actions to set up the workflow for golang ci lint actions

@uzaxirr
Copy link
Member Author

uzaxirr commented Jan 6, 2023

Hey!

  • first I should resolve the errors we get when we run golangci-lint
  • use GitHub actions to set up the workflow for golang ci lint actions

Sounds like a plan!

@chauhan17nitin
Copy link
Contributor

Hey!

  • first I should resolve the errors we get when we run golangci-lint
  • use GitHub actions to set up the workflow for golang ci lint actions

Sounds like a plan!

Have a suggestion here 🤔 , may be you guys can decide on it accordingly 😅

i see if we will start resolving golangci-lint error here, that may take considerable amount of time, + at the same time other people will be committing un-linted code,

there is a param issues in golang-ci-lint configuration
if we mark the new inside it as true, then it will only analyze the new coming code that it is correctly linted on not.

At first we can start with that and create a pipeline 🟢 so that new coming code is correct, later on when old files code will be edited linting will come into play 😄 .

Just wanted to say we can do it progressively instead of resolving all errors in one go (which may be frustrating sometimes 😞 ).

At the end decision will be yours 💯 .

@abskrj
Copy link
Member

abskrj commented Jan 7, 2023 via email

@Shofiya2003
Copy link
Collaborator

Alrighty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants