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

Skip processing plain YAML files marked as template #324

Merged
merged 3 commits into from
Mar 19, 2021

Conversation

pivotaljohn
Copy link
Contributor

@pivotaljohn pivotaljohn commented Mar 15, 2021

Addresses issue #232.

@pivotaljohn pivotaljohn force-pushed the detect-template branch 2 times, most recently from 0f913e9 to 9005c28 Compare March 15, 2021 03:50
@pivotaljohn pivotaljohn marked this pull request as ready for review March 15, 2021 04:02
pkg/files/file.go Outdated Show resolved Hide resolved
pkg/files/file.go Outdated Show resolved Hide resolved
pkg/files/file.go Outdated Show resolved Hide resolved
pkg/literal/annotations.go Outdated Show resolved Hide resolved
pkg/cmd/template/cmd.go Outdated Show resolved Hide resolved
@pivotaljohn pivotaljohn changed the title Detect when a file is a template Skip processing plain YAML files marked as template Mar 16, 2021
- make DocExtractor insensitive to "unknown comments", simplifying its
  usage
- rename yamltemplate.IsTemplate() to yamltemplate.HasTemplating(); the
  increase in precision is not only more accurate, but adds a touch of
  clarity to its usage.
- when we get serious calls for performance needs, we can optimize for
  reducing the number of mallocs. Until then, having a package-level
  variable for a constant like this isn't worth it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants