Conversation
|
|
| .yml | ||
| ``` | ||
| Assuming your command shell supports the use of wildcards, you can use wildcards when specifying the names of files to be validated. | ||
| If the string ends with '/', it will be searched recursively for supported files. |
There was a problem hiding this comment.
Is this necessary for the code climate support?
There was a problem hiding this comment.
Not at all, but a config.json passed by codeclimate file looks like this:
{
"enabled":true,
"channel":"stable",
"include_paths": [
".gitignore",
"public/",
".gitattributes",
"LICENSE",
".gitlab-ci.yml",
"Dockerfile",
"docker-entrypoint.d/",
".codeclimate.yml"
],
"debug":"1"
}when executing in biletado/apidocs.
One can still add a files section in .codeclimate.yml like I do at the moment for testing until the implementation for the recursive filesearch is implemented. This is then added to the config.json. You can have a look at the .codeclimate.yml I used in the mentioned project for testing this as an engine.
fa9e7b6 to
0333872
Compare
Signed-off-by: Matthias Blümel <[email protected]>
Signed-off-by: Matthias Blümel <[email protected]>
Signed-off-by: Matthias Blümel <[email protected]>
94b4d37 to
0a238fb
Compare
See: https://docs.gitlab.com/ee/ci/testing/code_quality.html#required-images Signed-off-by: Matthias Blümel <[email protected]>
|
gitlab integration looks nice :) |

PR summary
This PR adds the compatibility to run as CodeClimate Engine.
Closes: #512
Todo
(but they are not shown in the "Changes" like they should because the project has an OSS ultimate license :/)needs a run on the target branchinclude_pathsFROM jamescooke/openapi-validator:$versionWORKDIR /codeENTRYPOINT ["lint-openapi", "--config", "/config.json", "--codeclimate"]ContainerfilePR Checklist
General checklist
Please make sure that your PR fulfills the following requirements: