Contains rules, vocabulary, and basic .vale.ini
.
By Vale's standard, it is considered a complete package.
More information about Vale packages here
- Install the Vale CLI. Instructions
- If
.vale.ini
doesn't already exist in your repository add the following configuration as a base config. - Run
vale sync
- this will sync download/sync the styles from your.vale.ini
. Remember to add the styles to.gitignore
. Instructions](https://vale.sh/docs/topics/packages/#packages-and-vcs). - Run
vale .
to lint all files in your repository.
.pre-commit-config.yaml
- repo: local
hooks:
- id: inline-vale-lint-with-bash
name: inline-vale-lint-with-bash
entry: bash -c 'vale .'
language: system
types: [text]
pass_filenames: true
You may ignore lines, words, or sections in your markdown to be able to write words that are giving false-positive errors in a markdown file by following these examples.
store
is ambiguous and might report errors since it is a non-accepted synonym for Business Unit
.
Follow this example to get past it while we try to resolve the root issue.
<!-- vale Extenda.BusinessUnits = NO -->
This sentence is: to store an entity in a database.
<!-- vale Extenda.BusinessUnits = YES -->
Set up pre-commit hooks:
pre-commit install
Installing dependencies for testing
npm install
The test harness is made up of the following:
- Style yaml file. Located under
Extenda/styles/Extenda
. - Fixture test folder. For example
fixtures/Terms
. This folder contains:.vale.ini
- fixture test configuration.test.md
- markdown file that will be linted for errors, warning, and/or suggestions.
- Rules file that will assert the lint of the
test.md
file above. Located underfeatures/rules.feature
To run the tests:
npm run test
Tests are based on naming conventions.
A folder under the fixtures
folder MUST match the corresponding style file under Extenda/styles/
.
For example,
the test fixture folder fixtures/BusinessUnits
MUST be named the same as Extenda/styles/Extenda/BusinessUnits.yml
.
Here is a scenario where we want to add a new style file name New.yml
- Create style file
.Extenda/styles/Extenda/New.yml
- Create fixture folder
fixtures/New
- Create vale.ini config for just this style file
fixtures/New/.vale.ini
- Create test.md file that will some lines that will pass and some that will fail
fixtures/New/test.md
- Add a section for
New
infeatures/rules.feature
.
All C4 diagrams must be created with Structurizr DSL. Use the provided
dsl2png.sh
script to create PNG images from the DSL. Use the --watch
flag while making changes.
This will give a live preview of the diagrams in your browser at http://localhost:3000.
./dsl2png.sh --watch
💡 On Windows 10? Use
dsl2png.cmd
instead.
-
Package config
StylesPath
is set to.github/styles
. It should work with juststyles
, but that creates a duplicate styles folder in the root of the consuming repo. If we default our styles to be located under .github/styles we are OK. -
If you want to run Vale as an NPM action, you can use the module (@ocular-d/vale-bin)[https://www.npmjs.com/package/@ocular-d/vale-bin]. This module is not official and might not work with the
glob
patterns specified in your.vale.ini
file.
The docker-vale maintainers are the members of the following team:
Distributed under the MIT License. See LICENSE for more information.