You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rule-ref.md
+31-23Lines changed: 31 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,45 +5,39 @@ New rules will be added by upcoming XRLint releases.
5
5
6
6
## Core Rules
7
7
8
+
### :material-lightbulb: `content-desc`
9
+
10
+
A dataset should provide information about where the data came from and what has been done to it. This information is mainly for the benefit of human readers. The rule accepts the following configuration parameters:
11
+
12
+
-`globals`: list of names of required global attributes. Defaults to `['title', 'history']`.
13
+
-`commons`: list of names of required variable attributes that can also be defined globally. Defaults to `['institution', 'source', 'references', 'comment']`.
14
+
-`no_vars`: do not check variables at all. Defaults to `False`.
15
+
-`ignored_vars`: list of ignored variables (regex patterns). Defaults to `['crs', 'spatial_ref']`.
Datasets should identify the applicable conventions using the `Conventions` attribute.
11
-
The rule has an optional configuration parameter `match` which is a regex pattern that the value of the `Conventions` attribute must match, if any.
24
+
The rule has an optional configuration parameter `match` which is a regex pattern that the value of the `Conventions` attribute must match, if any. If not provided, the rule just verifies that the attribute exists and whether it is a character string.
A dataset should provide information about where the data came from and what has been done to it. This information is mainly for the benefit of human readers. The rule accepts the following configuration parameters:
25
-
26
-
-`global_attrs`: list of global attribute names. Defaults to `['title', 'history']`.
27
-
-`var_attrs`: list of variable attribute names. Defaults to `['institution', 'source', 'references', 'comment']`.
28
-
-`ignored_vars`: list of ignored variables (regex patterns). Defaults to `['crs', 'spatial_ref']`.
Check that each data variable provides an identification and description of the content. The rule can be configured by parameter `attrs` which is a list of names of attributes that provides descriptive information. It defaults to `['standard_name', 'long_name']`.
0 commit comments