Skip to content

Commit 9f7751b

Browse files
author
Gabe Fuentes
committed
fix: Linting prefers these non-required fields removed
1 parent dacf3dd commit 9f7751b

5 files changed

+6
-9
lines changed

newrelic/data_source_newrelic_key_transaction.go

-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ func dataSourceNewRelicKeyTransaction() *schema.Resource {
3434
},
3535
"domain": {
3636
Type: schema.TypeString,
37-
Required: false,
3837
Computed: true,
3938
Description: "The Domain of the key transaction in New Relic.",
4039
},
4140
"type": {
4241
Type: schema.TypeString,
43-
Required: false,
4442
Computed: true,
4543
Description: "The Entity type of the key transaction in New Relic.",
4644
},

newrelic/resource_newrelic_alert_muting_rule.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package newrelic
33
import (
44
"context"
55
"fmt"
6-
"github.com/newrelic/newrelic-client-go/v2/pkg/alerts"
76
"log"
87
"regexp"
98
"time"
109

10+
"github.com/newrelic/newrelic-client-go/v2/pkg/alerts"
11+
1112
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1213
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1314

newrelic/resource_newrelic_entity_tags_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ package newrelic
66
import (
77
"context"
88
"fmt"
9-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
10-
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
11-
"github.com/newrelic/newrelic-client-go/v2/pkg/common"
129
"regexp"
1310
"testing"
1411
"time"
12+
13+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
14+
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
15+
"github.com/newrelic/newrelic-client-go/v2/pkg/common"
1516
)
1617

1718
func TestAccNewRelicEntityTags_Basic(t *testing.T) {

newrelic/resource_newrelic_group_management.go

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ func resourceNewRelicGroup() *schema.Resource {
4242
Type: schema.TypeSet,
4343
Description: "IDs of users to be added to the group.",
4444
Optional: true,
45-
Default: nil,
4645
Elem: &schema.Schema{Type: schema.TypeString},
4746
},
4847
},

newrelic/resource_newrelic_key_transaction.go

-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ func resourceNewRelicKeyTransaction() *schema.Resource {
5252
"domain": {
5353
Type: schema.TypeString,
5454
Description: "Domain of the entity.",
55-
Required: false,
5655
Computed: true,
5756
},
5857
"type": {
5958
Type: schema.TypeString,
6059
Description: "Type of the entity.",
61-
Required: false,
6260
Computed: true,
6361
},
6462
},

0 commit comments

Comments
 (0)