Skip to content

Commit

Permalink
Merge pull request #235 from esmasth/esmasth/issue233
Browse files Browse the repository at this point in the history
Limit bad-include/import-yang-version setting
  • Loading branch information
dhuebner authored Mar 15, 2024
2 parents c03088b + 6ef2c02 commit 57ba957
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ For instance; the name contains any invalid characters, or equals to any YANG bu

Issues code when there is an inconsistency between a module's version and the version of the included modules.

(default severity: error)
(fixed severity: error)

#### `bad-import-yang-version`

Issues code when there is an inconsistency between a module's version and the version of the included modules.

(default severity: error)
(fixed severity: error)

#### `duplicate-enumerable-name`

Expand Down
11 changes: 8 additions & 3 deletions schema/yang-lsp-settings-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://github.com/TypeFox/yang-lsp/schema/yang-lsp-settings-schema.json",
"$id": "https://github.com/TypeFox/yang-lsp/blob/master/schema/yang-lsp-settings-schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "YANG LSP Settings JSON Schema",
"description": "JSON Schema for YANG LSP settings file 'yang.settings'.\nSee https://github.com/TypeFox/yang-lsp/blob/master/docs/Settings.md",
Expand Down Expand Up @@ -54,6 +54,11 @@
"warning",
"ignore"
]
},
"fixed-severity": {
"enum": [
"error"
]
}
},
"properties": {
Expand Down Expand Up @@ -124,12 +129,12 @@
},
"bad-include-yang-version": {
"description": "Issues code when there is an inconsistency between a module's yang-version and the yang-version of the included modules.",
"$ref": "#/properties/diagnostic/$defs/severity",
"$ref": "#/properties/diagnostic/$defs/fixed-severity",
"default": "error"
},
"bad-import-yang-version": {
"description": "Issues code when there is an inconsistency between a module's yang-version and the yang-version of the imported modules.",
"$ref": "#/properties/diagnostic/$defs/severity",
"$ref": "#/properties/diagnostic/$defs/fixed-severity",
"default": "error"
},
"duplicate-enumerable-name": {
Expand Down

0 comments on commit 57ba957

Please sign in to comment.