Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Aug 23, 2020
1 parent f062865 commit bdd0ef2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Microsoft [![Build Status](https://travis-ci.org/errata-ai/Microsoft.svg?branch=master)](https://travis-ci.org/errata-ai/Microsoft) ![Vale version](https://img.shields.io/badge/vale-%3E%3D%20v1.7.0-blue.svg) ![license](https://img.shields.io/github/license/mashape/apistatus.svg)
> **NOTE**: This project is neither maintained nor endorsed by Microsoft.
This repository contains a [Vale-compatible](https://github.com/errata-ai/vale) implementation of the [*Microsoft Writing Style Guide*](https://docs.microsoft.com/en-us/style-guide/welcome/) ([LICENSE](https://github.com/MicrosoftDocs/microsoft-style-guide/blob/master/LICENSE)).

The goal is to showcase how to build and maintain a full-featured style guide for Vale, including many examples of using [extension points](https://errata-ai.github.io/vale/styles/#extension-points) and a test suite using [Cucumber](https://cucumber.io/), [`yamllint`](https://github.com/adrienverge/yamllint), and [Travis CI](https://travis-ci.org/).

[![Build Status](https://travis-ci.org/errata-ai/Microsoft.svg?branch=master)](https://travis-ci.org/errata-ai/Microsoft) ![Vale version](https://img.shields.io/badge/vale-%3E%3D%20v1.7.0-blue.svg) ![license](https://img.shields.io/github/license/mashape/apistatus.svg)

## Getting Started

> :exclamation: Microsoft requires Vale >= **1.7.0**. :exclamation:
Expand Down
12 changes: 6 additions & 6 deletions features/rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ Feature: Rules
test.md:5:9:Microsoft.Avoid:Don't use 'and/or'.
test.md:5:34:Microsoft.ComplexWords:Consider using 'plenty' instead of 'abundance'.
test.md:7:8:Microsoft.Adverbs:Consider removing 'very'.
test.md:9:1:Microsoft.FirstPerson:Use first person (such as 'I') sparingly.
test.md:9:1:Microsoft.FirstPerson:Use first person (such as 'I ') sparingly.
test.md:9:27:Microsoft.Wordiness:Consider using 'enough' instead of 'an adequate number of'.
test.md:11:9:Microsoft.Vocab:Verify your use of 'ensure' with the A-Z word list.
test.md:17:1:Microsoft.FirstPerson:Use first person (such as 'I') sparingly.
test.md:17:1:Microsoft.FirstPerson:Use first person (such as 'I ') sparingly.
test.md:19:13:Microsoft.FirstPerson:Use first person (such as 'me') sparingly.
test.md:21:1:Microsoft.FirstPerson:Use first person (such as 'I'm') sparingly.
test.md:23:1:Microsoft.We:Try to avoid using first-person plural like 'We'.
test.md:25:9:Microsoft.FirstPerson:Use first person (such as 'my') sparingly.
test.md:27:14:Microsoft.FirstPerson:Use first person (such as 'mine') sparingly.
test.md:29:17:Microsoft.We:Try to avoid using first-person plural like 'us'.
test.md:31:1:Microsoft.We:Try to avoid using first-person plural like 'Let's'.
test.md:33:1:Microsoft.FirstPerson:Use first person (such as 'I,') sparingly.
test.md:33:1:Microsoft.FirstPerson:Use first person (such as 'I, ') sparingly.
test.md:33:21:Microsoft.We:Try to avoid using first-person plural like 'our'.
test.md:35:1:Microsoft.We:Try to avoid using first-person plural like 'We'.
test.md:35:8:Microsoft.ComplexWords:Consider using 'carry out|do' instead of 'accomplish'.
test.md:35:8:Microsoft.ComplexWords:Consider using 'carry out or do' instead of 'accomplish'.
"""

Scenario: Backend vs. Back-end
Expand All @@ -86,7 +86,7 @@ Feature: Rules
When I test "Dashes"
Then the output should contain exactly:
"""
test.md:3:42:Microsoft.Dashes:Remove the spaces around ''.
test.md:3:42:Microsoft.Dashes:Remove the spaces around ''.
"""

Scenario: Use of units
Expand Down Expand Up @@ -129,7 +129,7 @@ Feature: Rules
Then the output should contain exactly:
"""
test.md:3:10:Microsoft.Ellipses:In general, don't use an ellipsis.
test.md:5:13:Microsoft.Hyphens:'officially-' doesn't need a hyphen.
test.md:5:13:Microsoft.Hyphens:' officially-' doesn't need a hyphen.
test.md:7:1:Microsoft.OxfordComma:Use the Oxford comma in 'I like red, blue, green and'.
test.md:11:10:Microsoft.Quotes:Punctuation should be inside the quotes.
test.md:15:19:Microsoft.Semicolon:Try to simplify this sentence.
Expand Down

0 comments on commit bdd0ef2

Please sign in to comment.