Consider adding a command-line parameter to specify the root config file path
See original GitHub issueCan you make it so that this can be given a location where the config is.
The example use case is for ci. given directory structure
.gitlab
markdown-folder
When I create a stage I can specify a image with this cli installed so the config for this would be in the .gitlab folder currently I could do:
script:
- cd .gitlab/configfolder
- markdownlint-cli2 ../../**
but I would prefer
script:
- markdownlint-cli2 -c .gitlab/configfolder/conf.yml **
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Command-line syntax overview for System.CommandLine
An introduction to the command-line syntax that the System. ... The root command is the one that specifies the name of the app's...
Read more >Painless Configuration — Confuse 1.7.0 documentation
The first parameter is required; it's the name of your application, which will be used to search the system for a config file...
Read more >Sterling Connect:Direct for UNIX silent installation options file ...
Variable name Command‑line arguments Default value
cdai_installCmd= ‑‑installCmd None. Required parameter.
cdai_cpioFile= ‑‑cpioFile cdunix
cdai_installDir= ‑‑installDir None. Required parameter.
Read more >Configuration — pytest documentation
pytest determines a rootdir for each test run which depends on the command line arguments (specified test files, paths) and on the existence...
Read more >A Complete Guide to Linux Config Files | CBT Nuggets
Different Linux config files are used to configure the parameters and ... these configuration files will be edited through the command line, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another thing to consider, instead of naming the rules like MD123, you can use the text name like “line-length” which is a little more descriptive and might avoid the need to describe each rule in the list with a comment.
Glad to hear it, welcome to the future! 😃
FYI, now that it is JSONC, this simulated comment can become a real one: https://github.com/dgroomes/my-config/blob/9e9ed0d6b37a772b59453216f73f810f4bfcb333/markdownlint/.markdownlint-cli2.jsonc#L18