| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3f4b27d commit d66cb4a
202 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,9 +60,9 @@ module.exports = { | |||
| 60 | 60 | 'brace-style': ['error', '1tbs', { allowSingleLine: true }], | |
| 61 | 61 | 'capitalized-comments': ['error', 'always', { | |
| 62 | 62 | line: { | |
| 63 | - // Ignore all lines that have less characters than 50 and all lines that | ||
| 63 | + // Ignore all lines that have less characters than 40 and all lines that | ||
| 64 | 64 | // start with something that looks like a variable name or code. | |
| 65 | - ignorePattern: '^.{0,50}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]', | ||
| 65 | + ignorePattern: '^.{0,40}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]|^ std', | ||
| 66 | 66 | ignoreInlineComments: true, | |
| 67 | 67 | ignoreConsecutiveComments: true, | |
| 68 | 68 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ function CLI(usage, settings) { | |||
| 28 | 28 | } | |
| 29 | 29 | ||
| 30 | 30 | let currentOptional = null; | |
| 31 | - let mode = 'both'; // possible states are: [both, option, item] | ||
| 31 | + let mode = 'both'; // Possible states are: [both, option, item] | ||
| 32 | 32 | ||
| 33 | 33 | for (const arg of process.argv.slice(2)) { | |
| 34 | 34 | if (arg === '--') { | |
@@ -59,7 +59,7 @@ function CLI(usage, settings) { | |||
| 59 | 59 | this.optional[currentOptional] = arg; | |
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | - // the next value can be either an option or an item | ||
| 62 | + // The next value can be either an option or an item | ||
| 63 | 63 | mode = 'both'; | |
| 64 | 64 | } else if (['both', 'item'].includes(mode)) { | |
| 65 | 65 | // item arguments | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ function main({ api, cipher, type, len, writes }) { | |||
| 15 | 15 | cipher = 'AES192'; | |
| 16 | 16 | if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) { | |
| 17 | 17 | console.error('Crypto streams not available until v0.10'); | |
| 18 | - // use the legacy, just so that we can compare them. | ||
| 18 | + // Use the legacy, just so that we can compare them. | ||
| 19 | 19 | api = 'legacy'; | |
| 20 | 20 | } | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ const bench = common.createBenchmark(main, { | |||
| 16 | 16 | function main({ api, type, len, out, writes, algo }) { | |
| 17 | 17 | if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) { | |
| 18 | 18 | console.error('Crypto streams not available until v0.10'); | |
| 19 | - // use the legacy, just so that we can compare them. | ||
| 19 | + // Use the legacy, just so that we can compare them. | ||
| 20 | 20 | api = 'legacy'; | |
| 21 | 21 | } | |
| 22 | 22 | ||
@@ -54,7 +54,7 @@ function legacyWrite(algo, message, encoding, writes, len, outEnc) { | |||
| 54 | 54 | h.update(message, encoding); | |
| 55 | 55 | var res = h.digest(outEnc); | |
| 56 | 56 | ||
| 57 | - // include buffer creation costs for older versions | ||
| 57 | + // Include buffer creation costs for older versions | ||
| 58 | 58 | if (outEnc === 'buffer' && typeof res === 'string') | |
| 59 | 59 | res = Buffer.from(res, 'binary'); | |
| 60 | 60 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, { | |||
| 15 | 15 | function main({ api, type, len, algo, writes }) { | |
| 16 | 16 | if (api === 'stream' && /^v0\.[0-8]\./.test(process.version)) { | |
| 17 | 17 | console.error('Crypto streams not available until v0.10'); | |
| 18 | - // use the legacy, just so that we can compare them. | ||
| 18 | + // Use the legacy, just so that we can compare them. | ||
| 19 | 19 | api = 'legacy'; | |
| 20 | 20 | } | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // throughput benchmark in signing and verifying | ||
| 2 | + // Throughput benchmark in signing and verifying | ||
| 3 | 3 | const common = require('../common.js'); | |
| 4 | 4 | const crypto = require('crypto'); | |
| 5 | 5 | const fs = require('fs'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - // throughput benchmark in signing and verifying | ||
| 2 | + // Throughput benchmark in signing and verifying | ||
| 3 | 3 | const common = require('../common.js'); | |
| 4 | 4 | const crypto = require('crypto'); | |
| 5 | 5 | const fs = require('fs'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the throughput of the fs.WriteStream class. | ||
| 1 | + // Test the throughput of the fs.WriteStream class. | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const path = require('path'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // test the throughput of the fs.WriteStream class. | ||
| 1 | + // Test the throughput of the fs.WriteStream class. | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const path = require('path'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | const common = require('../common.js'); | |
| 6 | 6 | const util = require('util'); | |
| 7 | 7 | ||
| 8 | - // if there are --dur=N and --len=N args, then | ||
| 8 | + // If there are --dur=N and --len=N args, then | ||
| 9 | 9 | // run the function with those settings. | |
| 10 | 10 | // if not, then queue up a bunch of child processes. | |
| 11 | 11 | const bench = common.createBenchmark(main, { | |
@@ -36,7 +36,7 @@ function main({ dur, len, type }) { | |||
| 36 | 36 | if (err) | |
| 37 | 37 | fail(err, 'connect'); | |
| 38 | 38 | ||
| 39 | - // the meat of the benchmark is right here: | ||
| 39 | + // The meat of the benchmark is right here: | ||
| 40 | 40 | bench.start(); | |
| 41 | 41 | var bytes = 0; | |
| 42 | 42 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments