From 01da041064f122f5efe2df2327bcc27437d8dd45 Mon Sep 17 00:00:00 2001 From: andreyaksenov Date: Wed, 4 Oct 2023 16:30:11 +0300 Subject: [PATCH] Update Vale rules --- styles/Tarantool/ComplexWords.yml | 18 ------------------ styles/Tarantool/FlagOption.yml | 9 +++++++++ styles/Tarantool/Uppercase.yml | 3 +++ styles/Tarantool/WordList.yml | 2 -- styles/Tarantool/Wordy.yml | 1 - styles/Vocab/Tarantool/accept.txt | 14 +++++++++++++- 6 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 styles/Tarantool/FlagOption.yml diff --git a/styles/Tarantool/ComplexWords.yml b/styles/Tarantool/ComplexWords.yml index ac2db22bbe..1d442d06f4 100644 --- a/styles/Tarantool/ComplexWords.yml +++ b/styles/Tarantool/ComplexWords.yml @@ -26,8 +26,6 @@ swap: aggregate: total aircraft: plane alleviate: ease - allocate: assign|divide - alternatively: or alternatives: choices|options ameliorate: improve amend: change @@ -36,8 +34,6 @@ swap: ascertain: discover|find out assistance: help attain: meet - attempt: try - authorize: allow belated: late bestow: give cease: stop|end @@ -45,45 +41,33 @@ swap: commence: begin compensate: pay comprise: form|include - concept: idea concerning: about confer: give|award consequently: so consolidate: merge constitutes: forms convene: meet - demonstrate: show|prove depart: leave designate: choose desire: want|wish - determine: decide|find detrimental: bad|harmful disclose: share|tell discontinue: stop disseminate: send|give - eliminate: end elucidate: explain employ: use - enclosed: inside|included endeavor: try enumerate: count equitable: fair - equivalent: equal exclusively: only expedite: hurry facilitate: ease females: women frequently: often - identical: same - indication: sign - initiate: start|begin itemized: listed jeopardize: risk liaise: work with|partner with - maintain: keep|support methodology: method - modify: change - monitor: check|watch necessitate: cause numerous: many objective: aim|goal @@ -92,7 +76,6 @@ swap: permit: let portion: part possess: own - previously: before procure: buy purchase: buy relocate: move @@ -101,7 +84,6 @@ swap: subsequent: later|next substantial: large sufficient: enough - terminate: end transmit: send utilization: use utilize: use diff --git a/styles/Tarantool/FlagOption.yml b/styles/Tarantool/FlagOption.yml new file mode 100644 index 0000000000..8a2ebd28f6 --- /dev/null +++ b/styles/Tarantool/FlagOption.yml @@ -0,0 +1,9 @@ +extends: substitution +message: "Use 'option' instead of 'flag' if you are referring to a command-line option (including boolean options)." +link: "https://www.tarantool.io/doc/latest/contributing/docs/localization/glossaries/" +level: suggestion +ignorecase: true +action: + name: replace +swap: + flag: option diff --git a/styles/Tarantool/Uppercase.yml b/styles/Tarantool/Uppercase.yml index 307d8da893..a49ee546ed 100644 --- a/styles/Tarantool/Uppercase.yml +++ b/styles/Tarantool/Uppercase.yml @@ -251,3 +251,6 @@ exceptions: - YAML - ZAP - ZIP + - PAP + - CHAP + - APT diff --git a/styles/Tarantool/WordList.yml b/styles/Tarantool/WordList.yml index 3762372475..1658bc600c 100644 --- a/styles/Tarantool/WordList.yml +++ b/styles/Tarantool/WordList.yml @@ -40,7 +40,6 @@ swap: cellular network: mobile network chapter: documents|pages|sections check box: checkbox - CLI: command-line tool click on: click|click in Cloud: Google Cloud Platform|GCP Container Engine: Kubernetes Engine @@ -53,7 +52,6 @@ swap: fewer data: less data file name: filename firewalls: firewall rules - functionality: capability|feature Google account: Google Account Google accounts: Google Accounts Googling: search with Google diff --git a/styles/Tarantool/Wordy.yml b/styles/Tarantool/Wordy.yml index 0d76547cf6..4b53bb4097 100644 --- a/styles/Tarantool/Wordy.yml +++ b/styles/Tarantool/Wordy.yml @@ -3,7 +3,6 @@ message: "%s" level: suggestion ignorecase: true swap: - note that: "Remove the phrase 'note that'." please: "Use 'please' only if we've inconvenienced the user." respectively: "Remove 'respectively' and list each option instead." and so on: "Remove 'and so on'. Try to use 'like' and provide examples instead." diff --git a/styles/Vocab/Tarantool/accept.txt b/styles/Vocab/Tarantool/accept.txt index 73e100c0a7..79dc6dbd8d 100644 --- a/styles/Vocab/Tarantool/accept.txt +++ b/styles/Vocab/Tarantool/accept.txt @@ -33,4 +33,16 @@ storages dereference upsert tt -SEQSCAN \ No newline at end of file +SEQSCAN +iproto +autoincrement +etcd +canonicalization +libcurl +CMake +fuzzer +subcommand +vshard +boolean +failover +rebalancer