Ensure proper file permissions on startup

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Ken Powers 2020-02-21 18:40:04 -05:00 committed by GitHub
parent 6b56dd4ce0
commit 8d9ccd3c0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 289 additions and 24 deletions

View file

@ -3397,6 +3397,62 @@
"reasonCategory": "falseMatch",
"updated": "2018-09-19T18:13:29.628Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " result.push(append(value, stash, enclose));",
"lineNumber": 21,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " result.push(Array.isArray(ele) ? append(item, ele, enclose) : (item + ele));",
"lineNumber": 26,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " q.push(append(q.pop(), stringify(node, options)));",
"lineNumber": 48,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " q.push(append(q.pop(), ['{}']));",
"lineNumber": 53,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " q.push(append(q.pop(), range));",
"lineNumber": 69,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " q.push(append(q.pop(), queue, enclose));",
"lineNumber": 93,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/fast-glob/node_modules/braces/lib/expand.js",
"line": " queue.push(append(queue.pop(), child.value));",
"lineNumber": 98,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-load(",
"path": "node_modules/file-entry-cache/cache.js",
@ -10053,6 +10109,38 @@
"reasonCategory": "falseMatch",
"updated": "2018-09-19T18:13:29.628Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/picomatch/lib/parse.js",
"line": " if (tok.value || tok.output) append(tok);",
"lineNumber": 210,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/picomatch/lib/parse.js",
"line": " append({ value });",
"lineNumber": 415,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/picomatch/lib/parse.js",
"line": " append({ value });",
"lineNumber": 427,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "jQuery-append(",
"path": "node_modules/picomatch/lib/parse.js",
"line": " append({ value });",
"lineNumber": 511,
"reasonCategory": "falseMatch",
"updated": "2020-02-21T14:09:28.005Z"
},
{
"rule": "thenify-multiArgs",
"path": "node_modules/pify/index.js",

View file

@ -3,8 +3,7 @@
import { readFileSync } from 'fs';
import { join, relative } from 'path';
// @ts-ignore
import * as glob from 'glob';
import { sync as fgSync } from 'fast-glob';
import { forEach, some, values } from 'lodash';
import { ExceptionType, REASONS, RuleType } from './types';
@ -44,7 +43,7 @@ const exceptions: Array<ExceptionType> = loadJSON(exceptionsPath);
const exceptionsLookup = createLookup(exceptions);
let scannedCount = 0;
const allSourceFiles = glob.sync(searchPattern, { nodir: true });
const allSourceFiles = fgSync(searchPattern, { onlyFiles: true });
const results: Array<ExceptionType> = [];