question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider adding a command-line parameter to specify the root config file path

See original GitHub issue

Can 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Jan 19, 2022

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.

1reaction
DavidAnsoncommented, Jan 19, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found