Skip to content

Commit 7680fdb

Browse files
temporary commit for sonar test 2
1 parent ee9df19 commit 7680fdb

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

shield/pkg/shield/handler/checkFunctions.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525

2626
common "github.com/IBM/integrity-enforcer/shield/pkg/common/common"
2727
config "github.com/IBM/integrity-enforcer/shield/pkg/shield/config"
28-
handlerutil "github.com/IBM/integrity-enforcer/shield/pkg/shield/handlerutil"
2928
sign "github.com/IBM/integrity-enforcer/shield/pkg/shield/sign"
3029
)
3130

@@ -75,7 +74,7 @@ func inScopeCheck(reqc *common.ReqContext, config *config.ShieldConfig, data *Ru
7574
}
7675

7776
func formatCheck(reqc *common.ReqContext, config *config.ShieldConfig, data *RunData, ctx *CheckContext) *DecisionResult {
78-
if ok, msg := handlerutil.ValidateResource(reqc, config.Namespace); !ok {
77+
if ok, msg := ValidateResource(reqc, config.Namespace); !ok {
7978
ctx.Allow = false
8079
ctx.ReasonCode = common.REASON_VALIDATION_FAIL
8180
ctx.Message = msg
@@ -220,7 +219,7 @@ func singleProfileCheck(singleProfile rspapi.ResourceSigningProfile, reqc *commo
220219
var mutResult *common.MutationEvalResult
221220
var err error
222221
if reqc.IsUpdateRequest() {
223-
mutResult, err = handlerutil.NewMutationChecker().Eval(reqc, singleProfile)
222+
mutResult, err = NewMutationChecker().Eval(reqc, singleProfile)
224223
if err != nil {
225224
return false, common.REASON_ERROR, err.Error(), nil, mutResult
226225
}

shield/pkg/shield/handlerutil/mutation.go renamed to shield/pkg/shield/handler/mutation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515
//
1616

17-
package handlerutil
17+
package shield
1818

1919
import (
2020
"strings"

shield/pkg/shield/handlerutil/patch.go renamed to shield/pkg/shield/handler/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515
//
1616

17-
package handlerutil
17+
package shield
1818

1919
import (
2020
"encoding/json"

shield/pkg/shield/handlerutil/validation.go renamed to shield/pkg/shield/handler/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// limitations under the License.
1515
//
1616

17-
package handlerutil
17+
package shield
1818

1919
import (
2020
"encoding/json"

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sonar.projectKey=open-cluster-management_integrity-shield
22
sonar.projectName=integrity-shield
33
sonar.sources=.
4-
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**,shield/pkg/apis/**
4+
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**,shield/pkg/apis/**,shield/pkg/client/**,shield/pkg/plugins/**,integrity-shield-operator/pkg/api/**
55
sonar.tests=.
66
sonar.test.inclusions=**/*_test.go
77
sonar.test.exclusions=**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**

0 commit comments

Comments
 (0)