Skip to content

Commit

Permalink
temporary commit for sonar test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokuni-kitahara committed Dec 11, 2020
1 parent ee9df19 commit 7680fdb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions shield/pkg/shield/handler/checkFunctions.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (

common "github.com/IBM/integrity-enforcer/shield/pkg/common/common"
config "github.com/IBM/integrity-enforcer/shield/pkg/shield/config"
handlerutil "github.com/IBM/integrity-enforcer/shield/pkg/shield/handlerutil"
sign "github.com/IBM/integrity-enforcer/shield/pkg/shield/sign"
)

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

func formatCheck(reqc *common.ReqContext, config *config.ShieldConfig, data *RunData, ctx *CheckContext) *DecisionResult {
if ok, msg := handlerutil.ValidateResource(reqc, config.Namespace); !ok {
if ok, msg := ValidateResource(reqc, config.Namespace); !ok {
ctx.Allow = false
ctx.ReasonCode = common.REASON_VALIDATION_FAIL
ctx.Message = msg
Expand Down Expand Up @@ -220,7 +219,7 @@ func singleProfileCheck(singleProfile rspapi.ResourceSigningProfile, reqc *commo
var mutResult *common.MutationEvalResult
var err error
if reqc.IsUpdateRequest() {
mutResult, err = handlerutil.NewMutationChecker().Eval(reqc, singleProfile)
mutResult, err = NewMutationChecker().Eval(reqc, singleProfile)
if err != nil {
return false, common.REASON_ERROR, err.Error(), nil, mutResult
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// limitations under the License.
//

package handlerutil
package shield

import (
"strings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// limitations under the License.
//

package handlerutil
package shield

import (
"encoding/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// limitations under the License.
//

package handlerutil
package shield

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sonar.projectKey=open-cluster-management_integrity-shield
sonar.projectName=integrity-shield
sonar.sources=.
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**,shield/pkg/apis/**
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**,shield/pkg/apis/**,shield/pkg/client/**,shield/pkg/plugins/**,integrity-shield-operator/pkg/api/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/*_generated*.go,**/*_generated/**,**/vendor/**,**/e2e/**,**/test/**
Expand Down

0 comments on commit 7680fdb

Please sign in to comment.