Skip to content

check: Returns incorrect valid extensions list in error message with registry directory structure #37

@bflad

Description

@bflad

Version

v0.7.0-dev

Description

When running against a registry directory structure (docs/), it returns the legacy directory structure extensions instead of the registry expected .md only.

Expected Behavior

$ tfproviderdocs check
Error checking Terraform Provider documentation: 11 errors occurred:
  * docs/data-sources/radius_profile.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/data-sources/user_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/data-sources/wlan_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/guides/csv-users.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/firewall_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/firewall_rule.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/network.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/port_forward.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/user.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/user_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]
  * docs/resources/wlan.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.md]

Actual Behavior

$ tfproviderdocs check
Error checking Terraform Provider documentation: 11 errors occurred:
	* docs/data-sources/radius_profile.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/data-sources/user_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/data-sources/wlan_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/guides/csv-users.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/firewall_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/firewall_rule.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/network.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/port_forward.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/user.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/user_group.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]
	* docs/resources/wlan.html.markdown: error checking file extension: file does not end with a valid extension, valid extensions: [.html.markdown .html.md .markdown .md]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions