Comments (4)
This has been tested with the following
# We ignore the following
# - frontmatter like blocks (we cannot check if it is at the begining of the file)
# - codeblocks inside "```"
BlockIgnores = '(?s) *(^---$.*?^---$)',\
'(?s) *(```.*?```)'
The strange thing is that TokenIgnores
has the opposite behaviour. It doesn't work with single quotes and does work when there is not quote.
The following works
# We ignore the following
# - {{ ... }}
# - {: ... }
TokenIgnores = (\{\{[^\n$]+\}\}),\
(\{:[^\n$]+\})
from vale.
I have a feeling the space that is in BlockIgnores
, but not in TokenIgnores
, might have some effect. I feel this unknown should be tested further and resolved before the docs are updated.
Also, possibly (un)related, if you add BlockIgnores
and TokenIgnores
to your config, they don't seem to show up in vale ls-config
:
{
"BlockIgnores": {},
[...]
"TokenIgnores": {},
"WordTemplate": "",
"DictionaryPath": "",
"NLPEndpoint": ""
}
from vale.
I can't reproduce either of these issues (quoting or ls-config
).
BlockIgnores = '(?s) *(^---$.*?^---$)',\
'(?s) *(```.*?```)'
Both of these blocks (front matter and "```"-delimited code) are ignored by default.
from vale.
heh, I accidentally put the format-specific settings in the core settings area 🤦
I don't know if there is config validation, but it might be worth checking if there are format-specific settings in the core area to prevent foot shooting.
from vale.
Related Issues (20)
- Google.Headers producing false positives HOT 5
- Vale does not report the correct replacement term
- Mixing escaped parentheses and non-capturing groups in substitution rule leads to an error HOT 1
- The order of Vocab vs BasedOnStyles in a vale.ini affecting raw-scoped rules HOT 3
- Error while adding additional dictionaries
- How to apply Format-specific settings only to files that match a specific filename (i.e. a specific file pattern) HOT 2
- Docker image for 3.4.1 not available in dockerhub
- Ruby format treats interpolated strings as comments. HOT 5
- package severity level
- Vale can't find .ini in environment variable HOT 2
- Glob flag not working as expected
- `minalertlevel` via CLI HOT 1
- Provide a way to add exclusions to repetitions HOT 1
- Uxpected behaviour with exceptions HOT 4
- npm package HOT 1
- existence rule skips match in RST HOT 2
- Different rules for different file types? HOT 3
- How do I view spelling suggestions? HOT 1
- Incorrect suggestions with extends: substitution and ignorecase: true HOT 1
- Add a correct word marked as misspelled into a custom ignore file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vale.