Skip to content

Commit

Permalink
Merge pull request #121 from articulate/style/perfsprint
Browse files Browse the repository at this point in the history
style(lint): address perfsprint issues
  • Loading branch information
mloberg authored May 14, 2024
2 parents 2f682c9 + 148fd0e commit d5112b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ issues:
exclude-rules:
- path: _test\.go
linters:
- goerr113
- err113

linters-settings:
gocyclo:
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func init() {
desc += fmt.Sprintf(" Defaults to `%v`.", s.Default)
}
if s.Deprecated != "" {
desc += fmt.Sprintf(" __Deprecated__: %s", s.Deprecated)
desc += " __Deprecated__: " + s.Deprecated
}
return strings.TrimSpace(desc)
}
Expand Down
18 changes: 9 additions & 9 deletions internal/provider/resource_site_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func init() {

func TestAccOhdearSite(t *testing.T) {
name := acctest.RandomWithPrefix("tf-acc-test")
url := fmt.Sprintf("https://example.com/%s", name)
resourceName := fmt.Sprintf("ohdear_site.%s", name)
updatedURL := fmt.Sprintf("%s/new", url)
url := "https://example.com/" + name
resourceName := "ohdear_site." + name
updatedURL := url + "/new"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -74,8 +74,8 @@ func TestAccOhdearSite(t *testing.T) {

func TestAccOhdearSite_EnableDisableChecks(t *testing.T) {
name := acctest.RandomWithPrefix("tf-acc-test")
url := fmt.Sprintf("https://example.com/%s", name)
resourceName := fmt.Sprintf("ohdear_site.%s", name)
url := "https://example.com/" + name
resourceName := "ohdear_site." + name

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -125,8 +125,8 @@ func TestAccOhdearSite_EnableDisableChecks(t *testing.T) {

func TestAccOhdearSite_TeamID(t *testing.T) {
name := acctest.RandomWithPrefix("tf-acc-test")
url := fmt.Sprintf("https://example.com/%s", name)
resourceName := fmt.Sprintf("ohdear_site.%s", name)
url := "https://example.com/" + name
resourceName := "ohdear_site." + name

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -156,8 +156,8 @@ func TestAccOhdearSite_TeamID(t *testing.T) {

func TestAccOhdearSite_HTTPDefaults(t *testing.T) {
name := acctest.RandomWithPrefix("tf-acc-test")
url := fmt.Sprintf("http://example.com/%s", name)
resourceName := fmt.Sprintf("ohdear_site.%s", name)
url := "http://example.com/" + name
resourceName := "ohdear_site." + name

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit d5112b9

Please sign in to comment.