@grexx/grexxlinter 0.2.367 → 0.2.418

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/cli.js CHANGED
@@ -14633,7 +14633,12 @@ function loadSchemasFromDir(dir) {
14633
14633
  for (const entry of readdirSync(d, { withFileTypes: true })) {
14634
14634
  const p = join(d, entry.name);
14635
14635
  if (entry.isDirectory()) walk(p);
14636
- else if (entry.name.endsWith(".schema.json")) out.push(JSON.parse(readFileSync(p, "utf8")));
14636
+ else if (entry.name.endsWith(".schema.json")) {
14637
+ try {
14638
+ out.push(JSON.parse(readFileSync(p, "utf8")));
14639
+ } catch {
14640
+ }
14641
+ }
14637
14642
  }
14638
14643
  };
14639
14644
  walk(dir);
@@ -15050,7 +15055,7 @@ function isLintableYaml(text) {
15050
15055
  // src/cli.ts
15051
15056
  var PARALLEL_THRESHOLD = 200;
15052
15057
  var MAX_WORKERS = 8;
15053
- var VERSION = true ? "0.2.367" : "0.0.0-dev";
15058
+ var VERSION = true ? "0.2.418" : "0.0.0-dev";
15054
15059
  function isNewer(latest, current) {
15055
15060
  const a = latest.split(".").map(Number);
15056
15061
  const b = current.split(".").map(Number);
package/lsp.js CHANGED
@@ -23689,7 +23689,12 @@ function loadSchemasFromDir(dir) {
23689
23689
  for (const entry of readdirSync(d, { withFileTypes: true })) {
23690
23690
  const p = join(d, entry.name);
23691
23691
  if (entry.isDirectory()) walk(p);
23692
- else if (entry.name.endsWith(".schema.json")) out.push(JSON.parse(readFileSync(p, "utf8")));
23692
+ else if (entry.name.endsWith(".schema.json")) {
23693
+ try {
23694
+ out.push(JSON.parse(readFileSync(p, "utf8")));
23695
+ } catch {
23696
+ }
23697
+ }
23693
23698
  }
23694
23699
  };
23695
23700
  walk(dir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grexx/grexxlinter",
3
- "version": "0.2.367",
3
+ "version": "0.2.418",
4
4
  "description": "Lint Grexx Studio casetype YAML against the studio JSON Schemas.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -97,7 +97,8 @@
97
97
  },
98
98
  "datasetColumn": {
99
99
  "attribute": [
100
- "attribute"
100
+ "attribute",
101
+ "platformAttribute"
101
102
  ],
102
103
  "baseColumn": [
103
104
  "datasetColumn"
@@ -7822,180 +7822,6 @@
7822
7822
  }
7823
7823
  ]
7824
7824
  },
7825
- "fromValue": {
7826
- "baseline": "MUST_NOT",
7827
- "clauses": [
7828
- {
7829
- "modality": "MUST",
7830
- "when": {
7831
- "op": "cmp",
7832
- "field": "fromAttributeType",
7833
- "fieldName": "From attribute type",
7834
- "operator": "==",
7835
- "value": "casemetadata",
7836
- "valueIsField": false,
7837
- "isEmpty": false
7838
- },
7839
- "covered": true
7840
- },
7841
- {
7842
- "modality": "MUST",
7843
- "when": {
7844
- "op": "cmp",
7845
- "field": "fromAttributeType",
7846
- "fieldName": "From attribute type",
7847
- "operator": "==",
7848
- "value": "currentItem",
7849
- "valueIsField": false,
7850
- "isEmpty": false
7851
- },
7852
- "covered": true
7853
- },
7854
- {
7855
- "modality": "MUST",
7856
- "when": {
7857
- "op": "cmp",
7858
- "field": "fromAttributeType",
7859
- "fieldName": "From attribute type",
7860
- "operator": "==",
7861
- "value": "dataset",
7862
- "valueIsField": false,
7863
- "isEmpty": false
7864
- },
7865
- "covered": true
7866
- },
7867
- {
7868
- "modality": "MUST",
7869
- "when": {
7870
- "op": "cmp",
7871
- "field": "fromAttributeType",
7872
- "fieldName": "From attribute type",
7873
- "operator": "==",
7874
- "value": "newcasemetadata",
7875
- "valueIsField": false,
7876
- "isEmpty": false
7877
- },
7878
- "covered": true
7879
- },
7880
- {
7881
- "modality": "MUST",
7882
- "when": {
7883
- "op": "cmp",
7884
- "field": "fromAttributeType",
7885
- "fieldName": "From attribute type",
7886
- "operator": "==",
7887
- "value": "value",
7888
- "valueIsField": false,
7889
- "isEmpty": false
7890
- },
7891
- "covered": true
7892
- },
7893
- {
7894
- "modality": "MUST_NOT",
7895
- "when": {
7896
- "op": "cmp",
7897
- "field": "fromAttributeType",
7898
- "fieldName": "From attribute type",
7899
- "operator": "==",
7900
- "value": "casedata",
7901
- "valueIsField": false,
7902
- "isEmpty": false
7903
- },
7904
- "covered": true
7905
- },
7906
- {
7907
- "modality": "MUST_NOT",
7908
- "when": {
7909
- "op": "cmp",
7910
- "field": "fromAttributeType",
7911
- "fieldName": "From attribute type",
7912
- "operator": "==",
7913
- "value": "inlineTemplate",
7914
- "valueIsField": false,
7915
- "isEmpty": false
7916
- },
7917
- "covered": true
7918
- },
7919
- {
7920
- "modality": "MUST_NOT",
7921
- "when": {
7922
- "op": "cmp",
7923
- "field": "fromAttributeType",
7924
- "fieldName": "From attribute type",
7925
- "operator": "==",
7926
- "value": "taskout",
7927
- "valueIsField": false,
7928
- "isEmpty": false
7929
- },
7930
- "covered": true
7931
- },
7932
- {
7933
- "modality": "MAY",
7934
- "when": {
7935
- "op": "cmp",
7936
- "field": "fromAttributeType",
7937
- "fieldName": "From attribute type",
7938
- "operator": "==",
7939
- "value": "casemetadata",
7940
- "valueIsField": false,
7941
- "isEmpty": false
7942
- },
7943
- "covered": true
7944
- },
7945
- {
7946
- "modality": "MAY",
7947
- "when": {
7948
- "op": "cmp",
7949
- "field": "fromAttributeType",
7950
- "fieldName": "From attribute type",
7951
- "operator": "==",
7952
- "value": "currentItem",
7953
- "valueIsField": false,
7954
- "isEmpty": false
7955
- },
7956
- "covered": true
7957
- },
7958
- {
7959
- "modality": "MAY",
7960
- "when": {
7961
- "op": "cmp",
7962
- "field": "fromAttributeType",
7963
- "fieldName": "From attribute type",
7964
- "operator": "==",
7965
- "value": "dataset",
7966
- "valueIsField": false,
7967
- "isEmpty": false
7968
- },
7969
- "covered": true
7970
- },
7971
- {
7972
- "modality": "MAY",
7973
- "when": {
7974
- "op": "cmp",
7975
- "field": "fromAttributeType",
7976
- "fieldName": "From attribute type",
7977
- "operator": "==",
7978
- "value": "newcasemetadata",
7979
- "valueIsField": false,
7980
- "isEmpty": false
7981
- },
7982
- "covered": true
7983
- },
7984
- {
7985
- "modality": "MAY",
7986
- "when": {
7987
- "op": "cmp",
7988
- "field": "fromAttributeType",
7989
- "fieldName": "From attribute type",
7990
- "operator": "==",
7991
- "value": "value",
7992
- "valueIsField": false,
7993
- "isEmpty": false
7994
- },
7995
- "covered": true
7996
- }
7997
- ]
7998
- },
7999
7825
  "progressTemplate": {
8000
7826
  "baseline": "MUST_NOT",
8001
7827
  "clauses": [
@@ -11812,37 +11638,6 @@
11812
11638
  }
11813
11639
  ]
11814
11640
  },
