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

Create Slash.yml #111

Merged
merged 7 commits into from
Jul 1, 2024
Merged
Changes from 2 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
21 changes: 21 additions & 0 deletions common/Slash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
extends: existence
message: "Only use slashes with filenames, links and terms such as TCP/IP."
tbazant marked this conversation as resolved.
Show resolved Hide resolved
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
ignorecase: true
level: suggestion
tokens:
- '(?<!/)\w+\s?\/\s?\w+'
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
exceptions:
- '\d{2,4}\/\d{2,4}' # To avoid matching dates
- 'allow/deny'
- 'AMD64/Intel' # To avoid matching "AMD64/Intel 64"
- 'client/server'
- 'input/output'
- 'I/O'
- '[kKmMgGtT][bB]/s'
- 'N/A'
- 'read/write'
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
- 'SSL/TLS'
alexvonme marked this conversation as resolved.
Show resolved Hide resolved
- 'sync/import'
- 'read/write'
- 'TCP/IP'
- 'Fi/Bluetooth' # To avoid matching "Wi-Fi/Bluetooth card"
alexvonme marked this conversation as resolved.
Show resolved Hide resolved