lint compliance

pull/1/head
ansuz 4 years ago
parent 8ca34bd238
commit 4db95c5e67

@ -54,10 +54,10 @@ var grep = function (pattern, cb) {
}).join(' '); }).join(' ');
// grep this repository, ignoring binary files and excluding anything matching the above patterns // grep this repository, ignoring binary files and excluding anything matching the above patterns
var ignoreBinaries= '--binary-files=without-match '; //var ignoreBinaries= '--binary-files=without-match ';
var command = 'git grep ' + pattern + " -- ':/' " + exclude; var command = 'git grep ' + pattern + " -- ':/' " + exclude;
Exec(command, function (err, stdout, stderr) { Exec(command, function (err, stdout /*, stderr */) {
if (err && err.code === 1 && err.killed === false) { if (err && err.code === 1 && err.killed === false) {
if (isPossiblyGenerated(pattern)) { if (isPossiblyGenerated(pattern)) {
return cb(void 0, true, 'POSSIBLY_GENERATED'); return cb(void 0, true, 'POSSIBLY_GENERATED');
@ -114,13 +114,14 @@ var next = function () {
if (!key) { return; } if (!key) { return; }
keys.shift(); keys.shift();
if (!limit--) { return void console.log("[DONE]"); } if (!limit) { return void console.log("[DONE]"); }
limit--;
grep(key, function (err, flagged, reason, output) { grep(key, function (err, flagged, reason, output) {
if (err) { if (err) {
return;
console.error("[%s]", key, err); console.error("[%s]", key, err);
console.log(); console.log();
return;
} else if (!flagged) { } else if (!flagged) {
} else if (reason === 'OTHER') { } else if (reason === 'OTHER') {

@ -679,6 +679,7 @@ define([
var metadataMgr = framework._.sfCommon.getMetadataMgr(); var metadataMgr = framework._.sfCommon.getMetadataMgr();
var privateData = metadataMgr.getPrivateData(); var privateData = metadataMgr.getPrivateData();
var common = framework._.sfCommon; var common = framework._.sfCommon;
var APP = window.APP;
var comments = Comments.create({ var comments = Comments.create({
framework: framework, framework: framework,
@ -822,7 +823,7 @@ define([
// If we've clicked on the show/hide buttons, always use our last value // If we've clicked on the show/hide buttons, always use our last value
if (typeof(localHide) === "boolean") { hide = localHide; } if (typeof(localHide) === "boolean") { hide = localHide; }
if (APP.mobile) { if (window.APP.mobile) {
hide = false; hide = false;
} }
@ -1413,6 +1414,8 @@ define([
$contentContainer.append(h('div#cp-app-pad-resize')); $contentContainer.append(h('div#cp-app-pad-resize'));
var comments = h('div#cp-app-pad-comments'); var comments = h('div#cp-app-pad-comments');
var APP = window.APP;
APP.commentsEl = comments; APP.commentsEl = comments;
if (APP.mobile) { if (APP.mobile) {
APP.comments = UI.dialog.customModal(comments, { APP.comments = UI.dialog.customModal(comments, {

Loading…
Cancel
Save