@grafana/plugin-validator 0.34.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -158,6 +158,35 @@ Severity levels could be: `error`, `warning`, or `ok`.
158
158
 
159
159
  > Note: Grafana Labs enforces its own configuration for plugins submissions and your own config file can't change these rules.
160
160
 
161
+ #### Excluding a plugin from an analyzer or rule
162
+
163
+ It's also possible to exclude a specific plugin from an analyzer or a specific rule within an analyzer. This is useful when a particular check is not applicable to your plugin.
164
+
165
+ To disable an entire analyzer for a plugin, add an `exceptions` list with the plugin ID.
166
+
167
+ ```yaml
168
+ analyzers:
169
+ some-analyzer:
170
+ enabled: true
171
+ # This entire analyzer will be skipped for 'my-plugin-id'
172
+ exceptions:
173
+ - my-plugin-id
174
+ ```
175
+
176
+ To disable a single rule for a plugin, add the `exceptions` list to the rule's configuration.
177
+
178
+ ```yaml
179
+ analyzers:
180
+ some-analyzer:
181
+ rules:
182
+ some-rule:
183
+ enabled: true
184
+ # This rule will be skipped for 'my-plugin-id'
185
+ exceptions:
186
+ - my-plugin-id
187
+ ```
188
+
189
+
161
190
  ### Source code
162
191
 
163
192
  You can specify the location of the plugin source code to the validator with the `-sourceCodeUri` option. Doing so allows for additional [analyzers](#analyzers) to be run and for a more complete scan.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-validator",
3
- "version": "0.34.0",
3
+ "version": "0.35.1",
4
4
  "description": "Grafana Plugin Validator",
5
5
  "main": "index.js",
6
6
  "repository": {