From 225becda5e6413f9ccbff642892fdf2254b46fe2 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 22 Sep 2023 11:18:58 +0200 Subject: [PATCH] feat(secrets): enable rule and report `warn` Related to https://github.com/camunda/camunda-modeler/issues/3834 --- index.js | 3 ++- test/camunda-cloud/integration/secrets.spec.js | 6 ++---- test/config/configs.spec.js | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 865eacea..4d079a1e 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ const camundaCloud12Rules = withConfig(camundaCloud11Rules, { version: '1.2' }); const camundaCloud13Rules = withConfig(camundaCloud12Rules, { version: '1.3' }); const camundaCloud80Rules = withConfig({ - ...omit(camundaCloud13Rules, 'no-template') + ...omit(camundaCloud13Rules, 'no-template'), }, { version: '8.0' }); const camundaCloud81Rules = withConfig({ @@ -59,6 +59,7 @@ const camundaCloud83Rules = withConfig({ ...omit(camundaCloud82Rules, [ 'start-form' ]), + 'secrets': 'warn', 'signal-reference': 'error' }, { version: '8.3' }); diff --git a/test/camunda-cloud/integration/secrets.spec.js b/test/camunda-cloud/integration/secrets.spec.js index 9fe5bdd7..6faa09be 100644 --- a/test/camunda-cloud/integration/secrets.spec.js +++ b/test/camunda-cloud/integration/secrets.spec.js @@ -7,12 +7,10 @@ const NodeResolver = require('bpmnlint/lib/resolver/node-resolver'); const { readModdle } = require('../../helper'); const versions = [ - '8.0', - '8.1', - '8.2' + '8.3' ]; -describe.skip('integration - secrets', function() { +describe('integration - secrets', function() { versions.forEach(function(version) { diff --git a/test/config/configs.spec.js b/test/config/configs.spec.js index 283effb2..74ac949b 100644 --- a/test/config/configs.spec.js +++ b/test/config/configs.spec.js @@ -219,6 +219,7 @@ describe('configs', function() { 'no-loop': [ 'error', { version: '8.3' } ], 'no-multiple-none-start-events' : [ 'error', { version: '8.3' } ], 'no-signal-event-sub-process': [ 'error', { version: '8.3' } ], + 'secrets': [ 'warn', { version: '8.3' } ], 'sequence-flow-condition': [ 'error', { version: '8.3' } ], 'signal-reference': [ 'error', { version: '8.3' } ], 'subscription': [ 'error', { version: '8.3' } ],