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

Include schema file in the generated infection.json.dist & docs #1432

Closed
theofidry opened this issue Nov 20, 2020 · 1 comment · Fixed by #1553
Closed

Include schema file in the generated infection.json.dist & docs #1432

theofidry opened this issue Nov 20, 2020 · 1 comment · Fixed by #1553

Comments

@theofidry
Copy link
Member

If you have:

{
    "$schema": "./vendor/infection/infection/resources/schema.json",

    "source": {
        "directories": [
            "src"
        ]
    },
    "logs": {
        "text": "infection.log"
    },
    "mutators": {
        "@default": true,
        "MBString": false,
        "global-ignoreSourceCodeByRegex": [
            "Assert::.*"
        ]
    }
}

Then as you type "Me" you will get the auto-completion in some IDEs such as PhpStorm, which IMO is a nice to have. There is several places where we can add it:

  • The docs
  • The generated infection.json.dist (will change to a URL I think depending of if it's generating a PHAR or not)
  • Our own infection.json.dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment