-
Notifications
You must be signed in to change notification settings - Fork 43
Add Vale config #3585
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
Add Vale config #3585
Conversation
6f48df0
to
8749037
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
I've added some points I've spotted when checking the rules on random doc pages.
Anyway, we can push this config and adapt it further later.
styles/Tarantool/Latin.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already added in Foreign.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe join with Terms.yml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved Terms.yml
words to WordList.yml
.
styles/Vocab/Tarantool/accept.txt
Outdated
sharded | ||
nullable | ||
coroutines | ||
multikey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multikey | |
multikey | |
datetime | |
varbinary |
styles/Tarantool/WordList.yml
Outdated
Android device: Android-powered device | ||
android: Android | ||
API explorer: APIs Explorer | ||
application: app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is valid for our case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, forgot to remove
styles/Tarantool/ComplexWords.yml
Outdated
methodology: method | ||
modify: change | ||
monitor: check|watch | ||
multiple: many |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'multiple' seems fine to me.
styles/Tarantool/ComplexWords.yml
Outdated
consequently: so | ||
consolidate: merge | ||
constitutes: forms | ||
contains: has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'contains' seems fine to me.
styles/Tarantool/WordList.yml
Outdated
cellular network: mobile network | ||
chapter: documents|pages|sections | ||
check box: checkbox | ||
check: select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not our case, I think.
level: warning | ||
ignorecase: true | ||
tokens: | ||
- currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- currently | |
- currently | |
- previously | |
- now | |
- today | |
- in(?: the|) future |
aa17361
to
27b0e74
Compare
27b0e74
to
76196b3
Compare
Added the Vale configuration to the documentation. This configuration includes two predefined packages that implement Microsoft and Google style guides:
Moreover, this PR includes a custom
Tarantool
style, which includes several rules from the GitLab config.Apart from three styles, the
styles/Vocab/Tarantool/accept.txt
file contains valid Tarantool-specific terms.To show Vale warnings in the PyCharm editor, follow the steps below (macOS):
brew install vale
.brew install sphinx-doc
.Preferences | Editor | Natural Languages | Grazie Professional
page, turn on theEnable Vale annotations
option.vale sync
command.PyCharm should now use the Vale config automatically (

.vale.ini
) and show warnings right in the editor:Please add your suggestions regarding customizing Microsoft/Google styles or adding Tarantool-specific rules and terms.