V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xcatliu  ›  全部回复第 20 页 / 共 78 页
回复总数  1541
1 ... 16  17  18  19  20  21  22  23  24  25 ... 78  
2017-09-21 11:43:19 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@fds Max complexity 145 也是厉害!
2017-09-21 11:41:10 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@wyk52012 sonar 确实是一个好工具!我这只是一个比较轻量的小工具
2017-09-21 10:25:08 +08:00
回复了 syoubaku 创建的主题 程序员 怎么才能加入 V2EX 的 github 项目组?
@syoubaku 只是去微软工作过一年😅
v2git 是在以前看到这个帖子加的
https://www.v2ex.com/t/278487
在 Github 上新建了一个 V2EX 的 Organizations 可以在个人 profile 上显示一个 badge 留下用户名我发邀请
2017-09-21 10:17:08 +08:00
回复了 syoubaku 创建的主题 程序员 怎么才能加入 V2EX 的 github 项目组?
看楼主满地的绿色,真厉害
2017-09-21 10:15:26 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@VtoEXL sloc 暂时还不支持 vue 格式 https://github.com/flosse/sloc/issues/88
2017-09-21 10:13:00 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@page470075640 不错,不过 max complexity 有点高了,根据 [这个] 的说法:

In general, for method level complexity:

< 10 Easy to maintain
11-20 Harder to maintain
21+ Candidates for refactoring/redesign

[这个]: https://softwareengineering.stackexchange.com/questions/101830/what-does-the-cyclomatic-complexity-of-my-code-mean
2017-09-21 10:09:51 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@ma125125t 可以用 nvm 来安装 node 和 npm,应该就不需要 sudo 了吧
2017-09-21 10:08:52 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@jjplay cqc 自身的检测结果挺好的哇

Number of files: 8
Source lines of code: 360
Duplicate rate: 0.00%
Max complexity: 4
Complexity > 5 (count): 0
Complexity > 10 (count): 0
Complexity > 20 (count): 0
2017-09-21 10:02:04 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@iugo 加双引号就可以了?估计是 glob 这块有点问题,我看看好不好修复
2017-09-21 10:00:43 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@polun
> Error: EISDIR: illegal operation on a directory, read
看 log 应该是把 dir 当成 file 去 read 了。
已修复,可以试一下新版本还有没有问题 npm i -g [email protected]
2017-09-21 09:52:10 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@imlinhanchao 要支持其他语言的代码,应该需要一个一个去适配
2017-09-21 09:51:28 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@orange666 需要 node 环境。运行 npm i cqc -g 可以安装 cqc 命令,然后运行 cqc src/**/*.js 可以测所有 js 文件
2017-09-21 09:50:19 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@Sapp 测打包后的没什么意义吧
2017-09-21 09:49:54 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@momocraft cqc 就是 Code Quality Checker
2017-09-21 09:49:38 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@binux 重复率 0.19% 是怎么做到的,厉害。
2017-09-21 09:48:23 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@AlloVince
> 不知道源代码里一些 ES 的语法是怎么处理的,扫描的源码里使用了 decorators,object rest spread 等一些需要 babel 的语法

代码行数和重复率检查是(基本上)语言无关的,所以可以识别。Complexity 是使用的 eslint 识别的,默认加上了 babel-eslint parser,所以应该可以识别 decorators,object rest spread 语法
详见 https://github.com/xcatliu/cqc/blob/master/src/ComplexityChecker/eslintConfig.js
2017-09-21 09:44:44 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@iugo 试一下加上双引号呢? cqc "src/**/*.js" "src/**/*.jsx"
2017-09-21 09:32:23 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@iugo 是不是在 windows 环境下?
2017-09-20 22:53:12 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@AlloVince 很健康的数据啊
2017-09-20 22:22:20 +08:00
回复了 xcatliu 创建的主题 程序员 运行一个脚本,看看你的项目的代码质量吧
@mhycy 这个可以😂
1 ... 16  17  18  19  20  21  22  23  24  25 ... 78  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2442 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
Developed with CodeLauncher
♥ Do have faith in what you're doing.