diff --git a/force-app/main/default/objects/Log__e/Log__e.object-meta.xml b/force-app/main/default/objects/Log__e/Log__e.object-meta.xml new file mode 100644 index 0000000..c2b6ce9 --- /dev/null +++ b/force-app/main/default/objects/Log__e/Log__e.object-meta.xml @@ -0,0 +1,8 @@ + + + Deployed + HighVolume + + Logs + PublishImmediately + diff --git a/force-app/main/default/objects/Log__e/fields/Data__c.field-meta.xml b/force-app/main/default/objects/Log__e/fields/Data__c.field-meta.xml new file mode 100644 index 0000000..ab0851f --- /dev/null +++ b/force-app/main/default/objects/Log__e/fields/Data__c.field-meta.xml @@ -0,0 +1,12 @@ + + + Data__c + false + false + false + false + + 131072 + LongTextArea + 3 + diff --git a/src/commands/metalint/run.ts b/src/commands/metalint/run.ts index 756dd3a..af72c4b 100644 --- a/src/commands/metalint/run.ts +++ b/src/commands/metalint/run.ts @@ -1,5 +1,5 @@ -import { pathToFileURL } from 'node:url'; -// import * as path from 'node:path'; +// import { pathToFileURL } from 'node:url'; +import * as path from 'node:path'; import { SarifBuilder, SarifRunBuilder, SarifResultBuilder, SarifRuleBuilder } from 'node-sarif-builder'; import { SfCommand, Flags } from '@salesforce/sf-plugins-core'; import { Messages } from '@salesforce/core'; @@ -65,7 +65,8 @@ export default class MetalintRun extends SfCommand { ruleId: 'fields-must-have-descriptions', messageText: 'Field is missing a description', level: 'error' as const, - fileUri: pathToFileURL(field).toString(), + // fileUri: pathToFileURL(field).toString(), + fileUri: path.relative(process.cwd(), field).replace(/\\/g, '/'), }; sarifResultBuilder.initSimple(sarifResultInit);