Skip to content

Commit 2e126e6

Browse files
Merge pull request #111 from StrangeBeeCorp/vale
Added Vale
2 parents 48b41e0 + a48c95c commit 2e126e6

File tree

139 files changed

+4598
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+4598
-0
lines changed

.vale.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
StylesPath = styles
2+
MinAlertLevel = suggestion
3+
4+
Packages = Microsoft
5+
6+
[*]
7+
BasedOnStyles = Vale, Microsoft
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build + Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
14+
- run: zip -r Microsoft.zip Microsoft -x "*.DS_Store"
15+
16+
- name: Upload style to release
17+
uses: svenstaro/upload-release-action@v2
18+
if: startsWith(github.ref, 'refs/tags/')
19+
with:
20+
repo_token: ${{ secrets.GITHUB_TOKEN }}
21+
file: Microsoft.zip
22+
23+
cucumber:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Python
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: "3.10"
35+
36+
- name: Ruby
37+
uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: "3.0"
40+
# runs 'bundle install' and caches installed gems automatically
41+
bundler-cache: true
42+
43+
- name: Install Deps
44+
run: |
45+
wget https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz
46+
mkdir bin && tar -xvzf vale_${VALE_VERSION}_Linux_64-bit.tar.gz -C bin
47+
echo "./bin" >> $GITHUB_PATH
48+
49+
pip install yamllint pyyaml docutils
50+
env:
51+
VALE_VERSION: 3.3.0
52+
53+
- name: Features
54+
run: bundle exec cucumber --format progress
55+
env:
56+
CUCUMBER_PUBLISH_QUIET: true
57+
58+
- name: Integration
59+
run: vale README.md

styles/Microsoft-master/.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
*.gem
2+
*.rbc
3+
/.config
4+
/InstalledFiles
5+
/pkg/
6+
/spec/reports/
7+
/spec/examples.txt
8+
/test/tmp/
9+
/test/version_tmp/
10+
/tmp/
11+
12+
*.zip
13+
*.lock
14+
15+
# Used by dotenv library to load environment variables.
16+
# .env
17+
18+
## Specific to RubyMotion:
19+
.dat*
20+
.repl_history
21+
build/
22+
*.bridgesupport
23+
build-iPhoneOS/
24+
build-iPhoneSimulator/
25+
26+
## Specific to RubyMotion (use of CocoaPods):
27+
#
28+
# We recommend against adding the Pods directory to your .gitignore. However
29+
# you should judge for yourself, the pros and cons are mentioned at:
30+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
31+
#
32+
# vendor/Pods/
33+
34+
## Documentation cache and generated files:
35+
/.yardoc/
36+
/_yardoc/
37+
/doc/
38+
/rdoc/
39+
40+
## Environment normalization:
41+
/.bundle/
42+
/vendor/bundle
43+
/lib/bundler/man/
44+
45+
# for a library or gem, you might want to ignore these files since the code is
46+
# intended to run in multiple environments; otherwise, check them in:
47+
# Gemfile.lock
48+
# .ruby-version
49+
# .ruby-gemset
50+
51+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
52+
.rvmrc

styles/Microsoft-master/.yamllint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
rules:
2+
# We only include a single document (without directives) in our rules, so
3+
# the extra markup is unnecessary.
4+
document-start: disable
5+
# Many rules include a `link` key that can be relatively long.
6+
#
7+
# TODO: Should we change this?
8+
line-length: disable

styles/Microsoft-master/Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'aruba', '~> 0.14.3'

styles/Microsoft-master/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 - 2019 Joseph Kato
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: existence
2+
message: Use 'AM' or 'PM' (preceded by a space).
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
4+
level: error
5+
nonword: true
6+
tokens:
7+
- '\d{1,2}[AP]M'
8+
- '\d{1,2} ?[ap]m'
9+
- '\d{1,2} ?[aApP]\.[mM]\.'
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
extends: existence
2+
message: "Don't use language (such as '%s') that defines people by their disability."
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
4+
level: suggestion
5+
ignorecase: true
6+
tokens:
7+
- a victim of
8+
- able-bodied
9+
- an epileptic
10+
- birth defect
11+
- crippled
12+
- differently abled
13+
- disabled
14+
- dumb
15+
- handicapped
16+
- handicaps
17+
- healthy person
18+
- hearing-impaired
19+
- lame
20+
- maimed
21+
- mentally handicapped
22+
- missing a limb
23+
- mute
24+
- non-verbal
25+
- normal person
26+
- sight-impaired
27+
- slow learner
28+
- stricken with
29+
- suffers from
30+
- vision-impaired
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
extends: conditional
2+
message: "'%s' has no definition."
3+
link: https://docs.microsoft.com/en-us/style-guide/acronyms
4+
level: suggestion
5+
ignorecase: false
6+
# Ensures that the existence of 'first' implies the existence of 'second'.
7+
first: '\b([A-Z]{3,5})\b'
8+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
9+
# ... with the exception of these:
10+
exceptions:
11+
- API
12+
- ASP
13+
- CLI
14+
- CPU
15+
- CSS
16+
- CSV
17+
- DEBUG
18+
- DOM
19+
- DPI
20+
- FAQ
21+
- GCC
22+
- GDB
23+
- GET
24+
- GPU
25+
- GTK
26+
- GUI
27+
- HTML
28+
- HTTP
29+
- HTTPS
30+
- IDE
31+
- JAR
32+
- JSON
33+
- JSX
34+
- LESS
35+
- LLDB
36+
- NET
37+
- NOTE
38+
- NVDA
39+
- OSS
40+
- PATH
41+
- PDF
42+
- PHP
43+
- POST
44+
- RAM
45+
- REPL
46+
- RSA
47+
- SCM
48+
- SCSS
49+
- SDK
50+
- SQL
51+
- SSH
52+
- SSL
53+
- SVG
54+
- TBD
55+
- TCP
56+
- TODO
57+
- URI
58+
- URL
59+
- USB
60+
- UTF
61+
- XML
62+
- XSS
63+
- YAML
64+
- ZIP

0 commit comments

Comments
 (0)