npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

homecheck-debug

v1.0.37

Published

该项目(homecheck)专为提升代码质量而设计,能高效识别代码缺陷并提出方案;其核心功能是对应用工程项目执行静态代码分析,评估代码在安全性、性能等方面上的表现,精准定位问题及其在代码中的位置。

Downloads

87

Readme

homecheck

项目简介

该项目(homecheck)专为提升代码质量而设计,能高效识别代码缺陷并提出方案;其核心功能是对应用工程项目执行静态代码分析,评估代码在安全性、性能等方面上的表现,精准定位问题及其在代码中的位置。

目录

homecheck
├─config/                 # 项目配置
├─document/               # 项目文档
├─resources/              # 依赖库
├─src/
│ ├─checker/             # 项目检测规则功能代码
│ ├─codeFix/             # 修复
│ ├─matcher/             # 匹配类型
│ ├─model/               # 模块
│ ├─utils/               # 公共接口
│ └─run.ts               # 项目入口
└─test/                   # 测试目录

项目主体流程

1.读取配置文件projectConfig.json和ruleConfig.json

2.使用ArkAnalyzer项目构建sence

3.根据配置文件参数,获取需要检测的文件

4.前处理

5.进行检测

6.后处理

QuickStart

1.下载本项目

2.进入项目根目录,打开终端

cmd

3.安装依赖库

npm install

4.修改配置

详细配置请参考:homecheck配置文件使用指南

config\projectConfig.json中修改项目配置 示例:

{
  "projectName": "TestProject", // 待检测工程的名字
  "projectPath": "D:\\arkProject",  // 待检测工程的路径
  "logPath": "./HomeCheck.log", // 日志输出路径
  "ohosSdkPath": "D:\\DevEco Studio\\sdk\\default\\openharmony\\ets", // ohossdk路径
  "hmsSdkPath": "D:\\DevEco Studio\\sdk\\default\\hms\\ets",  // hmssdk路径
  "sdkVersion": 14  // sdk版本
}

5.启动项目

注意修改projectConfig.json和ruleConfig.json文件路径

5.1 命令行启动,示例:

根目录下执行

node -r ts-node/register ./src/run.ts  --projectConfigPath=./config/projectConfig.json --configPath=./config/ruleConfig.json

5.2 vscode启动:

根目录新建.vscode目录,并新建launch.json文件,内容参考.vscode_sample\launch.json

点击左侧运行和调试按钮,点击启动程序,开始运行,运行结束查看HomeCheck.log

5.3 webstorm启动:

新增规则

自定义规则

参考:自定义规则开发指南

检测规则

参考:新增检测规则开发指南

api

参考:api说明

打包

根目录下执行命令:

npm pack

产物,根目录下:

homecheck-1.0.0.tgz

安装与使用

参考:homecheck安装与使用指南

HomeCheck附带工具使用指南

参考:HomeCheck附带工具使用指南

日志

运行结果请查看根目录下的HomeCheck.log

代码上库

遵守openharmony-sig代码上库规范, 请参考:代码风格编程规范

操作方法请参考:创建pr指南

Issues

提交Issues请参考:Issues指南

添加自验证测试用例

自验证用例请参考:单元测试用例开发指南

相关仓

ArkAnalyzer

欢迎加入homecheck社区开发讨论

homecheck社区开发讨论