@terafina/tffa-sfdx-plugin 17.0.0-rc.9 → 18.0.0-rc.1

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.
Files changed (74) hide show
  1. package/README.md +91 -151
  2. package/lib/commands/tffa/apexdoc.js +1 -1
  3. package/lib/commands/tffa/apexdoc.js.map +1 -1
  4. package/lib/commands/tffa/data/export.js +46 -16
  5. package/lib/commands/tffa/data/export.js.map +1 -1
  6. package/lib/commands/tffa/data/import.js +42 -22
  7. package/lib/commands/tffa/data/import.js.map +1 -1
  8. package/lib/commands/tffa/lint.js +1 -1
  9. package/lib/commands/tffa/lint.js.map +1 -1
  10. package/lib/commands/tffa/meta.js +13 -12
  11. package/lib/commands/tffa/meta.js.map +1 -1
  12. package/lib/commands/tffa/ping.js +5 -7
  13. package/lib/commands/tffa/ping.js.map +1 -1
  14. package/lib/commands/tffa/source/apiset.js +14 -14
  15. package/lib/commands/tffa/source/apiset.js.map +1 -1
  16. package/lib/commands/tffa/source/createfield.js +43 -31
  17. package/lib/commands/tffa/source/createfield.js.map +1 -1
  18. package/lib/services/lint/rules.js +1 -1
  19. package/lib/services/lint/rules.js.map +1 -1
  20. package/lib/utils/constants.js +2 -2
  21. package/lib/utils/constants.js.map +1 -1
  22. package/lib/utils/ignored-files.js +1 -1
  23. package/lib/utils/ignored-files.js.map +1 -1
  24. package/messages/dataExport.js +2 -2
  25. package/oclif.manifest.json +62 -479
  26. package/package.json +36 -32
  27. package/lib/commands/tffa/apexdoc.d.ts +0 -31
  28. package/lib/commands/tffa/data/export.d.ts +0 -71
  29. package/lib/commands/tffa/data/import.d.ts +0 -69
  30. package/lib/commands/tffa/lint.d.ts +0 -22
  31. package/lib/commands/tffa/meta.d.ts +0 -16
  32. package/lib/commands/tffa/ping.d.ts +0 -14
  33. package/lib/commands/tffa/source/apiset.d.ts +0 -11
  34. package/lib/commands/tffa/source/createfield.d.ts +0 -41
  35. package/lib/index.d.ts +0 -5
  36. package/lib/services/apexdoc/common/apex-docs-error.d.ts +0 -23
  37. package/lib/services/apexdoc/common/array-utils.d.ts +0 -9
  38. package/lib/services/apexdoc/common/line-reader.d.ts +0 -40
  39. package/lib/services/apexdoc/common/models/apex-model.d.ts +0 -51
  40. package/lib/services/apexdoc/common/models/class-group.d.ts +0 -10
  41. package/lib/services/apexdoc/common/models/class-model.d.ts +0 -41
  42. package/lib/services/apexdoc/common/models/engine-config.d.ts +0 -23
  43. package/lib/services/apexdoc/common/models/enum-model.d.ts +0 -15
  44. package/lib/services/apexdoc/common/models/index.d.ts +0 -10
  45. package/lib/services/apexdoc/common/models/method-model.d.ts +0 -26
  46. package/lib/services/apexdoc/common/models/property-model.d.ts +0 -12
  47. package/lib/services/apexdoc/common/models/top-level-model.d.ts +0 -19
  48. package/lib/services/apexdoc/common/settings.d.ts +0 -56
  49. package/lib/services/apexdoc/common/tags.d.ts +0 -22
  50. package/lib/services/apexdoc/common/utils.d.ts +0 -39
  51. package/lib/services/apexdoc/common/validator-engine.d.ts +0 -23
  52. package/lib/services/apexdoc/common/validator.d.ts +0 -16
  53. package/lib/services/apexdoc/engine/file-manager.d.ts +0 -52
  54. package/lib/services/apexdoc/engine/generators/generator-utils.d.ts +0 -12
  55. package/lib/services/apexdoc/engine/generators/menu-generator.d.ts +0 -9
  56. package/lib/services/apexdoc/engine/generators/models/child-enum-markup-generator.d.ts +0 -10
  57. package/lib/services/apexdoc/engine/generators/models/class-markup-generator.d.ts +0 -8
  58. package/lib/services/apexdoc/engine/generators/models/enum-markup-generator.d.ts +0 -9
  59. package/lib/services/apexdoc/engine/generators/models/markup-generator.d.ts +0 -27
  60. package/lib/services/apexdoc/engine/generators/models/method-markup-generator.d.ts +0 -22
  61. package/lib/services/apexdoc/engine/generators/models/property-markup-generator.d.ts +0 -11
  62. package/lib/services/apexdoc/engine/generators/models/source-markup-generator.d.ts +0 -10
  63. package/lib/services/apexdoc/engine/generators/models/top-level-markup-generator.d.ts +0 -10
  64. package/lib/services/apexdoc/engine/generators/see-link-generator.d.ts +0 -20
  65. package/lib/services/lint/apex-class-scan.d.ts +0 -31
  66. package/lib/services/lint/apex-pmd.d.ts +0 -10
  67. package/lib/services/lint/eslint-scan.d.ts +0 -13
  68. package/lib/services/lint/metadata-scan.d.ts +0 -30
  69. package/lib/services/lint/rules.d.ts +0 -10
  70. package/lib/services/lint/stylelint-scan.d.ts +0 -13
  71. package/lib/services/meta/field-scan.d.ts +0 -23
  72. package/lib/utils/constants.d.ts +0 -9
  73. package/lib/utils/ignored-files.d.ts +0 -18
  74. package/lib/utils/jreSetupManager.d.ts +0 -17
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { ApexModel } from './apex-model';
5
- import { Option } from '../..';
6
- declare class PropertyModel extends ApexModel {
7
- constructor(comments: string[], nameLine: string, lineNum: number, sourceUrl: Option<string>);
8
- get name(): string;
9
- get type(): string;
10
- protected setNameLine(nameLine: string, lineNum: number): void;
11
- }
12
- export { PropertyModel };
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { ApexModel } from './apex-model';
5
- import { Option } from '../..';
6
- export declare enum ModelType {
7
- CLASS = 0,
8
- ENUM = 1
9
- }
10
- declare abstract class TopLevelModel extends ApexModel {
11
- protected _modelType: ModelType;
12
- constructor(comments: string[], modelType: ModelType, sourceUrl: Option<string>);
13
- abstract get groupName(): string;
14
- get author(): string;
15
- get since(): string;
16
- get groupContentPath(): string;
17
- get modelType(): ModelType;
18
- }
19
- export { TopLevelModel };
@@ -1,56 +0,0 @@
1
- import { IDocblockConfig, IEngineConfig } from '..';
2
- export declare enum Feature {
3
- ENGINE = 0,
4
- DOC_BLOCK = 1
5
- }
6
- declare class Settings {
7
- private static projectRoot;
8
- static config: IEngineConfig;
9
- static readonly SCOPES: string[];
10
- static readonly GROUPS: string[];
11
- static readonly ORDER_ALPHA: string;
12
- static readonly ORDER_LOGICAL: string;
13
- static readonly CLASS: string;
14
- static readonly ENUM: string;
15
- static readonly INTERFACE: string;
16
- static readonly DOC_BLOCK_BREAK: string;
17
- static readonly COMMENT_CLOSE: string;
18
- static readonly COMMENT_OPEN: string;
19
- /**
20
- * Note that casting user provided configs as ApexDox configs
21
- * can potentially result in run-time errors. The onus is on
22
- * the user to ensure the correct shape of their config files,
23
- * however, the app should fail loudly and gracefully if the
24
- * user provides an invalid config.
25
- */
26
- private static getRcFile;
27
- /**
28
- * Get user's ApexDox config and set defaults where needed.
29
- * Order of preference for config files is listed below. If more than one
30
- * config file is present, this is the order that will be honored by ApexDox.
31
- *
32
- * 3. .apexdoxrc
33
- *
34
- */
35
- static getConfig<T extends IEngineConfig | IDocblockConfig>(type: Feature, sourceFolder: string, destfolder: string): T;
36
- /**
37
- * Source and Target Dir default settings are dynamic and determined at runtime. If user
38
- * omits these settings or provides invalid values, overwrite with default settings.
39
- * @param config The `IEngineConfig` instance fetched from the user's settings.json or .apexdoxrc file.
40
- */
41
- private static setEngineDirectoryDefaults;
42
- /**
43
- * Get the default source directory based on the type of project.
44
- *
45
- * @param projectRoot The workspace's root folder.
46
- */
47
- private static getDefaultDir;
48
- /**
49
- * Determine with reasonable certainty whether this is a DX project or not.
50
- * This will help us determine what the default source directory should be.
51
- *
52
- * @param projectRoot The workspace's root folder.
53
- */
54
- private static isDX;
55
- }
56
- export default Settings;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { IApexDoxTag } from '..';
5
- export declare const AUTHOR: IApexDoxTag;
6
- export declare const SINCE: IApexDoxTag;
7
- export declare const DEPRECATED: IApexDoxTag;
8
- export declare const DESCRIPTION: IApexDoxTag;
9
- export declare const EXAMPLE: IApexDoxTag;
10
- export declare const EXCEPTION: IApexDoxTag;
11
- export declare const GROUP: IApexDoxTag;
12
- export declare const TAGS: IApexDoxTag;
13
- export declare const GROUP_CONTENT: IApexDoxTag;
14
- export declare const PARAM: IApexDoxTag;
15
- export declare const QUERYPARAM: IApexDoxTag;
16
- export declare const RETURN: IApexDoxTag;
17
- export declare const RETURNS: IApexDoxTag;
18
- export declare const SEE: IApexDoxTag;
19
- export declare const APIPATH: IApexDoxTag;
20
- export declare const APIMETHOD: IApexDoxTag;
21
- export declare const REQUESTHEADER: IApexDoxTag;
22
- export declare const RESPONSEHEADER: IApexDoxTag;
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { ClassModel } from './models/class-model';
5
- import { Option } from '..';
6
- declare class Utils {
7
- private static readonly PRIVATE;
8
- private static readonly TEST_METHOD;
9
- private static COLLECTIONS;
10
- private static KEYWORDS;
11
- static isClassOrInterface(line: string): boolean;
12
- static isEnum(line: string): boolean;
13
- static stripAnnotations(line: string): string;
14
- /**
15
- * Helper method to determine if a line being parsed should be skipped.
16
- * Ignore lines not dealing with scope unless they start with the certain keywords:
17
- * We do not want to skip @isTest classes, inner classes, inner interfaces, or inner
18
- * enums defined without without explicit access modifiers. These are assumed to be
19
- * private. Also, interface methods don't have scope, so don't skip those lines either.
20
- */
21
- static shouldSkipLine(line: string, cModel?: ClassModel): boolean;
22
- /** Can match some implicitly private methods, but not all! */
23
- static getScope(line: string): Option<string, void>;
24
- static previousWord(str: string, searchIdx: number): string;
25
- static countChars(str: string, char: string): number;
26
- static isURL(str: string): boolean;
27
- static resolveWorkspaceFolder(path: string): string;
28
- static resolveWorkspaceFolder2(path: string, sourceFolder: string): string;
29
- static escapeRegExp(str: string): string;
30
- static boolGuard(bool: boolean, defaultValue: boolean): boolean;
31
- /**
32
- * We use the plugin `pretty` to make the output HTML more readable. As a side effect
33
- * there is whitespace between the pre and code tags which causes unwanted space in the HTML
34
- * document. Here, we're removing that space so pre and code tags do not have space between them.
35
- * @param html The html string to make replacements on.
36
- */
37
- static preCodeTrim(html: string): string;
38
- }
39
- export default Utils;
@@ -1,23 +0,0 @@
1
- import Validator from './validator';
2
- import { IEngineConfig } from '../index';
3
- declare class ValidatorEngine extends Validator<IEngineConfig> {
4
- constructor(config: IEngineConfig);
5
- private includes;
6
- private excludes;
7
- private cleanDir;
8
- private showTOCSnippets;
9
- private subtitle;
10
- private pages;
11
- private assets;
12
- private targetDirectory;
13
- private homePagePath;
14
- private sortOrder;
15
- private title;
16
- private scope;
17
- static port(port: number): number;
18
- private static directory;
19
- private static sourceUrl;
20
- private static stringArray;
21
- private static typeGuard;
22
- }
23
- export default ValidatorEngine;
@@ -1,16 +0,0 @@
1
- declare abstract class Validator<T> {
2
- protected config: T;
3
- [key: string]: any;
4
- protected currentFields: string[];
5
- protected validFields: string[];
6
- constructor(config: T);
7
- /**
8
- * Since we're allowing rc and yaml config files (e.g. losing helpful intellisense)
9
- * we need to carefully validate configs coming in. This method will match each config
10
- * key to an instance method which validates that key. For engine configs, the 'port'
11
- * setting is the exception which will be validated only at serveDocs runtime. This
12
- * will also throw an error if any unexpected, rogue configuration settings are found.
13
- */
14
- validate(): T;
15
- }
16
- export default Validator;
@@ -1,52 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import * as Models from '../common/models';
5
- import { ISourceEntry, Option, IApexDoxMenus } from '..';
6
- declare class FileManager {
7
- private path;
8
- private projectTitle;
9
- private userAssets;
10
- constructor(targetDirectory: string, projectTitle: string, assets: string[]);
11
- /**
12
- * Collects the Apex .cls files the user has indicated they'd like to document via config settings.
13
- *
14
- * @param sources A list of `ISourceEntry` objects from where to collect our .cls files
15
- * @param includes See config settings: a list of patterns to include
16
- * @param excludes See config settings: a list of patterns to exclude
17
- */
18
- getFiles(sources: ISourceEntry[], includes: string[], excludes: string[]): ISourceEntry[];
19
- /**
20
- * Main routine that creates HTML file for each of our classes and for any additional
21
- * pages that a user has included, e.g. home page, class group, supplementary.
22
- *
23
- * @param groupNameMap Map of our class group names to their ClassGroup instances
24
- * @param models Map of our model names to their TopLevelModel instances
25
- * @param pages Any additional pages, including the project home page, the user has included
26
- */
27
- createDocs(groupNameMap: Map<string, Models.ClassGroup>, models: Map<string, Models.TopLevelModel>, pages: string[]): void;
28
- /**
29
- * Parses HTML files provided by the user, like class group pages,
30
- * and the project home page. Returns any content between
31
- * the <body> tags, or the entire markup if no <body> tags are present.
32
- * The extracted markup will be placed within the project's standard
33
- * page layout (header, menu, footer) for the final product.
34
- *
35
- * @param filePath The path of the HTML file to parse.
36
- * @returns string representing the markup or void.
37
- */
38
- parseHTMLFile(filePath: string): Option<string, void>;
39
- private makeDirs;
40
- private createHTMLFiles;
41
- private createSearchIndex;
42
- private collectApexDoxAssets;
43
- private copyAssetsToTarget;
44
- private makePage;
45
- makeMenuItems(models: Map<string, Models.TopLevelModel>): void;
46
- makeRestDefinition(models: Map<string, Models.TopLevelModel>): void;
47
- mapToObj(inputMap: Map<string, any>): unknown;
48
- makeDocumentationPages(fileMap: Map<string, string>, menus: IApexDoxMenus, models: Map<string, Models.TopLevelModel>): void;
49
- private makeSupplementaryPages;
50
- private makeClassGroupPages;
51
- }
52
- export default FileManager;
@@ -1,12 +0,0 @@
1
- import { TopLevelModel } from '../../common/models';
2
- declare class GeneratorUtils {
3
- static mapHTML<T>(arr: T[], mapClb: (val: T) => string): string;
4
- static encodeText(str: string, convertBackticksToCode?: boolean, models?: Map<string, TopLevelModel>): string;
5
- static resolveInlineLinks(str: string, models: Map<string, TopLevelModel>): string;
6
- private static wrapWithCode;
7
- static makeHead(documentTitle: string): string;
8
- static makeProjectSplash(): string;
9
- static get footer(): string;
10
- static get defaultHomePage(): string;
11
- }
12
- export default GeneratorUtils;
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import * as Models from '../../common/models';
5
- declare class MenuGenerator {
6
- static makeScopeMenu(): string;
7
- static makeMenu(classGroupMap: Map<string, Models.ClassGroup>, models: Map<string, Models.TopLevelModel>): string;
8
- }
9
- export default MenuGenerator;
@@ -1,10 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { ClassModel, EnumModel, TopLevelModel } from '../../../common/models';
3
- declare class ChildEnumMarkupGenerator extends MarkupGenerator<EnumModel> {
4
- constructor(model: EnumModel, models: Map<string, TopLevelModel>);
5
- static generate(cModel: ClassModel, models: Map<string, TopLevelModel>): string;
6
- protected static hasDescriptionColumn(headerRow: string): boolean;
7
- protected static headerRow(enums: Array<EnumModel>): string;
8
- protected enumRow(topmostTypeName: string, hasDescriptionColumn: boolean): string;
9
- }
10
- export default ChildEnumMarkupGenerator;
@@ -1,8 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { ClassModel, TopLevelModel } from '../../../common/models';
3
- declare class ClassMarkupGenerator extends MarkupGenerator<ClassModel> {
4
- protected constructor(model: ClassModel, models: Map<string, TopLevelModel>);
5
- static generate(cModel: ClassModel, models: Map<string, TopLevelModel>): string;
6
- protected header(topmostTypeName: string): string;
7
- }
8
- export default ClassMarkupGenerator;
@@ -1,9 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { EnumModel, TopLevelModel } from '../../../common/models';
3
- declare class EnumMarkupGenerator extends MarkupGenerator<EnumModel> {
4
- protected constructor(model: EnumModel, models: Map<string, TopLevelModel>);
5
- static generate(eModel: EnumModel, models: Map<string, TopLevelModel>): string;
6
- protected header(topmostTypeName: string): string;
7
- protected valuesTable(): string;
8
- }
9
- export default EnumMarkupGenerator;
@@ -1,27 +0,0 @@
1
- import { ApexModel, TopLevelModel } from '../../../common/models';
2
- /**
3
- * This class is the base markup generation class and is not instantiated directly. It
4
- * includes markup generation methods that are common to all ApexModels, and some that
5
- * are common only to TopLevelModel and MethodModel, so be careful when calling these
6
- * methods that they correctly correspond to the model you are generating markup for.
7
- */
8
- declare abstract class MarkupGenerator<T extends ApexModel> {
9
- protected model: T;
10
- protected models: Map<string, TopLevelModel>;
11
- protected constructor(model: T, models: Map<string, TopLevelModel>);
12
- protected markupTemplate(label: string, contents: string, titleClass?: string, contentClass?: string, tag?: string): string;
13
- protected annotations(className: string): string;
14
- protected deprecated(): string;
15
- protected description(className?: string, tag?: string, override?: boolean): string;
16
- protected example(): string;
17
- protected api(): string;
18
- protected see(): string;
19
- protected signature(signatureType: 'method' | 'class'): string;
20
- protected linkToSource(nameOrSignature: string, topmostTypeName: string, highlightJSify?: boolean): string;
21
- /**
22
- * Help highlight.js along, since props and enum signatures are not
23
- * recognized by highlight.js since they are not full declarations.
24
- */
25
- protected highlightSignature(nameLine: string): string;
26
- }
27
- export default MarkupGenerator;
@@ -1,22 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { ClassModel, MethodModel, TopLevelModel } from '../../../common/models';
3
- declare class MethodMarkupGenerator extends MarkupGenerator<MethodModel> {
4
- protected constructor(model: MethodModel, models: Map<string, TopLevelModel>);
5
- static generate(cModel: ClassModel, models: Map<string, TopLevelModel>): string;
6
- private static generateSection;
7
- protected markupTemplate(label: string, contents: string, titleClass?: string, contentClass?: string, tag?: string): string;
8
- protected author(): string;
9
- protected header(id: string, topmostTypeName: string): string;
10
- protected since(): string;
11
- protected exception(): string;
12
- protected params(): string;
13
- protected returns(): string;
14
- protected getTOCEntry(showTOCSnippets: boolean, id: string): string;
15
- /**
16
- * See if method ID has been used previously in this class
17
- * (must be an overloaded method or constructor) and amend
18
- * as needed to ensure all of our methods have unique IDs
19
- */
20
- protected generateMethodId(idCountMap: Map<string, number>, classModel: ClassModel): string;
21
- }
22
- export default MethodMarkupGenerator;
@@ -1,11 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { ClassModel, PropertyModel, TopLevelModel } from '../../../common/models';
3
- declare class PropertyMarkupGenerator extends MarkupGenerator<PropertyModel> {
4
- protected constructor(model: PropertyModel, models: Map<string, TopLevelModel>);
5
- static generate(cModel: ClassModel, models: Map<string, TopLevelModel>): string;
6
- protected static hasDescriptionColumn(headerRow: string): boolean;
7
- protected static hasAnnotationsColumn(headerRow: string): boolean;
8
- protected static headerRow(properties: Array<PropertyModel>): string;
9
- protected propRow(topmostTypeName: string, hasAnnotationsColumn: boolean, hasDescriptionColumn: boolean): string;
10
- }
11
- export default PropertyMarkupGenerator;
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import MarkupGenerator from './markup-generator';
5
- import { TopLevelModel } from '../../../common/models';
6
- declare class SourceMarkupGenerator extends MarkupGenerator<TopLevelModel> {
7
- protected constructor(model: TopLevelModel, models: Map<string, TopLevelModel>);
8
- static generate(model: TopLevelModel, models: Map<string, TopLevelModel>): string;
9
- }
10
- export default SourceMarkupGenerator;
@@ -1,10 +0,0 @@
1
- import MarkupGenerator from './markup-generator';
2
- import { TopLevelModel } from '../../../common/models';
3
- declare class TopLevelMarkupGenerator extends MarkupGenerator<TopLevelModel> {
4
- protected constructor(model: TopLevelModel, models: Map<string, TopLevelModel>);
5
- static generate(model: TopLevelModel, models: Map<string, TopLevelModel>, additionalContent?: string): string;
6
- protected markupTemplate(label: string, contents: string, titleClass?: string, contentClass?: string, tag?: string): string;
7
- protected author(): string;
8
- protected since(): string;
9
- }
10
- export default TopLevelMarkupGenerator;
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import * as Models from '../../common/models';
5
- declare class SeeLinkGenerator {
6
- private static isMarkdownURL;
7
- private static markdownUrlToLink;
8
- static makeLinks(models: Map<string, Models.TopLevelModel>, qualifiers: string[]): string[];
9
- /**
10
- * Search through methods for a match to the provided qualifier. If a match is made
11
- * and an overload selector is provided, continue iterating to see if that overload
12
- * exists, and match on it if it does. If it does not, report that no match is made.
13
- *
14
- * @param methods The methods to search for a match through
15
- * @param matcher The user provided qualifier to match against a method name
16
- * @param overloadSelector The user provided indicator of the method overload number
17
- */
18
- private static methodMatcher;
19
- }
20
- export default SeeLinkGenerator;
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { Logger } from '@salesforce/core';
5
- export default class ApexClassScan {
6
- dir: string;
7
- classFiles: any[];
8
- violations: any[];
9
- ignoreFiles: any[];
10
- logger: Logger;
11
- scan(sourceFolder: string): Promise<unknown[]>;
12
- scanApexClasses(sourceFolder: string): Promise<any[]>;
13
- scanApexTests(sourceFolder: string): Promise<unknown[]>;
14
- /**
15
- * test file names as per conventions
16
- */
17
- private checkFileNameConvention;
18
- private checkClassesForKeywords2;
19
- /**
20
- * test class files for filter
21
- * @param {*} keywords
22
- * @param {*} hint
23
- */
24
- private checkClassesForKeywords;
25
- /**
26
- * Using recursion, we find every file with the desired extention, even if its deeply nested in subfolders.
27
- * @param {*} dir
28
- * @param {*} ext
29
- */
30
- private getFilesInDirectory;
31
- }
@@ -1,10 +0,0 @@
1
- import { Logger } from '@salesforce/core';
2
- export default class ApexPMD {
3
- ignoreFiles: any[];
4
- logger: Logger;
5
- rules: string[];
6
- eject(sourceFolder: string): Promise<unknown[]>;
7
- scan(sourceFolder: string, rulesetpath: string): Promise<any[]>;
8
- private executeCmd;
9
- private parseProblems;
10
- }
@@ -1,13 +0,0 @@
1
- import { Logger } from '@salesforce/core';
2
- /**
3
- * Linter executes the eslint command
4
- */
5
- export default class EslintScan {
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
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { Logger } from '@salesforce/core';
5
- export default class MetadataScan {
6
- namespace: any;
7
- constructor(namespace?: string);
8
- ignoreFiles: any[];
9
- violations: unknown[];
10
- logger: Logger;
11
- apiViolations: any[];
12
- scan(sourceFolder: string, minapi: number): Promise<unknown[]>;
13
- /**
14
- * parse objects
15
- * @param {*} objpath
16
- * @param {*} clientname
17
- */
18
- private scanObjects;
19
- /**
20
- * scan api
21
- * @param sourceFolder
22
- * @param minapi
23
- */
24
- private scanAPIVersion;
25
- private scanAPIVersionByType;
26
- /**
27
- * scan json files
28
- */
29
- private scanJSONFiles;
30
- }
@@ -1,10 +0,0 @@
1
- interface Rule {
2
- category: 'INTERNAL' | 'PMD' | 'ESLINT' | 'API';
3
- label: string;
4
- message: string;
5
- level: 'WARN' | 'FATAL';
6
- }
7
- export declare class Rules {
8
- static customrules: Record<string, Rule>;
9
- }
10
- export {};
@@ -1,13 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { Logger } from '@salesforce/core';
5
- export default class FieldScan {
6
- headers: string[];
7
- records: any[];
8
- logger: Logger;
9
- scan(sourceFolder: string, destPath: string, clientname: string, output: string): Promise<void>;
10
- /**
11
- * parse objects
12
- * @param {*} objpath
13
- * @param {*} clientname
14
- */
15
- private parse;
16
- private ensureDirectoryExistence;
17
- private getObjectType;
18
- /**
19
- * write to tmp/cz/objects.csv
20
- */
21
- private writeCSV;
22
- private writeJSON;
23
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- export declare class Constants {
5
- /**
6
- * All constants
7
- */
8
- static API_VERSION: number;
9
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) NCR Terafina
3
- **/
4
- import { Logger } from '@salesforce/core';
5
- export default class IgnoredFiles {
6
- static skipObjects: string[];
7
- static skipObjectPrefixes: string;
8
- static integrationPrefixes: string;
9
- static skipProjects: string[];
10
- static skipStandardObjects: string[];
11
- static ignoreFiles: string[];
12
- static allowedClassNameListEnd: string[];
13
- static allowedClassNameListStart: string[];
14
- static files: any[];
15
- static logger: Logger;
16
- static init(sourceFolder: string): Promise<void>;
17
- getCurrentWorkingDirectory(): string;
18
- }
@@ -1,17 +0,0 @@
1
- import { AsyncCreatable } from '@salesforce/kit';
2
- export declare class JreSetupManagerDependencies {
3
- autoDetectJavaHome(): Promise<string>;
4
- }
5
- export declare class JreSetupManager extends AsyncCreatable {
6
- private logger;
7
- private dependencies;
8
- private initialized;
9
- protected init(): Promise<void>;
10
- verifyJreSetup(): Promise<string>;
11
- private findJavaHome;
12
- private findJavaHomeFromSysVariables;
13
- private autoDetectJavaHome;
14
- private verifyJavaVersion;
15
- private fetchJavaVersion;
16
- }
17
- export declare function verifyJreSetup(): Promise<string>;