Skip to content

Commit

Permalink
Merge pull request #70 from gutron/master
Browse files Browse the repository at this point in the history
Fix docstring lint: use correct quotes on symbols; limit line length
  • Loading branch information
Fuco1 authored Mar 21, 2024
2 parents f16a7ff + 9ef0655 commit a645c32
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 a645c32

Please sign in to comment.