@portll/cobolwork 0.2.140 → 0.2.150
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 +13 -1
- package/THIRD-PARTY-NOTICES.md +3 -2
- package/bin/cobolwork.mjs +16 -1
- package/lib/baseline.mjs +8 -6
- package/lib/bms.mjs +1 -1
- package/lib/capabilities.mjs +2 -1
- package/lib/cards.mjs +66 -0
- package/lib/compliance.mjs +6 -5
- package/lib/control.mjs +177 -5
- package/lib/dataflow.mjs +5 -4
- package/lib/diff.mjs +65 -89
- package/lib/equivalence.mjs +30 -12
- package/lib/evidence/record.mjs +3 -1
- package/lib/evidence/slsa.mjs +17 -2
- package/lib/execution.mjs +77 -0
- package/lib/explain.mjs +1 -1
- package/lib/ftp.mjs +1 -1
- package/lib/inventory.mjs +8 -9
- package/lib/jcl.mjs +3 -48
- package/lib/kernel/git.mjs +60 -0
- package/lib/kernel/identity.mjs +7 -6
- package/lib/kernel/source-tree.mjs +204 -34
- package/lib/parser.mjs +6 -4
- package/lib/revision.json +1 -1
- package/lib/sbom.mjs +33 -9
- package/lib/scan.mjs +11 -4
- package/lib/sets/build.mjs +1 -1
- package/lib/sets/cics.mjs +27 -3
- package/lib/sets/copybook.mjs +1 -1
- package/lib/sets/hidden.mjs +1 -1
- package/lib/sets/jcl.mjs +1 -1
- package/lib/sets/priv.mjs +1 -1
- package/lib/sets/recon.mjs +2 -2
- package/lib/sets/semantics.mjs +1 -1
- package/lib/sets/vendor.mjs +1 -1
- package/lib/site.mjs +17 -7
- package/lib/sources.mjs +82 -38
- package/lib/utilities.mjs +1 -1
- package/package.json +1 -1
- package/rules/compliance-cobit2019.json +2438 -0
- package/lib/card.mjs +0 -18
package/lib/card.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
-
// Where a source line's fields sit on the card. COBOL in fixed or variable reference format has a
|
|
3
|
-
// sequence area (columns 1-6), an indicator (7), program text (8-72, or 8-250 in variable format) and
|
|
4
|
-
// what follows, which the compiler ignores. A JCL or utility control statement is columns 1-72, with
|
|
5
|
-
// its sequence number after. Free-format COBOL is text from end to end.
|
|
6
|
-
|
|
7
|
-
export const TEXT_END = { fixed: 72, variable: 250 };
|
|
8
|
-
export const STATEMENT_END = 72;
|
|
9
|
-
|
|
10
|
-
export function cobolCard(line, format) {
|
|
11
|
-
const end = TEXT_END[format];
|
|
12
|
-
if (!end) return { sequence: '', indicator: '', text: line, ignored: '' };
|
|
13
|
-
return { sequence: line.slice(0, 6), indicator: line[6] || ' ', text: line.slice(7, end), ignored: line.slice(end) };
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function statementCard(line) {
|
|
17
|
-
return { text: line.slice(0, STATEMENT_END), sequence: line.slice(STATEMENT_END) };
|
|
18
|
-
}
|