11815
- "platformWidget": {
11816
- "baseline": "MUST_NOT",
11817
- "clauses": [
11818
- {
11819
- "modality": "MUST",
11820
- "when": {
11821
- "op": "cmp",
11822
- "field": "isLinkedToPlatformWidget",
11823
- "fieldName": "Settings - Is linked to platform widget",
11824
- "operator": "==",
11825
- "value": "true",
11826
- "valueIsField": false,
11827
- "isEmpty": false
11828
- },
11829
- "covered": true
11830
- },
11831
- {
11832
- "modality": "MAY",
11833
- "when": {
11834
- "op": "cmp",
11835
- "field": "isLinkedToPlatformWidget",
11836
- "fieldName": "Settings - Is linked to platform widget",
11837
- "operator": "==",
11838
- "value": "true",
11839
- "valueIsField": false,
11840
- "isEmpty": false
11841
- },
11842
- "covered": true
11843
- }
11844
- ]
11845
- },
11846
11641
  "widgetPlugin": {
11847
11642
  "baseline": "MUST_NOT",
11848
11643
  "clauses": [
@@ -12023,280 +11818,6 @@
12023
11818
  }
12024
11819
  ]
12025
11820
  },
12026
- "template": {
12027
- "baseline": "MUST_NOT",
12028
- "clauses": [
12029
- {
12030
- "modality": "MUST",
12031
- "when": {
12032
- "op": "cmp",
12033
- "field": "widgetType",
12034
- "fieldName": "Type",
12035
- "operator": "==",
12036
- "value": "templateWidget",
12037
- "valueIsField": false,
12038
- "isEmpty": false
12039
- },
12040
- "covered": true
12041
- },
12042
- {
12043
- "modality": "MUST",
12044
- "when": {
12045
- "op": "cmp",
12046
- "field": "widgetType",
12047
- "fieldName": "Type",
12048
- "operator": "==",
12049
- "value": "tileWidget",
12050
- "valueIsField": false,
12051
- "isEmpty": false
12052
- },
12053
- "covered": true
12054
- },
12055
- {
12056
- "modality": "MAY",
12057
- "when": {
12058
- "op": "cmp",
12059
- "field": "widgetType",
12060
- "fieldName": "Type",
12061
- "operator": "==",
12062
- "value": "templateWidget",
12063
- "valueIsField": false,
12064
- "isEmpty": false
12065
- },
12066
- "covered": true
12067
- },
12068
- {
12069
- "modality": "MAY",
12070
- "when": {
12071
- "op": "cmp",
12072
- "field": "widgetType",
12073
- "fieldName": "Type",
12074
- "operator": "==",
12075
- "value": "tileWidget",
12076
- "valueIsField": false,
12077
- "isEmpty": false
12078
- },
12079
- "covered": true
12080
- },
12081
- {
12082
- "modality": "MAY",
12083
- "when": {
12084
- "op": "and",
12085
- "items": [
12086
- {
12087
- "op": "cmp",
12088
- "field": "template",
12089
- "fieldName": "Template",
12090
- "operator": "!==",
12091
- "value": "",
12092
- "valueIsField": false,
12093
- "isEmpty": true
12094
- },
12095
- {
12096
- "op": "cmp",
12097
- "field": "widgetType",
12098
- "fieldName": "Type",
12099
- "operator": "==",
12100
- "value": "templateWidget",
12101
- "valueIsField": false,
12102
- "isEmpty": false
12103
- }
12104
- ]
12105
- },
12106
- "covered": false,
12107
- "reason": "condition not expressible as JSON Schema"
12108
- }
12109
- ]
12110
- },
12111
- "templateInline": {
12112
- "baseline": "MUST_NOT",
12113
- "clauses": [
12114
- {
12115
- "modality": "MUST",
12116
- "when": {
12117
- "op": "or",
12118
- "items": [
12119
- {
12120
- "op": "and",
12121
- "items": [
12122
- {
12123
- "op": "cmp",
12124
- "field": "templateInline",
12125
- "fieldName": "Template (Inline)",
12126
- "operator": "==",
12127
- "value": "",
12128
- "valueIsField": false,
12129
- "isEmpty": true
12130
- },
12131
- {
12132
- "op": "cmp",
12133
- "field": "template",
12134
- "fieldName": "Template",
12135
- "operator": "==",
12136
- "value": "",
12137
- "valueIsField": false,
12138
- "isEmpty": true
12139
- },
12140
- {
12141
- "op": "cmp",
12142
- "field": "widgetType",
12143
- "fieldName": "Type",
12144
- "operator": "==",
12145
- "value": "templateWidget",
12146
- "valueIsField": false,
12147
- "isEmpty": false
12148
- }
12149
- ]
12150
- },
12151
- {
12152
- "op": "cmp",
12153
- "field": "templateInline",
12154
- "fieldName": "Template (Inline)",
12155
- "operator": "!==",
12156
- "value": "",
12157
- "valueIsField": false,
12158
- "isEmpty": true
12159
- }
12160
- ]
12161
- },
12162
- "covered": false,
12163
- "reason": "condition not expressible as JSON Schema"
12164
- },
12165
- {
12166
- "modality": "MUST",
12167
- "when": {
12168
- "op": "cmp",
12169
- "field": "widgetType",
12170
- "fieldName": "Type",
12171
- "operator": "==",
12172
- "value": "filePreview",
12173
- "valueIsField": false,
12174
- "isEmpty": false
12175
- },
12176
- "covered": true
12177
- },
12178
- {
12179
- "modality": "MAY",
12180
- "when": {
12181
- "op": "or",
12182
- "items": [
12183
- {
12184
- "op": "and",
12185
- "items": [
12186
- {
12187
- "op": "cmp",
12188
- "field": "templateInline",
12189
- "fieldName": "Template (Inline)",
12190
- "operator": "==",
12191
- "value": "",
12192
- "valueIsField": false,
12193
- "isEmpty": true
12194
- },
12195
- {
12196
- "op": "cmp",
12197
- "field": "template",
12198
- "fieldName": "Template",
12199
- "operator": "==",
12200
- "value": "",
12201
- "valueIsField": false,
12202
- "isEmpty": true
12203
- },
12204
- {
12205
- "op": "cmp",
12206
- "field": "widgetType",
12207
- "fieldName": "Type",
12208
- "operator": "==",
12209
- "value": "templateWidget",
12210
- "valueIsField": false,
12211
- "isEmpty": false
12212
- }
12213
- ]
12214
- },
12215
- {
12216
- "op": "cmp",
12217
- "field": "templateInline",
12218
- "fieldName": "Template (Inline)",
12219
- "operator": "!==",
12220
- "value": "",
12221
- "valueIsField": false,
12222
- "isEmpty": true
12223
- }
12224
- ]
12225
- },
12226
- "covered": false,
12227
- "reason": "condition not expressible as JSON Schema"
12228
- },
12229
- {
12230
- "modality": "MAY",
12231
- "when": {
12232
- "op": "cmp",
12233
- "field": "widgetType",
12234
- "fieldName": "Type",
12235
- "operator": "==",
12236
- "value": "filePreview",
12237
- "valueIsField": false,
12238
- "isEmpty": false
12239
- },
12240
- "covered": true
12241
- },
12242
- {
12243
- "modality": "MAY",
12244
- "when": {
12245
- "op": "and",
12246
- "items": [
12247
- {
12248
- "op": "cmp",
12249
- "field": "templateInline",
12250
- "fieldName": "Template (Inline)",
12251
- "operator": "==",
12252
- "value": "",
12253
- "valueIsField": false,
12254
- "isEmpty": true
12255
- },
12256
- {
12257
- "op": "cmp",
12258
- "field": "widgetType",
12259
- "fieldName": "Type",
12260
- "operator": "==",
12261
- "value": "templateWidget",
12262
- "valueIsField": false,
12263
- "isEmpty": false
12264
- }
12265
- ]
12266
- },
12267
- "covered": false,
12268
- "reason": "condition not expressible as JSON Schema"
12269
- },
12270
- {
12271
- "modality": "MAY",
12272
- "when": {
12273
- "op": "and",
12274
- "items": [
12275
- {
12276
- "op": "cmp",
12277
- "field": "template",
12278
- "fieldName": "Template",
12279
- "operator": "==",
12280
- "value": "",
12281
- "valueIsField": false,
12282
- "isEmpty": true
12283
- },
12284
- {
12285
- "op": "cmp",
12286
- "field": "widgetType",
12287
- "fieldName": "Type",
12288
- "operator": "==",
12289
- "value": "templateWidget",
12290
- "valueIsField": false,
12291
- "isEmpty": false
12292
- }
12293
- ]
12294
- },
12295
- "covered": false,
12296
- "reason": "condition not expressible as JSON Schema"
12297
- }
12298
- ]
12299
- },
12300
11821
  "templateOnEmpty": {
12301
11822
  "baseline": "MUST_NOT",
12302
11823
  "clauses": [