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

Resolving "make lint" Issues Across Three Repositories: Openim Server, Core, and Chat #775

Closed
6 tasks done
cubxxw opened this issue Aug 4, 2023 — with Slack · 2 comments
Closed
6 tasks done
Labels
bug Categorizes issue or PR as related to a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. release/v3.0 Issues and pull requests related to version 3.0 of the release. This is the current version.
Milestone

Comments

Copy link
Contributor

cubxxw commented Aug 4, 2023

Introduction

This design document outlines the process of resolving linting issues across three critical repositories: Openim Server, Core, and Chat. The errors are identified using the "make lint" command, and the goal is to rectify them for cleaner, efficient, and error-free codebases.

The tasks will be subdivided according to the repositories, focusing on specific directories within each. The primary targets are the /pkg and /internal directories in both Chat and Server repositories, along with all other directories outside these two.

Install make lint tools:

make tools

Task Breakdown

We'll divide this work into six modules, two each for the Chat and Server repositories, and one for each "other" directory in these two repositories. Here's how we would partition the work:

1. Chat Repository - /pkg Directory

./_output/tools/golangci-lint run -color always -c ./.golangci.yml ./pkg/...

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves openimsdk/open-im-server#776
Link openimsdk/open-im-server#775

2. Chat Repository - /internal Directory

./_output/tools/golangci-lint run -color always -c ./.golangci.yml ./internal/...

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves openimsdk/open-im-server#777
Link openimsdk/open-im-server#775

3. Chat Repository - Other Directories

make lint

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves openimsdk/open-im-server#778
Link openimsdk/open-im-server#775

4. Server Repository - /pkg Directory

./_output/tools/golangci-lint run -color always -c ./.golangci.yml ./pkg/...

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves #779
Link #775

5. Server Repository - /internal Directory

./_output/tools/golangci-lint run -color always -c ./.golangci.yml ./internal/...

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves #780
Link #775

6. Server Repository - Other Directories

make lint

PR Link:

In PR, replace Fixed with the following way of linking:

Resolves #781
Link #775

Workflow

The workflow for each of these tasks would involve the following steps:

  1. Identification of Errors: Run the make lint command to identify all linting errors.
  2. Error Rectification: Based on the linting output, proceed to rectify the code.
  3. Validation: Run the make lint command again to verify if all linting errors are resolved.
  4. Documentation: Document the changes, issues faced, and their resolutions.
  5. Code Review and Merge: Submit the changes for code review. Upon approval, merge the changes.

This strategy ensures a systematic and efficient process to resolve linting errors, improve the code quality and maintainability. It will be necessary to prioritize these tasks based on their impact on the overall projects and business requirements.

@cubxxw cubxxw added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Aug 4, 2023
@kubbot
Copy link
Contributor

kubbot commented Aug 4, 2023

This issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨
Join slack 🤖 to connect and communicate with our developers.
If you wish to accept this assignment, please leave a comment in the comments section: /accept.🎯

@cubxxw cubxxw added bug Categorizes issue or PR as related to a bug. release/v3.0 Issues and pull requests related to version 3.0 of the release. This is the current version. labels Aug 4, 2023
@cubxxw cubxxw moved this to In progress in openim-powerful Aug 4, 2023
@cubxxw cubxxw added this to the v3.1 milestone Aug 4, 2023
@openimsdk openimsdk deleted a comment from kubbot Aug 4, 2023
@cubxxw cubxxw modified the milestones: v3.1, v3.4 Sep 28, 2023
@kubbot
Copy link
Contributor

kubbot commented Jul 8, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-project-automation github-project-automation bot moved this from In progress to Done in openim-powerful Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. release/v3.0 Issues and pull requests related to version 3.0 of the release. This is the current version.
Projects
Status: Done
Development

No branches or pull requests

3 participants