Skip to content

(maint) add condition for misleading warning #155

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

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

eputnam
Copy link
Contributor

@eputnam eputnam commented Jan 29, 2018

There is a warning that displays when there is no text outside of tags for a given component, this text would become the 'Overview' section. The warning says: [warn]: Missing documentation for Puppet class 'klass' at (stdin):4 The problem is that if the user has instead used the @summary tag, and is then using only tags, strings will report this warning even though there is clearly documentation. This adds a condition for the warning: If there is no text AND there are no tags, THEN output a warning saying there is no documentation.

There is a warning that displays when there is no text outside of tags for a given component, this text would become the 'Overview' section. The warning says: `[warn]: Missing documentation for Puppet class 'klass' at (stdin):4` The problem is that if the user has instead used the @summary tag, and is then using only tags, strings will report this warning even though there is clearly documentation. This adds a condition for the warning: If there is no text AND there are no tags, THEN output a warning saying there is no documentation.
@eputnam eputnam added the bugfix label Mar 26, 2018
@hunner hunner merged commit 64d7b0e into puppetlabs:master Mar 26, 2018
hunner added a commit that referenced this pull request Mar 26, 2018
(maint) add condition for misleading warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants