-
Notifications
You must be signed in to change notification settings - Fork 41
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
Configuration file handling #13
Comments
I have some thoughts on this: As a first step I want to move some of the complexity of Any more thoughts on format and structure of the config file? |
My only thought is it should mirror the error suppression annotations from #52. |
Here is a suggested configuration file structure. I like json because it is so simple to parse... We also need to decide on a default conf file name. I suggest {
"paths": ["pathOne", "pathTwo"],
"ignore-paths": ["pathTwo/subpath"],
"extensions": ["php"],
"whitelist-rules": ["rulename"],
"blacklist-rules": ["rulename"],
"disable-annotations": true,
"format": "dots",
"verbose": true,
"debug": true,
"ansi": true
} What do you think? @enygma @redbeardcreator |
It looks good to me. I also prefer JSON. But Any format is fine as long as it's consistent. |
yeah, looks good to me too...is the "extensions" setting just to determine the file extensions to check? Would it ever really need to be anything other than .php? |
I have some older projects that used |
It's been suggested in #10 that a configuration file should be added to allow for more customization than just the command line options allow.
Considerations:
The text was updated successfully, but these errors were encountered: