Skip to content

Commit

Permalink
Fix docstring lint: use correct quotes on symbols; limit line length
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Gut committed Mar 21, 2024
1 parent f16a7ff commit 9ef0655
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terraform-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@

(defun terraform--get-resource-provider-source (provider &optional dir)
"Return Terraform provider source for PROVIDER located in DIR.
Terraform provider source is searched in 'required_provider' declaration
Terraform provider source is searched in `required_provider' declaration
in current buffer or in other Terraform files located in the same directory
of the file of current buffer. If still not found, the provider source is
searched by running command 'terraform providers'.
searched by running command `terraform providers'.
The DIR parameter is optional and used only for tests."
(goto-char (point-min))
;; find current directory if it's not specified in arguments
Expand All @@ -285,7 +285,8 @@ The DIR parameter is optional and used only for tests."
provider-source))

(defun terraform--get-resource-provider-source-in-buffer (provider)
"Search and return provider namespace for PROVIDER in current buffer. Return nil if not found."
"Search and return provider namespace for PROVIDER in current buffer.
Return nil if not found."
(goto-char (point-min))
(if (and (re-search-forward "^terraform[[:blank:]]*{" nil t)
(re-search-forward "^[[:blank:]]*required_providers[[:blank:]]*{" nil t)
Expand Down

0 comments on commit 9ef0655

Please sign in to comment.