Comments (4)
Can you provide more informtaion about error?
This config should work as you want:
- name: Lint changelog file
uses: docker://avtodev/markdown-lint:v1
with:
rules: './your/rules.js'
config: './your/config.yml'
args: './path/to/the/target.md'
from markdown-lint.
My action is at https://github.com/NTAP/rfc8312bis/blob/markdownlint/.github/workflows/markdownlint.yml and has this bit:
uses: docker://avtodev/markdown-lint:v1
with:
rules: './.markdownlint.json'
args: 'draft-*.md'
My rules are at https://github.com/NTAP/rfc8312bis/blob/markdownlint/.markdownlint.json and contain:
{
"default": true,
"MD029": {"style": "ordered" },
"MD034": false,
"MD040": false,
"MD041": false
}
The error is:
Error: Property 'names' of custom rule at index 0 is incorrect.
at newError (/usr/local/bin/markdownlint:2:204300)
at forProperty (/usr/local/bin/markdownlint:2:204531)
at Array.forEach (<anonymous>)
at forRule (/usr/local/bin/markdownlint:2:204391)
at Array.forEach (<anonymous>)
at validateRuleList (/usr/local/bin/markdownlint:2:204223)
at lintInput (/usr/local/bin/markdownlint:2:212115)
at Function.markdownlintSync [as sync] (/usr/local/bin/markdownlint:2:213059)
at lintAndPrint (/usr/local/bin/markdownlint:2:4558)
at Object.2390 (/usr/local/bin/markdownlint:2:4606)
from markdown-lint.
It seems like incorrect parameter is used. Try to use config
instead rules
from markdown-lint.
Thanks, that worked! (And was kinda non-obvious).
from markdown-lint.
Related Issues (5)
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 markdown-lint.