Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit bad-include/import-yang-version setting #235

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading