@terafina/tffa-sfdx-plugin 15.0.0-rc.6 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/bin/pmd/apex_ruleset.xml +5 -5
- package/lib/commands/tffa/lint.js +3 -0
- package/lib/commands/tffa/lint.js.map +1 -1
- package/lib/services/lint/eslint-scan.js +1 -1
- package/lib/services/lint/eslint-scan.js.map +1 -1
- package/lib/services/lint/stylelint-scan.d.ts +13 -0
- package/lib/services/lint/stylelint-scan.js +119 -0
- package/lib/services/lint/stylelint-scan.js.map +1 -0
- package/lib/utils/constants.js +1 -1
- package/lib/utils/ignored-files.js +1 -0
- package/lib/utils/ignored-files.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +24 -22
- package/yarn.lock +7981 -0
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ $ npm install -g @terafina/tffa-sfdx-plugin
|
|
|
41
41
|
$ sfdx COMMAND
|
|
42
42
|
running command...
|
|
43
43
|
$ sfdx (--version|-v)
|
|
44
|
-
@terafina/tffa-sfdx-plugin/15.0.0
|
|
44
|
+
@terafina/tffa-sfdx-plugin/15.0.0 linux-x64 node-v16.13.1
|
|
45
45
|
$ sfdx --help [COMMAND]
|
|
46
46
|
USAGE
|
|
47
47
|
$ sfdx COMMAND
|
|
@@ -78,7 +78,7 @@ DESCRIPTION
|
|
|
78
78
|
Display help for sfdx.
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
81
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.14/src/commands/help.ts)_
|
|
82
82
|
|
|
83
83
|
## `sfdx tffa:apexdoc [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
84
84
|
|
|
@@ -104,7 +104,7 @@ EXAMPLES
|
|
|
104
104
|
Generate Apex API Documentation : $sfdx tffa:apexdoc
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0
|
|
107
|
+
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0/src/commands/tffa/apexdoc.ts)_
|
|
108
108
|
|
|
109
109
|
## `sfdx tffa:lint [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
110
110
|
|
|
@@ -119,7 +119,7 @@ FLAGS
|
|
|
119
119
|
-e, --eject update local pmd ruleset
|
|
120
120
|
-f, --level emit fatal violations only
|
|
121
121
|
-j, --json generate json output
|
|
122
|
-
-m, --minapi=<value> [default:
|
|
122
|
+
-m, --minapi=<value> [default: 56] minimum api version to
|
|
123
123
|
use during quality checks
|
|
124
124
|
-r, --rulesetpath=<value> path to pmd ruleset
|
|
125
125
|
-s, --sourcefolder=<value> [default: .] directory containing
|
|
@@ -134,7 +134,7 @@ EXAMPLES
|
|
|
134
134
|
$sfdx tffa:lint
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0
|
|
137
|
+
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0/src/commands/tffa/lint.ts)_
|
|
138
138
|
|
|
139
139
|
## `sfdx tffa:meta [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
140
140
|
|
|
@@ -163,7 +163,7 @@ EXAMPLES
|
|
|
163
163
|
scan a sfdx project for metadata : $sfdx tffa:meta
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0
|
|
166
|
+
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0/src/commands/tffa/meta.ts)_
|
|
167
167
|
|
|
168
168
|
## `sfdx tffa:ping [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
169
169
|
|
|
@@ -185,7 +185,7 @@ EXAMPLES
|
|
|
185
185
|
$ sfdx tffa:ping
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0
|
|
188
|
+
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0/src/commands/tffa/ping.ts)_
|
|
189
189
|
|
|
190
190
|
## `sfdx tffa:source:apiset [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
191
191
|
|
|
@@ -197,7 +197,7 @@ USAGE
|
|
|
197
197
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
198
198
|
|
|
199
199
|
FLAGS
|
|
200
|
-
-a, --api=<value> [default:
|
|
200
|
+
-a, --api=<value> [default: 56] specify the API
|
|
201
201
|
version
|
|
202
202
|
-h, --help Show CLI help.
|
|
203
203
|
-s, --sourcefolder=<value> [default: .] directory containing
|
|
@@ -213,7 +213,7 @@ EXAMPLES
|
|
|
213
213
|
$ sfdx tffa:source:apiset
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0
|
|
216
|
+
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v15.0.0/src/commands/tffa/source/apiset.ts)_
|
|
217
217
|
|
|
218
218
|
## `sfdx version`
|
|
219
219
|
|
package/bin/pmd/apex_ruleset.xml
CHANGED
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
</property>
|
|
169
169
|
</properties>
|
|
170
170
|
</rule>
|
|
171
|
-
|
|
171
|
+
<rule
|
|
172
172
|
name="InteractionInControllerRemoteMethods"
|
|
173
173
|
language="apex"
|
|
174
|
-
message="All Custom controllers should have tffa.Interaction.begin and tffa.Interaction.close"
|
|
174
|
+
message="All Custom controllers should have tffa.Interaction.begin(ctx and tffa.Interaction.close"
|
|
175
175
|
class="net.sourceforge.pmd.lang.apex.rule.ApexXPathRule"
|
|
176
176
|
externalInfoUrl="https://developer.terafinainc.net/development-guidelines/security-guidelines#terafina-application-security"
|
|
177
177
|
>
|
|
178
|
-
<description>All Custom controllers should have tffa.Interaction.begin and tffa.Interaction.close</description>
|
|
178
|
+
<description>All Custom controllers should have tffa.Interaction.begin(ctx and tffa.Interaction.close</description>
|
|
179
179
|
<priority>1</priority>
|
|
180
180
|
<properties>
|
|
181
181
|
<property name="xpath">
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
./ModifierNode/Annotation[@Image = 'RemoteAction']
|
|
187
187
|
and
|
|
188
188
|
(
|
|
189
|
-
not(.//MethodCallExpression[@FullMethodName='tffa.Interaction.begin'])
|
|
189
|
+
not(.//MethodCallExpression[@FullMethodName='tffa.Interaction.begin' and .//VariableExpression[@Image = 'ctx']])
|
|
190
190
|
or
|
|
191
191
|
not(.//MethodCallExpression[@FullMethodName='tffa.Interaction.close'])
|
|
192
192
|
)
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
./ModifierNode/Annotation[@Image = 'RemoteAction']
|
|
215
215
|
and
|
|
216
216
|
(
|
|
217
|
-
|
|
217
|
+
not(.//Parameter[1][@Type='tffa.Context' and @Image ='ctx'])
|
|
218
218
|
)
|
|
219
219
|
]
|
|
220
220
|
]]>
|
|
@@ -12,6 +12,7 @@ const metadata_scan_1 = tslib_1.__importDefault(require("../../services/lint/met
|
|
|
12
12
|
const apex_pmd_1 = tslib_1.__importDefault(require("../../services/lint/apex-pmd"));
|
|
13
13
|
const constants_1 = require("../../utils/constants");
|
|
14
14
|
const eslint_scan_1 = tslib_1.__importDefault(require("../../services/lint/eslint-scan"));
|
|
15
|
+
const stylelint_scan_1 = tslib_1.__importDefault(require("../../services/lint/stylelint-scan"));
|
|
15
16
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
17
|
const messages = core_1.Messages.loadMessages('@terafina/tffa-sfdx-plugin', 'lint');
|
|
17
18
|
class Lint extends command_1.SfdxCommand {
|
|
@@ -35,6 +36,8 @@ class Lint extends command_1.SfdxCommand {
|
|
|
35
36
|
violations.push(...mViolations);
|
|
36
37
|
mViolations = await new eslint_scan_1.default().scan(this.flags.sourcefolder);
|
|
37
38
|
violations.push(...mViolations);
|
|
39
|
+
mViolations = await new stylelint_scan_1.default().scan(this.flags.sourcefolder);
|
|
40
|
+
violations.push(...mViolations);
|
|
38
41
|
this.printViolations(this.flags.json, violations, this.flags.level);
|
|
39
42
|
}
|
|
40
43
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../../../src/commands/tffa/lint.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,iDAAyD;AACzD,2CAAyD;AACzD,kGAAgE;AAChE,sFAAqD;AACrD,8FAA6D;AAC7D,oFAAmD;AACnD,qDAAkD;AAClD,0FAAyD;
|
|
1
|
+
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../../../src/commands/tffa/lint.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,iDAAyD;AACzD,2CAAyD;AACzD,kGAAgE;AAChE,sFAAqD;AACrD,8FAA6D;AAC7D,oFAAmD;AACnD,qDAAkD;AAClD,0FAAyD;AACzD,gGAA+D;AAE/D,eAAQ,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5EH,uBA6EC;AA5Ee,gBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AACxD,aAAQ,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,gBAAW,GAAG;IAC7B,YAAY,EAAE,eAAK,CAAC,SAAS,CAAC;QAC5B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC3D,OAAO,EAAE,GAAG;KACb,CAAC;IACF,MAAM,EAAE,eAAK,CAAC,OAAO,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;QAC7D,OAAO,EAAE,qBAAS,CAAC,WAAW;KAC/B,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,sBAAsB;KACpC,CAAC;IACF,WAAW,EAAE,eAAK,CAAC,QAAQ,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,qBAAqB;KACnC,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,0BAA0B;KACxC,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,4BAA4B;KAC1C,CAAC;CACH,CAAC"}
|
|
@@ -119,7 +119,7 @@ class EslintScan {
|
|
|
119
119
|
label: '[SUPPRESSED] ' + v.ruleId,
|
|
120
120
|
message: 'Do Not Supress ' + v.message + ' Please fix it.',
|
|
121
121
|
category: 'ESLINT',
|
|
122
|
-
level:
|
|
122
|
+
level: 'WARN',
|
|
123
123
|
exceptions: [fileRelPath + '#' + v.line]
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-scan.js","sourceRoot":"","sources":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AiB,GAAG,CAAC,CAAC,OAAO,GAAG,iBAAiB;4BAC1D,QAAQ,EAAE,QAAQ;4BAClB,KAAK,EAAE,MAAM;4BACb,UAAU,EAAE,CAAC,WAAW,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;yBACzC,CAAC;qBACH;yBAAM;wBACL,CAAC,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;qBAC9D;oBACD,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;iBAC1B;aACF;SACF;QACD,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC;QAE/C,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAjID,6BAiIC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Logger } from '@salesforce/core';
|
|
2
|
+
/**
|
|
3
|
+
* Linter executes the stylelint command
|
|
4
|
+
*/
|
|
5
|
+
export default class StylelintScan {
|
|
6
|
+
ignoreFiles: any[];
|
|
7
|
+
logger: Logger;
|
|
8
|
+
paths: string[];
|
|
9
|
+
eject(sourceFolder: string): Promise<unknown[]>;
|
|
10
|
+
scan(sourceFolder: string): Promise<any[]>;
|
|
11
|
+
private executeCmd;
|
|
12
|
+
private parseProblems;
|
|
13
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) NCR Terafina
|
|
6
|
+
**/
|
|
7
|
+
const ChildProcess = tslib_1.__importStar(require("child_process"));
|
|
8
|
+
const path = tslib_1.__importStar(require("path"));
|
|
9
|
+
const core_1 = require("@salesforce/core");
|
|
10
|
+
const ignored_files_1 = tslib_1.__importDefault(require("../../utils/ignored-files"));
|
|
11
|
+
/**
|
|
12
|
+
* Linter executes the stylelint command
|
|
13
|
+
*/
|
|
14
|
+
class StylelintScan {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.ignoreFiles = [];
|
|
17
|
+
this.paths = ['"ui/**/*.scss"'];
|
|
18
|
+
}
|
|
19
|
+
async eject(sourceFolder) {
|
|
20
|
+
this.logger.warn(sourceFolder);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
async scan(sourceFolder) {
|
|
24
|
+
this.logger = await core_1.Logger.root();
|
|
25
|
+
this.ignoreFiles.push(...ignored_files_1.default.files);
|
|
26
|
+
this.logger.debug(this.ignoreFiles);
|
|
27
|
+
try {
|
|
28
|
+
const data = await this.executeCmd(sourceFolder);
|
|
29
|
+
const violations = this.parseProblems(data, sourceFolder);
|
|
30
|
+
return violations;
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
console.error(err);
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async executeCmd(sourceFolder) {
|
|
38
|
+
const commandBufferSize = 64;
|
|
39
|
+
const stylelintBinPath = path.join('node_modules', '.bin', 'stylelint');
|
|
40
|
+
const configPath = path.join('scripts', 'stylelint', '.stylelintrc.json');
|
|
41
|
+
const rulesetsArg = this.paths.join(' ');
|
|
42
|
+
const cmd = `"${stylelintBinPath}" ${rulesetsArg} --config ${configPath} -f json`;
|
|
43
|
+
this.logger.info('stylelint Command: ' + cmd);
|
|
44
|
+
const stylelintCmd = ChildProcess.exec(cmd, {
|
|
45
|
+
cwd: sourceFolder,
|
|
46
|
+
maxBuffer: Math.max(commandBufferSize, 1) * 1024 * 1024
|
|
47
|
+
});
|
|
48
|
+
let stdout = '';
|
|
49
|
+
let stderr = '';
|
|
50
|
+
const stylelintPromise = new Promise((resolve, reject) => {
|
|
51
|
+
stylelintCmd.addListener('error', e => {
|
|
52
|
+
this.logger.error('error:' + e);
|
|
53
|
+
reject(e);
|
|
54
|
+
});
|
|
55
|
+
stylelintCmd.addListener('exit', e => {
|
|
56
|
+
if (e !== 0 && e !== 4 && e !== 2) {
|
|
57
|
+
this.logger.error(`Failed Exit Code: ${e}` + stderr);
|
|
58
|
+
reject(stderr);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
resolve(stdout);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
stylelintCmd.stdout.on('data', (m) => {
|
|
65
|
+
this.logger.info('stdout:' + m);
|
|
66
|
+
stdout += m;
|
|
67
|
+
});
|
|
68
|
+
stylelintCmd.stderr.on('data', (m) => {
|
|
69
|
+
this.logger.error('stderr:' + m);
|
|
70
|
+
stderr += m;
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
return stylelintPromise;
|
|
74
|
+
}
|
|
75
|
+
parseProblems(json, sourceFolder) {
|
|
76
|
+
let violations = [];
|
|
77
|
+
this.logger.debug(json);
|
|
78
|
+
if (!json) {
|
|
79
|
+
return violations;
|
|
80
|
+
}
|
|
81
|
+
const p = JSON.parse(json);
|
|
82
|
+
if (!p.length) {
|
|
83
|
+
return violations;
|
|
84
|
+
}
|
|
85
|
+
const violationMap = new Map();
|
|
86
|
+
for (const f of p) {
|
|
87
|
+
const file = f.source;
|
|
88
|
+
const filename = path.basename(file);
|
|
89
|
+
const fileRelPath = path.relative(sourceFolder, file);
|
|
90
|
+
if (this.ignoreFiles.indexOf(filename) >= 0 || this.ignoreFiles.indexOf(file) >= 0 || this.ignoreFiles.indexOf(fileRelPath) >= 0) {
|
|
91
|
+
this.logger.warn('Ignore file ' + filename);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if (f.warnings.length > 0) {
|
|
95
|
+
for (const v of f.warnings) {
|
|
96
|
+
const key = v.ruleset + '-' + v.text;
|
|
97
|
+
let o = violationMap.get(key);
|
|
98
|
+
if (!o) {
|
|
99
|
+
o = {
|
|
100
|
+
label: v.rule,
|
|
101
|
+
message: v.text,
|
|
102
|
+
category: 'STYLELINT',
|
|
103
|
+
level: v.severity === 'error' ? 'FATAL' : 'WARN',
|
|
104
|
+
exceptions: [fileRelPath + '#' + v.line]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
o.exceptions = [fileRelPath + '#' + v.line, ...o.exceptions];
|
|
109
|
+
}
|
|
110
|
+
violationMap.set(key, o);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
violations = Array.from(violationMap.values());
|
|
115
|
+
return violations;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.default = StylelintScan;
|
|
119
|
+
//# sourceMappingURL=stylelint-scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylelint-scan.js","sourceRoot":"","sources":["../../../src/services/lint/stylelint-scan.ts"],"names":[],"mappings":";;;AAAA;;IAEI;AACJ,oEAA8C;AAC9C,mDAA6B;AAC7B,2CAA0C;AAC1C,sFAAqD;AAErD;;GAEG;AACH,MAAqB,aAAa;IAAlC;QACE,gBAAW,GAAG,EAAE,CAAC;QAEjB,UAAK,GAAG,CAAC,gBAAgB,CAAC,CAAC;IA4G7B,CAAC;IA1GQ,KAAK,CAAC,KAAK,CAAC,YAAoB;QACrC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/B,OAAO;IACT,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,YAAoB;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,aAAM,CAAC,IAAI,EAAE,CAAC;QAElC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,uBAAY,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEpC,IAAI;YACF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACjD,MAAM,UAAU,GAAG,IAAI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,UAAU,CAAC,CAAC;qBAC9D;oBACD,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;iBAC1B;aACF;SACF;QACD,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC;QAE/C,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA/GD,gCA+GC"}
|
package/lib/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignored-files.js","sourceRoot":"","sources":["../../src/utils/ignored-files.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,2CAA0C;AAC1C,2BAAkC;AAClC,wDAAwB;AAExB,MAAqB,YAAY;
|
|
1
|
+
{"version":3,"file":"ignored-files.js","sourceRoot":"","sources":["../../src/utils/ignored-files.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,2CAA0C;AAC1C,2BAAkC;AAClC,wDAAwB;AAExB,MAAqB,YAAY;IA4HxB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,YAAoB;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,aAAM,CAAC,IAAI,EAAE,CAAC;QAClC,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC3C,MAAM,WAAW,GAAG,IAAA,iBAAY,EAAC,YAAY,GAAG,eAAe,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,WAAW;aACvB,QAAQ,EAAE;aACV,KAAK,CAAC,OAAO,CAAC;aACd,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;QACvD,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE;YACtB,IAAI,QAAQ,GAAG,EAAE,CAAC;YAClB,IAAI,YAAY,IAAI,YAAY,IAAI,GAAG,EAAE;gBACvC,QAAQ,GA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BAAqB;IACrB,iBAAiB;IACjB,eAAe;IACf,oBAAoB;IACpB,6BAA6B;IAC7B,yBAAyB;IACzB,oBAAoB;IACpB,kBAAkB;IAClB,gBAAgB;IAChB,kCAAkC;IAClC,oCAAoC;IACpC,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,eAAe;IACf,cAAc;IACd,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrB,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC;AAEY,oCAAuB,GAAG;IACtC,YAAY;IACZ,KAAK;IACL,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,SAAS;IACT,YAAY;IACZ,WAAW;IACX,KAAK;IACL,UAAU;IACV,WAAW;IACX,KAAK;IACL,QAAQ;IACR,OAAO;IACP,MAAM;IACN,UAAU;IACV,SAAS;IACT,gBAAgB;IAChB,cAAc;IACd,WAAW;IACX,YAAY;IACZ,SAAS;IACT,MAAM;IACN,QAAQ;IACR,SAAS;IACT,UAAU;IACV,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,KAAK;IACL,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,UAAU;IACV,UAAU;IACV,QAAQ;IACR,OAAO;IACP,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,QAAQ;IACR,SAAS;IACT,OAAO;IACP,WAAW;IACX,WAAW;IACX,SAAS;IACT,YAAY;IACZ,YAAY;CACb,CAAC;AAEY,sCAAyB,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAErD,kBAAK,GAAG,EAAE,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"15.0.0
|
|
1
|
+
{"version":"15.0.0","commands":{"tffa:apexdoc":{"id":"tffa:apexdoc","description":"Generate Apex API Documentation","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["Generate Apex API Documentation :\t$sfdx tffa:apexdoc "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destfolder":{"name":"destfolder","type":"option","char":"d","description":"directory to generate the api docs","multiple":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destfolder":{"kind":"directory","char":"d","description":"directory to generate the api docs","input":[],"multiple":false,"type":"option"}}},"tffa:lint":{"id":"tffa:lint","description":"scan a sfdx project and provide a violations report based on defined standards","strict":true,"usage":"<%= command.id %> [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$sfdx tffa:lint"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"generate json output","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"minapi":{"name":"minapi","type":"option","char":"m","description":"minimum api version to use during quality checks","multiple":false,"default":56},"rulesetpath":{"name":"rulesetpath","type":"option","char":"r","description":"path to pmd ruleset","multiple":false},"eject":{"name":"eject","type":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false},"level":{"name":"level","type":"boolean","char":"f","description":"emit fatal violations only","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"minapi":{"kind":"integer","char":"m","description":"minimum api version to use during quality checks","default":56,"input":[],"multiple":false,"type":"option"},"json":{"kind":"boolean","char":"j","description":"generate json output","allowNo":false,"type":"boolean"},"rulesetpath":{"kind":"filepath","char":"r","description":"path to pmd ruleset","input":[],"multiple":false,"type":"option"},"eject":{"kind":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false,"type":"boolean"},"level":{"kind":"boolean","char":"f","description":"emit fatal violations only","allowNo":false,"type":"boolean"}}},"tffa:meta":{"id":"tffa:meta","description":"scan a sfdx project for metadata","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["scan a sfdx project for metadata :\t$sfdx tffa:meta"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destpath":{"name":"destpath","type":"option","char":"d","description":"full path output file","multiple":false,"default":"."},"clientname":{"name":"clientname","type":"option","char":"c","description":"name of the client","multiple":false,"default":"."},"output":{"name":"output","type":"option","char":"o","description":"output format json csv human","helpValue":"(json|csv|human)","multiple":false,"options":["json","csv","human"]},"fields":{"name":"fields","type":"boolean","char":"f","description":"generate field output","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destpath":{"kind":"directory","char":"d","description":"full path output file","default":".","input":[],"multiple":false,"type":"option"},"clientname":{"kind":"directory","char":"c","description":"name of the client","default":".","input":[],"multiple":false,"type":"option"},"output":{"kind":"enum","helpValue":"(json|csv|human)","char":"o","options":["json","csv","human"],"description":"output format json csv human","input":[],"multiple":false,"type":"option"},"fields":{"kind":"boolean","char":"f","description":"generate field output","allowNo":false,"type":"boolean"}}},"tffa:ping":{"id":"tffa:ping","description":"ping and test the plugin","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:ping "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[{"name":"file"}],"flagsConfig":{}},"tffa:source:apiset":{"id":"tffa:source:apiset","description":"Upgrades the current project and all metadata to the latest API version","strict":true,"usage":"<%= command.id %> [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:source:apiset "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"api":{"name":"api","type":"option","char":"a","description":"specify the API version ","multiple":false,"default":56}},"args":[],"flagsConfig":{"help":{"kind":"help","description":"Show CLI help.","char":"h","allowNo":false,"type":"boolean"},"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"api":{"kind":"integer","char":"a","description":"specify the API version ","default":56,"input":[],"multiple":false,"type":"option"}}}}}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terafina/tffa-sfdx-plugin",
|
|
3
3
|
"description": "sfdx plugin from Terafina containing tools for scanning and extending digital applications for the financial services industry.",
|
|
4
|
-
"version": "15.0.0
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"author": "Terafina Inc",
|
|
6
6
|
"bugs": "https://github.com/terafinainc/tffa-sfdx-plugin/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "1.
|
|
9
|
-
"@oclif/plugin-help": "5.1.
|
|
10
|
-
"@oclif/plugin-plugins": "2.1.
|
|
8
|
+
"@oclif/core": "1.16.4",
|
|
9
|
+
"@oclif/plugin-help": "5.1.14",
|
|
10
|
+
"@oclif/plugin-plugins": "2.1.1",
|
|
11
11
|
"@oclif/plugin-version": "1.1.2",
|
|
12
|
-
"@oclif/plugin-warn-if-update-available": "2.0.
|
|
13
|
-
"@salesforce/command": "5.2.
|
|
14
|
-
"@salesforce/core": "
|
|
12
|
+
"@oclif/plugin-warn-if-update-available": "2.0.6",
|
|
13
|
+
"@salesforce/command": "5.2.10",
|
|
14
|
+
"@salesforce/core": "3.30.9",
|
|
15
15
|
"find-java-home": "1.2.2",
|
|
16
16
|
"cheerio": "1.0.0-rc.12",
|
|
17
17
|
"csv-stringify": "6.2.0",
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"replace-in-file": "6.3.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@commitlint/cli": "17.
|
|
29
|
-
"@commitlint/config-angular": "17.0
|
|
30
|
-
"@oclif/test": "2.
|
|
28
|
+
"@commitlint/cli": "17.1.2",
|
|
29
|
+
"@commitlint/config-angular": "17.1.0",
|
|
30
|
+
"@oclif/test": "2.2.0",
|
|
31
31
|
"@salesforce/dev-config": "3.1.0",
|
|
32
|
-
"@salesforce/ts-sinon": "1.
|
|
32
|
+
"@salesforce/ts-sinon": "1.4.0",
|
|
33
33
|
"@types/chai": "4",
|
|
34
34
|
"@types/cheerio": "0.22.31",
|
|
35
35
|
"@types/fs-extra": "9.0.13",
|
|
36
36
|
"@types/js-yaml": "4.0.5",
|
|
37
|
-
"@types/mocha": "
|
|
38
|
-
"@types/node": "18.7.
|
|
37
|
+
"@types/mocha": "10.0.0",
|
|
38
|
+
"@types/node": "18.7.23",
|
|
39
39
|
"@types/recursive-readdir": "2.2.1",
|
|
40
40
|
"@types/xml2js": "0.4.11",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
42
|
-
"@typescript-eslint/parser": "5.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "5.38.1",
|
|
42
|
+
"@typescript-eslint/parser": "5.38.1",
|
|
43
43
|
"chai": "4",
|
|
44
|
-
"eslint": "8.
|
|
44
|
+
"eslint": "8.24.0",
|
|
45
45
|
"eslint-config-prettier": "8.5.0",
|
|
46
46
|
"eslint-plugin-deprecation": "1.3.2",
|
|
47
47
|
"eslint-plugin-header": "3.1.1",
|
|
48
48
|
"eslint-plugin-import": "2.26.0",
|
|
49
|
-
"eslint-plugin-jest": "
|
|
49
|
+
"eslint-plugin-jest": "27.0.4",
|
|
50
50
|
"eslint-plugin-jsdoc": "39.3.6",
|
|
51
51
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
52
52
|
"eslint-plugin-sonarjs": "0.15.0",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"mem-fs-editor": "9.5.0",
|
|
58
58
|
"mocha": "10.0.0",
|
|
59
59
|
"nyc": "15.1.0",
|
|
60
|
-
"oclif": "3.
|
|
60
|
+
"oclif": "3.2.6",
|
|
61
61
|
"prettier": "2.7.1",
|
|
62
62
|
"prettier-plugin-apex": "1.10.0",
|
|
63
63
|
"properties-parser": "0.3.1",
|
|
64
64
|
"properties-reader": "2.2.0",
|
|
65
65
|
"standard-version": "9.5.0",
|
|
66
66
|
"ts-node": "10",
|
|
67
|
-
"typescript": "4.
|
|
67
|
+
"typescript": "4.8.4",
|
|
68
68
|
"yargs": "17.5.1"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
|
-
"node": ">=
|
|
71
|
+
"node": ">=16.0.0"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"/lib",
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
"/bin",
|
|
77
77
|
"/messages",
|
|
78
78
|
"/npm-shrinkwrap.json",
|
|
79
|
+
"/yarn.lock",
|
|
80
|
+
"/package-lock.json",
|
|
79
81
|
"/oclif.manifest.json"
|
|
80
82
|
],
|
|
81
83
|
"homepage": "https://bitbucket.org/terafina/tffa-sfdx-plugin",
|
|
@@ -113,14 +115,14 @@
|
|
|
113
115
|
"version": "oclif readme && git add README.md",
|
|
114
116
|
"publish": "git push --follow-tags origin develop && npm run package && npm publish terafina-tffa-sfdx-plugin-$npm_package_version.tgz && npm dist-tag add @terafina/tffa-sfdx-plugin@$npm_package_version r$npm_config_tffa_version",
|
|
115
117
|
"publish_rc": "git push --follow-tags origin develop && npm run package && npm publish --tag next terafina-tffa-sfdx-plugin-$npm_package_version.tgz && npm dist-tag add @terafina/tffa-sfdx-plugin@$npm_package_version r$npm_config_tffa_version",
|
|
116
|
-
"package": "npm pack
|
|
118
|
+
"package": "npm pack",
|
|
117
119
|
"release": "standard-version --commit-all",
|
|
118
120
|
"release_rc": "npm run release -- --prerelease rc",
|
|
119
121
|
"release_patch": "npm run release -- --release-as patch",
|
|
120
122
|
"release_minor": "npm run release -- --release-as minor",
|
|
121
123
|
"release_major": "npm run release -- --release-as major",
|
|
122
124
|
"release_major_rc": "npm run release -- --release-as major --prerelease rc",
|
|
123
|
-
"update-dependencies": "ncu -u && git add . && git commit -m 'chore(deps): update dependencies'",
|
|
125
|
+
"update-dependencies": "ncu -u && yarn install && git add . && git commit -m 'chore(deps): update dependencies'",
|
|
124
126
|
"prepare": "husky install"
|
|
125
127
|
},
|
|
126
128
|
"standard-version": {
|