--- bin/www
+++ bin/www
... | ... | @@ -4,22 +4,22 @@ |
4 | 4 |
* Module dependencies. |
5 | 5 |
*/ |
6 | 6 |
|
7 |
-var app = require('../app'); |
|
8 |
-var debug = require('debug')('okdevtv:server'); |
|
9 |
-var http = require('http'); |
|
7 |
+const app = require('../app'); |
|
8 |
+const debug = require('debug')('okdevtv:server'); |
|
9 |
+const http = require('http'); |
|
10 | 10 |
|
11 | 11 |
/** |
12 | 12 |
* Get port from environment and store in Express. |
13 | 13 |
*/ |
14 | 14 |
|
15 |
-var port = normalizePort(process.env.PORT || '3000'); |
|
15 |
+const port = normalizePort(process.env.PORT || '3000'); |
|
16 | 16 |
app.set('port', port); |
17 | 17 |
|
18 | 18 |
/** |
19 | 19 |
* Create HTTP server. |
20 | 20 |
*/ |
21 | 21 |
|
22 |
-var server = http.createServer(app); |
|
22 |
+const server = http.createServer(app); |
|
23 | 23 |
|
24 | 24 |
/** |
25 | 25 |
* Listen on provided port, on all network interfaces. |
... | ... | @@ -34,7 +34,7 @@ |
34 | 34 |
*/ |
35 | 35 |
|
36 | 36 |
function normalizePort(val) { |
37 |
- var port = parseInt(val, 10); |
|
37 |
+ const port = parseInt(val, 10); |
|
38 | 38 |
|
39 | 39 |
if (isNaN(port)) { |
40 | 40 |
// named pipe |
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 |
throw error; |
59 | 59 |
} |
60 | 60 |
|
61 |
- var bind = typeof port === 'string' |
|
61 |
+ const bind = typeof port === 'string' |
|
62 | 62 |
? 'Pipe ' + port |
63 | 63 |
: 'Port ' + port; |
64 | 64 |
|
... | ... | @@ -82,8 +82,8 @@ |
82 | 82 |
*/ |
83 | 83 |
|
84 | 84 |
function onListening() { |
85 |
- var addr = server.address(); |
|
86 |
- var bind = typeof addr === 'string' |
|
85 |
+ const addr = server.address(); |
|
86 |
+ const bind = typeof addr === 'string' |
|
87 | 87 |
? 'pipe ' + addr |
88 | 88 |
: 'port ' + addr.port; |
89 | 89 |
debug('Listening on ' + bind); |
--- lib/db.js
+++ lib/db.js
... | ... | @@ -1,5 +1,5 @@ |
1 |
-var mysql = require('mysql'); |
|
2 |
-var connection = mysql.createConnection({ |
|
1 |
+const mysql = require('mysql'); |
|
2 |
+const connection = mysql.createConnection({ |
|
3 | 3 |
host: 'localhost', |
4 | 4 |
user: process.env.DB_USER || 'devuser', |
5 | 5 |
password: process.env.DB_PASS || 'okpassokpass', |
--- lib/sheetdb.js
+++ lib/sheetdb.js
... | ... | @@ -20,7 +20,6 @@ |
20 | 20 |
}); |
21 | 21 |
await doc.loadInfo(); // loads document properties and worksheets |
22 | 22 |
|
23 |
- // const sheet = doc.sheetsByIndex[info.index]; // or use doc.sheetsById[id] |
|
24 | 23 |
const sheet = doc.sheetsById[info.id]; // or use doc.sheetsById[id] |
25 | 24 |
return sheet; |
26 | 25 |
} |
--- public/kr/socket.io-chat-kr.html
+++ public/kr/socket.io-chat-kr.html
... | ... | @@ -1,5 +1,5 @@ |
1 | 1 |
<!DOCTYPE html> |
2 |
-<html> |
|
2 |
+<html lang="en"> |
|
3 | 3 |
<head> |
4 | 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
5 | 5 |
<title>socket.io-chat-kr.html</title> |
--- public/md/codetip/codetip.md
+++ public/md/codetip/codetip.md
... | ... | @@ -5,9 +5,7 @@ |
5 | 5 |
```js |
6 | 6 |
function sleep(timeMillis, callback) { |
7 | 7 |
var stop = Date.now(); |
8 |
- while (Date.now() < stop + timeMillis) { |
|
9 |
- // This is intentional |
|
10 |
- } |
|
8 |
+ while (Date.now() < stop + timeMillis) {} |
|
11 | 9 |
callback(); |
12 | 10 |
} |
13 | 11 |
``` |
--- sonar-project.properties
+++ sonar-project.properties
... | ... | @@ -9,8 +9,8 @@ |
9 | 9 |
# If not set, SonarQube starts looking for source code from the directory containing |
10 | 10 |
# the sonar-project.properties file. |
11 | 11 |
sonar.sources=. |
12 |
-sonar.exclusions=test/**, node_modules/**, public/api/**, public/sh_3.0.83/**, public/slides.html5rocks.com/**, public/js/**/*.min.js, public/js/init.js |
|
13 |
-sonar.login=f0a630cae1axxxxxxxxx9dbdefc40ba530bc |
|
12 |
+sonar.exclusions=test/**, node_modules/**, public/** |
|
13 |
+sonar.login=squ_7c74fc757207d8a6533bc4c4a7a156a178ec0174 |
|
14 | 14 |
|
15 | 15 |
# Encoding of the source code. Default is default system encoding |
16 | 16 |
sonar.sourceEncoding=UTF-8 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?