Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuration via configuration file #52

Open
raphaelstolt opened this issue May 12, 2017 · 4 comments
Open

Support configuration via configuration file #52

raphaelstolt opened this issue May 12, 2017 · 4 comments

Comments

@raphaelstolt
Copy link
Contributor

Since the number of options keeps growing it would be considerable to allow their configuration via a dedicated configuration file. Whether this happens via a programmtic approach, like done by the PHP Coding Standards Fixer or via a configuration format of choice e.g. yaml, json or ini is up to you.

@vpassapera
Copy link

vpassapera commented Jun 13, 2017

Maybe I can take a look at this and implement something.

I guess I'll start by implementing a yaml configuration, and then move on from there?

Would that be acceptable? (e.g. a PR for each type of configuration format)

@povils
Copy link
Owner

povils commented Jun 16, 2017

Hey, thanks for interest :)
I'm not sure what do you mean by each type of configuration format?:)
YAML is more than enough

@cavo789
Copy link

cavo789 commented Oct 23, 2019

Hello

First, thank you so much for your tool ! Really useful.

Like Raphael, I would appreciate the possibility to have a configuration file (like f.i. phpmnd.json) where I can define, for instance (my need), which folders / files should be ignored.

Why ? Because I'm using a global phpmnd.cmd (under Windows) script where I've put my logic for all my repositories and, in any of my repo, I've create a symlink to my global phpmnd.cmd file. So, I can't change the file to work on a specific repo.

By supporting a configuration file, I'll be able to do something like --config %currentdir%/phpmnd.json like I did for others PHP quality tools (phpcs, phpstan, phan, and many others).

Do you think such feature can be added?

Many thanks in advance!

@MGatner
Copy link

MGatner commented Jul 10, 2022

Also keen on this feature! It really helps when templating across multiple repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants