Skip to content

优化代码实现 #378

Description

@zhugelianglongming

优化内容

  1. 规范化 Receiver 命名
  2. 抽取重复代码
  3. 抽取函数,避免函数实现过长
  4. 面向过程编程实现 -> 面向对象编程实现
  5. 提高代码可读性
  6. 移除冗余文件、冗余代码
  7. ...

优化路径

优先从 kernel/engines/xuperos/xtoken 向上扩大覆盖,目前由于历史代码的兼容问题,golangci-lint限定在指定目录下工作,待相关问题修复后,逐渐覆盖所有代码文件。

相关管理见:Xupercore code quality improvement project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions