blob: c3f051bdb58b512874450c362c1025422c95ddfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# meta-video-links
This rule checks formatting for video links in metadata. Always use dictionaries
for items in the `meta/main.yml` file.
Items in the `video_links` section must be in a dictionary and use the following
keys:
- `url`
- `title`
The value of the `url` key must be a shared link from YouTube, Vimeo, or Google
Drive.
## Problematic Code
```yaml
---
galaxy_info:
video_links:
- https://www.youtube.com/watch?v=aWmRepTSFKs&feature=youtu.be # <- Does not use the url key.
- my_bad_key: https://www.youtube.com/watch?v=aWmRepTSFKs&feature=youtu.be # <- Uses an unsupported key.
title: Incorrect key.
- url: www.acme.com/vid # <- Uses an unsupported url format.
title: Incorrect url format.
```
## Correct Code
```yaml
---
galaxy_info:
video_links:
- url: https://www.youtube.com/watch?v=aWmRepTSFKs&feature=youtu.be # <- Uses a supported shared link with the url key.
title: Correctly formatted video link.
```
|