Chore: Enable scopelint Go linter (#25896)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-29 17:04:38 +02:00
committed by GitHub
parent a5fb6bddbe
commit d1e6214a4a
28 changed files with 45 additions and 4 deletions
+2
View File
@@ -42,6 +42,7 @@ func TestGetHomeDashboard(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
dash := dtos.DashboardFullWithMeta{}
dash.Meta.IsHome = true
@@ -801,6 +802,7 @@ func TestDashboardApiEndpoint(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
mock := &dashboards.FakeDashboardService{
SaveDashboardError: tc.SaveError,
}