bpmnlint-plugin-camunda-compat 2.0.0 → 2.1.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/index.js +39 -29
- package/package.json +1 -1
- package/rules/utils/iso8601.js +3 -2
package/index.js
CHANGED
@@ -66,6 +66,36 @@ const camundaPlatform720Rules = withConfig(camundaPlatform719Rules, {
|
|
66
66
|
version: '7.20'
|
67
67
|
});
|
68
68
|
|
69
|
+
const rules = {
|
70
|
+
'element-type': './rules/camunda-cloud/element-type',
|
71
|
+
'called-element': './rules/camunda-cloud/called-element',
|
72
|
+
'collapsed-subprocess': './rules/camunda-cloud/collapsed-subprocess',
|
73
|
+
'duplicate-task-headers': './rules/camunda-cloud/duplicate-task-headers',
|
74
|
+
'error-reference': './rules/camunda-cloud/error-reference',
|
75
|
+
'escalation-reference': './rules/camunda-cloud/escalation-reference',
|
76
|
+
'event-based-gateway-target': './rules/camunda-cloud/event-based-gateway-target',
|
77
|
+
'executable-process': './rules/camunda-cloud/executable-process',
|
78
|
+
'feel': './rules/camunda-cloud/feel',
|
79
|
+
'history-time-to-live': './rules/camunda-platform/history-time-to-live',
|
80
|
+
'implementation': './rules/camunda-cloud/implementation',
|
81
|
+
'inclusive-gateway': './rules/camunda-cloud/inclusive-gateway',
|
82
|
+
'loop-characteristics': './rules/camunda-cloud/loop-characteristics',
|
83
|
+
'message-reference': './rules/camunda-cloud/message-reference',
|
84
|
+
'no-candidate-users': './rules/camunda-cloud/no-candidate-users',
|
85
|
+
'no-expression': './rules/camunda-cloud/no-expression',
|
86
|
+
'no-multiple-none-start-events': './rules/camunda-cloud/no-multiple-none-start-events',
|
87
|
+
'no-signal-event-sub-process': './rules/camunda-cloud/no-signal-event-sub-process',
|
88
|
+
'no-task-schedule': './rules/camunda-cloud/no-task-schedule',
|
89
|
+
'no-template': './rules/camunda-cloud/no-template',
|
90
|
+
'no-zeebe-properties': './rules/camunda-cloud/no-zeebe-properties',
|
91
|
+
'sequence-flow-condition': './rules/camunda-cloud/sequence-flow-condition',
|
92
|
+
'signal-reference': './rules/camunda-cloud/signal-reference',
|
93
|
+
'subscription': './rules/camunda-cloud/subscription',
|
94
|
+
'task-schedule': './rules/camunda-cloud/task-schedule',
|
95
|
+
'timer': './rules/camunda-cloud/timer',
|
96
|
+
'user-task-form': './rules/camunda-cloud/user-task-form'
|
97
|
+
};
|
98
|
+
|
69
99
|
module.exports = {
|
70
100
|
configs: {
|
71
101
|
'camunda-cloud-1-0': {
|
@@ -97,37 +127,17 @@ module.exports = {
|
|
97
127
|
},
|
98
128
|
'camunda-platform-7-20': {
|
99
129
|
rules: camundaPlatform720Rules
|
130
|
+
},
|
131
|
+
'all': {
|
132
|
+
rules: Object.keys(rules).reduce((allRules, rule) => {
|
133
|
+
return {
|
134
|
+
...allRules,
|
135
|
+
[ rule ]: 'error'
|
136
|
+
};
|
137
|
+
}, {})
|
100
138
|
}
|
101
139
|
},
|
102
|
-
rules
|
103
|
-
'element-type': './rules/camunda-cloud/element-type',
|
104
|
-
'called-element': './rules/camunda-cloud/called-element',
|
105
|
-
'collapsed-subprocess': './rules/camunda-cloud/collapsed-subprocess',
|
106
|
-
'duplicate-task-headers': './rules/camunda-cloud/duplicate-task-headers',
|
107
|
-
'error-reference': './rules/camunda-cloud/error-reference',
|
108
|
-
'escalation-reference': './rules/camunda-cloud/escalation-reference',
|
109
|
-
'event-based-gateway-target': './rules/camunda-cloud/event-based-gateway-target',
|
110
|
-
'executable-process': './rules/camunda-cloud/executable-process',
|
111
|
-
'feel': './rules/camunda-cloud/feel',
|
112
|
-
'history-time-to-live': './rules/camunda-platform/history-time-to-live',
|
113
|
-
'implementation': './rules/camunda-cloud/implementation',
|
114
|
-
'inclusive-gateway': './rules/camunda-cloud/inclusive-gateway',
|
115
|
-
'loop-characteristics': './rules/camunda-cloud/loop-characteristics',
|
116
|
-
'message-reference': './rules/camunda-cloud/message-reference',
|
117
|
-
'no-candidate-users': './rules/camunda-cloud/no-candidate-users',
|
118
|
-
'no-expression': './rules/camunda-cloud/no-expression',
|
119
|
-
'no-multiple-none-start-events': './rules/camunda-cloud/no-multiple-none-start-events',
|
120
|
-
'no-signal-event-sub-process': './rules/camunda-cloud/no-signal-event-sub-process',
|
121
|
-
'no-task-schedule': './rules/camunda-cloud/no-task-schedule',
|
122
|
-
'no-template': './rules/camunda-cloud/no-template',
|
123
|
-
'no-zeebe-properties': './rules/camunda-cloud/no-zeebe-properties',
|
124
|
-
'sequence-flow-condition': './rules/camunda-cloud/sequence-flow-condition',
|
125
|
-
'signal-reference': './rules/camunda-cloud/signal-reference',
|
126
|
-
'subscription': './rules/camunda-cloud/subscription',
|
127
|
-
'task-schedule': './rules/camunda-cloud/task-schedule',
|
128
|
-
'timer': './rules/camunda-cloud/timer',
|
129
|
-
'user-task-form': './rules/camunda-cloud/user-task-form'
|
130
|
-
}
|
140
|
+
rules
|
131
141
|
};
|
132
142
|
|
133
143
|
function withConfig(rules, config, type = 'error') {
|
package/package.json
CHANGED
package/rules/utils/iso8601.js
CHANGED
@@ -8,10 +8,11 @@ const SECOND = '[0-5][0-9]';
|
|
8
8
|
const ZONE_ID = '(\\[[^\\]]+\\])';
|
9
9
|
const TIMEZONE = `(Z|([+-](0[0-9]|1[0-3]):[0-5][0-9]${ZONE_ID}?))`;
|
10
10
|
|
11
|
-
const
|
11
|
+
const ISO_DATE = `${DATE}T${HOUR}:${MINUTE}:${SECOND}${TIMEZONE}`;
|
12
|
+
const ISO_DATE_REGEX = new RegExp(`^${ISO_DATE}$`);
|
12
13
|
const ISO_DURATION = 'P(?!$)(\\d+(\\.\\d+)?[Yy])?(\\d+(\\.\\d+)?[Mm])?(\\d+(\\.\\d+)?[Ww])?(\\d+(\\.\\d+)?[Dd])?(T(?!$)(\\d+(\\.\\d+)?[Hh])?(\\d+(\\.\\d+)?[Mm])?(\\d+(\\.\\d+)?[Ss])?)?$';
|
13
14
|
const ISO_DURATION_REGEX = new RegExp(`^${ISO_DURATION}$`);
|
14
|
-
const ISO_CYCLE = `R(-1|\\d+)
|
15
|
+
const ISO_CYCLE = `R(-1|\\d+)?/(${ISO_DATE}/)?${ISO_DURATION}`;
|
15
16
|
const ISO_CYCLE_REGEX = new RegExp(`^${ISO_CYCLE}$`);
|
16
17
|
|
17
18
|
module.exports = {
|