-
Notifications
You must be signed in to change notification settings - Fork 139
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
YAML output issues #307
Comments
Personally, I think the linter should exit 1 if it finds errors, and 0 if it finds only warnings. |
Also ideally the tool will have some flag like gcc's |
We have that already! |
Is there anything actionable here? |
The invalid YAML is an issue. For multi-line strings, it should be: - message: >
Use the `google.api.field_behavior` annotation instead of " Required.
CLDR region code of the country/region of the address. This" in the leading
comments. For example, `string name = 1 [(google.api.field_behavior) = REQUIRED];`. The real reason this particular one is happening is because we are preserving a newline from input, but regardless, we should detect This also might be an issue in whatever YAML output dependency we are using. |
Yeah, I'm surprised that the tests for https://github.com/go-yaml/yaml seem a bit limited in coverage of string encoding. |
Similar to #306, using same commit of both api-linter and googleapis/googleapis.
Issues:
Unrelated to YAML, but probably not worth filing another issue:
api-linter
exits with code 0 if there are lint issues. This may be by design though.The text was updated successfully, but these errors were encountered: