Skip to content

Commit

Permalink
bugfix: lets several tools ignore the newly named and generated json-…
Browse files Browse the repository at this point in the history
…schemas-as-esm
  • Loading branch information
sverweij committed Apr 8, 2023
1 parent a8872a0 commit e33a80f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1,515 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ exclude_patterns:
- "tools/"
- "**/node_modules/"
- "src/report/**/*.template.js"
- "src/**/*.schema.js"
- "src/**/*.schema.mjs"
2 changes: 1 addition & 1 deletion .dependency-cruiser.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
},
{
"criteria": {
"source": "^src/meta\\.js$|\\.template\\.js$|\\.schema\\.js$"
"source": "^src/meta\\.js$|\\.template\\.js$|\\.schema\\.mjs$"
},
"attributes": { "style": "filled" }
},
Expand Down
2 changes: 1 addition & 1 deletion .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ paths:
- types/
paths-ignore:
- '**/*.template.js'
- '**/*.schema.js'
- '**/*.schema.mjs'
- 'test/integration/**'
- 'test/*/__fixtures__/**'
- 'test/*/*/__fixtures__/**'
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/*.template.hbs
**/*.template.js
**/*.schema.js
**/*.schema.mjs
**/*.schema.json
2 changes: 1 addition & 1 deletion configs/.dependency-cruiser-show-metrics-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
},
{
criteria: {
source: "^src/meta\\.js$|\\.template\\.js$|\\.schema\\.js$",
source: "^src/meta\\.js$|\\.template\\.js$|\\.schema\\.mjs$",
},
attributes: { style: "filled" },
},
Expand Down
67 changes: 1 addition & 66 deletions src/schema/baseline-violations.schema.mjs
Original file line number Diff line number Diff line change
@@ -1,66 +1 @@
/* generated - don't edit */ export default {
title: "dependency-cruiser baseline ('known errors') format",
$schema: "http://json-schema.org/draft-07/schema#",
$id: "https://dependency-cruiser.js.org/schema/baseline-violations.schema.json",
$ref: "#/definitions/ViolationsType",
definitions: {
ViolationsType: {
type: "array",
items: { $ref: "#/definitions/ViolationType" },
},
ViolationType: {
type: "object",
required: ["from", "to", "rule"],
additionalProperties: false,
properties: {
from: { type: "string" },
to: { type: "string" },
type: { $ref: "#/definitions/ViolationTypeType" },
rule: { $ref: "#/definitions/RuleSummaryType" },
cycle: { type: "array", items: { type: "string" } },
via: { type: "array", items: { type: "string" } },
metrics: {
type: "object",
required: ["from", "to"],
additionalProperties: false,
properties: {
from: {
type: "object",
required: ["instability"],
additionalProperties: false,
properties: { instability: { type: "number" } },
},
to: {
type: "object",
required: ["instability"],
additionalProperties: false,
properties: { instability: { type: "number" } },
},
},
},
comment: { type: "string" },
},
},
RuleSummaryType: {
type: "object",
required: ["name", "severity"],
additionalProperties: false,
properties: {
name: { type: "string" },
severity: { $ref: "#/definitions/SeverityType" },
},
},
SeverityType: { type: "string", enum: ["error", "warn", "info", "ignore"] },
ViolationTypeType: {
type: "string",
enum: [
"dependency",
"module",
"reachability",
"cycle",
"instability",
"folder",
],
},
},
};
/* generated - don't edit */export default {"title":"dependency-cruiser baseline ('known errors') format","$schema":"http://json-schema.org/draft-07/schema#","$id":"https://dependency-cruiser.js.org/schema/baseline-violations.schema.json","$ref":"#/definitions/ViolationsType","definitions":{"ViolationsType":{"type":"array","items":{"$ref":"#/definitions/ViolationType"}},"ViolationType":{"type":"object","required":["from","to","rule"],"additionalProperties":false,"properties":{"from":{"type":"string"},"to":{"type":"string"},"type":{"$ref":"#/definitions/ViolationTypeType"},"rule":{"$ref":"#/definitions/RuleSummaryType"},"cycle":{"type":"array","items":{"type":"string"}},"via":{"type":"array","items":{"type":"string"}},"metrics":{"type":"object","required":["from","to"],"additionalProperties":false,"properties":{"from":{"type":"object","required":["instability"],"additionalProperties":false,"properties":{"instability":{"type":"number"}}},"to":{"type":"object","required":["instability"],"additionalProperties":false,"properties":{"instability":{"type":"number"}}}}},"comment":{"type":"string"}}},"RuleSummaryType":{"type":"object","required":["name","severity"],"additionalProperties":false,"properties":{"name":{"type":"string"},"severity":{"$ref":"#/definitions/SeverityType"}}},"SeverityType":{"type":"string","enum":["error","warn","info","ignore"]},"ViolationTypeType":{"type":"string","enum":["dependency","module","reachability","cycle","instability","folder"]}}}
Loading

0 comments on commit e33a80f

Please sign in to comment.