Skip to content

Conversation

@thaJeztah
Copy link
Member

Description

vale: add GHSA to acronyms

GHSA is for GitHub Security Advisories;
https://docs.github.com/en/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-the-github-advisory-database

vale: add DCT, DSOS and DVP to acronyms

  • DSOS: Docker-Sponsored Open Source (DSOS) program
  • DVP: Docker Verified Publisher (DVP)
  • DCT: Docker Content-Trust

vale: add TTY to acronyms

[vale] reported by reviewdog 🐶
[Docker.Acronyms] 'TTY' has no definition.

vale: allow 'docker/' in link-captions

Try to prevent false-positives on links to GitHub issues, e.g.;

[docker/docker-ce-packaging#1050](https://github.com/docker/docker-ce-packaging/pull/1050)
Check failure on line 93 in content/engine/release-notes/27.md

[vale] reported by reviewdog 🐶
[Vale.Terms] Use 'Docker' instead of 'docker'.

Related issues or tickets

Reviews

  • Technical review
  • Editorial review
  • Product review

- DSOS: Docker-Sponsored Open Source (DSOS) program
- DVP: Docker Verified Publisher (DVP)
- DCT: Docker Content-Trust

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    [vale] reported by reviewdog 🐶
    [Docker.Acronyms] 'TTY' has no definition.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah self-assigned this Aug 28, 2024
@netlify
Copy link

netlify bot commented Aug 28, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit b035d55
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66cf1ea60e5d2e0007e37c10
😎 Deploy Preview https://deploy-preview-20726--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the area/release Relates to CI or deployment label Aug 28, 2024
Debootstrap
Dev Environments?
Django
docker/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this one works; looks like this file accepts some RegEx? Not sure how it matches things (so if it would need something like [^]]+ after it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need some exception for docker-XXXX as well? (thinking docker-compose)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the only valid use for docker-compose would be in a code span, when referring to the legacy command, so in that case it wouldn't be flagged by vale anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this works, at least it doesn't seem to in my editor

Suggested change
docker/
docker/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL what's your suggested change above? I don't see what it ... changed 🥹

Copy link
Contributor

@dvdksn dvdksn Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try this

diff --git a/.github/vale/Docker/Capitalization.yml b/.github/vale/Docker/Capitalization.yml
new file mode 100644
index 0000000000..6d95064783
--- /dev/null
+++ b/.github/vale/Docker/Capitalization.yml
@@ -0,0 +1,10 @@
+extends: existence
+message: "Please capitalize Docker."
+level: error
+ignorecase: false
+action:
+  name: replace
+  params:
+    - Docker
+tokens:
+  - 'docker(?!/cli)'
diff --git a/.github/vale/config/vocabularies/Docker/accept.txt b/.github/vale/config/vocabularies/Docker/accept.txt
index 78f3e66f8c..c461e2f7bf 100644
--- a/.github/vale/config/vocabularies/Docker/accept.txt
+++ b/.github/vale/config/vocabularies/Docker/accept.txt
@@ -35,7 +35,6 @@ Ddosify
 Debootstrap
 Dev Environments?
 Django
-Docker
 Docker Build Cloud
 Docker Business
 Docker Dasboard

params:
- Docker
tokens:
- 'docker(?!/cli)'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we may need buildx, compose, <other repos> as well; should those be added as separate items in this list, or do we want to try capturing them in a single RegEx?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya you're right, we should. Maybe this?

Suggested change
- 'docker(?!/cli)'
- 'docker(?!/[a-z-]+)'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup; something like that seems good (but make sure to test indeed) 🙈

I updated with your suggestion

Try to prevent false-positives on links to GitHub issues, e.g.;

    [docker/docker-ce-packaging#1050](docker/docker-ce-packaging#1050)
    Check failure on line 93 in content/engine/release-notes/27.md

    [vale] reported by reviewdog 🐶
    [Vale.Terms] Use 'Docker' instead of 'docker'.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@dvdksn dvdksn merged commit dee4327 into docker:main Aug 28, 2024
@thaJeztah thaJeztah deleted the relax_vale branch August 28, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Relates to CI or deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants