Skip to content

Commit 5d6af08

Browse files
committed
update title
1 parent bf41b39 commit 5d6af08

File tree

4 files changed

+1060
-15
lines changed

4 files changed

+1060
-15
lines changed

chapters/05-analytics-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Github项目分析
1+
#Github流行项目分析
22

33
之前曾经分析过一些Github的用户行为,现在我们先来说说Github上的Star吧。(截止: 2015年3月9日23时。)
44

chapters/08-build-github-project.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
99
今天就来说说是怎样做的。
1010

11-
##Github项目组成
12-
1311
以之前造的[Lettuce](https://github.com/phodal/lettuce)为例,里面有:
1412

1513
- 代码质量(Code Climate)
@@ -25,7 +23,7 @@
2523

2624
等等。
2725

28-
##Skillock模块化
26+
###Skillock模块化
2927

3028
在SkillTree的源码里,大致分为三部分:
3129

@@ -122,8 +120,6 @@ return {
122120

123121
当然函数也是一个对象。
124122

125-
##Skillock测试
126-
127123
###自动化测试
128124

129125
一直习惯用Travis CI,于是也继续用Travis Ci,``.travis.yml``配置如下所示:
@@ -161,7 +157,7 @@ branches:
161157

162158
最后的``test/spec``是指定测试的目录。
163159

164-
##Jshint
160+
###Jshint
165161

166162
> JSLint定义了一组编码约定,这比ECMA定义的语言更为严格。这些编码约定汲取了多年来的丰富编码经验,并以一条年代久远的编程原则 作为宗旨:能做并不意味着应该做。JSLint会对它认为有的编码实践加标志,另外还会指出哪些是明显的错误,从而促使你养成好的 JavaScript编码习惯。
167163
@@ -254,7 +250,7 @@ it('should return book label & url', function () {
254250

255251
这就是个问题了,于是偶然间看到了一个叫code climate的网站。
256252

257-
##Code Climate
253+
###Code Climate
258254

259255
> Code Climate consolidates the results from a suite of static analysis tools into a single, real-time report, giving your team the information it needs to identify hotspots, evaluate new approaches, and improve code quality.
260256
@@ -284,11 +280,11 @@ A | lib/url_handler.js | 9 | 0 | 5 | 2.2 | 94.1% | 0
284280

285281
![Coverage][1]
286282

287-
##代码的坏味道
283+
###代码的坏味道
288284

289285
于是我们就打开``lib/database/sqlite_helper.js``,因为其中有两个坏味道
290286

291-
###Similar code found in two :expression_statement nodes (mass = 86)
287+
Similar code found in two :expression_statement nodes (mass = 86)
292288

293289
在代码的 ``lib/database/sqlite_helper.js:58…61 < >``
294290

0 commit comments

Comments
 (0)