Skip to content

Commit

Permalink
fix: update JSON schema URLs to point to TODOGroup repo
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Aug 26, 2020
1 parent d52353e commit 9d397ef
Show file tree
Hide file tree
Showing 23 changed files with 372 additions and 33 deletions.
5 changes: 2 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
"program": "${workspaceRoot}/bin/repolinter.js",
"args":[
"lint",
".",
"--dryRun",
"--ruleset-url https://raw.githubusercontent.com/aperture-science-incorporated/.github/master/repolinter.json"
"--git",
"https://github.com/todogroup/repolinter.git"
]
}
]
Expand Down
6 changes: 3 additions & 3 deletions docs/md/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ A rule consists of two parts: a JavaScript module, which determines the rule's f
The configuration JSON schema determines how `rule.options` should be validated for this rule. All [JSON Schema](https://json-schema.org/) tools supported by [AJV](https://ajv.js.org/) all available, with a few important caveats:
* The file itself should always be named `<rule-name>-config.json` and be located under the `rules` folder.
* The top-level type should always be `object`.
* The `$id` field should be an absolute raw.githubusercontent.com URL to where the schema is hosted on GitHub (ex. https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rules/apache-notice-config.json). This allows IDEs such as VSCode to apply the schema via a URL.
* The `$id` field should be an absolute raw.githubusercontent.com URL to where the schema is hosted on GitHub (ex. https://raw.githubusercontent.com/todogroup/repolinter/master/rules/apache-notice-config.json). This allows IDEs such as VSCode to apply the schema via a URL.

To get started, you can use the following template:
```JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rules/<rule-name>-config.json",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/rules/<rule-name>-config.json",
"type": "object",
"properties": {}
}
Expand Down Expand Up @@ -67,7 +67,7 @@ To get started, you can use the following template:
```JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/fixes/<fix-name>-config.json",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/fixes/<fix-name>-config.json",
"type": "object",
"properties": {}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/md/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Repolinter will pull its configuration from the following sources in order of pr
Any ruleset starts with the following base:
```JSON
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {},
"rules": {}
Expand Down Expand Up @@ -182,7 +182,7 @@ Each axiom is configured as a key value pair in the `axioms` object, where `<axi
An example configuration using an axiom to detect the packaging system for a project:
```JSON
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {
"packagers": "package-type"
Expand Down
2 changes: 1 addition & 1 deletion fixes/file-create-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/fixes/file-create-config.json",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/fixes/file-create-config.json",
"type": "object",
"properties": {
"file": { "type": "string" },
Expand Down
2 changes: 1 addition & 1 deletion fixes/file-modify-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/fixes/file-modify-config.json",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/fixes/file-modify-config.json",
"type": "object",
"properties": {
"nocase": {
Expand Down
Loading

0 comments on commit 9d397ef

Please sign in to comment.