Skip to content

Commit

Permalink
chore: goimports-reviser new version
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Oct 16, 2023
1 parent 52b27bb commit cf69607
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 11 deletions.
4 changes: 3 additions & 1 deletion embedded.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package tracee

import _ "embed"
import (
_ "embed"
)

//go:embed signatures/rego/helpers.rego
var RegoHelpersCode string
4 changes: 3 additions & 1 deletion pkg/cgroup/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cgroup

import "fmt"
import (
"fmt"
)

type VersionNotSupported struct{}

Expand Down
4 changes: 3 additions & 1 deletion pkg/counter/counter_bench_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package counter

import "testing"
import (
"testing"
)

// Increment

Expand Down
4 changes: 3 additions & 1 deletion pkg/filters/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package filters

import "fmt"
import (
"fmt"
)

func UnsupportedOperator(op Operator) error {
return fmt.Errorf("failed to add filter: unsupported operator %s", op.String())
Expand Down
4 changes: 3 additions & 1 deletion pkg/logger/logcounter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package logger

import "sync"
import (
"sync"
)

type logOrigin struct {
File string
Expand Down
4 changes: 3 additions & 1 deletion pkg/mount/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package mount

import "fmt"
import (
"fmt"
)

func UnmountedDirNotEmpty(dir string) error {
return fmt.Errorf("unmounted directory %v isn't empty", dir)
Expand Down
4 changes: 3 additions & 1 deletion pkg/policy/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package policy

import "fmt"
import (
"fmt"
)

func PolicyNilError() error {
return fmt.Errorf("policy cannot be nil")
Expand Down
4 changes: 3 additions & 1 deletion pkg/proctree/thread.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package proctree

import "sync"
import (
"sync"
)

// Thread represents a thread.
type Thread struct {
Expand Down
4 changes: 3 additions & 1 deletion pkg/utils/numbers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package utils

import "math"
import (
"math"
)

// RoundToClosestN rounds a number to the closest multiple of n.
func RoundToClosestN(val int, n int) int {
Expand Down
4 changes: 3 additions & 1 deletion tests/testutils/cpu.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package testutils

import "golang.org/x/sys/unix"
import (
"golang.org/x/sys/unix"
)

const CPUForTests = 0 // CPU to pin test processes to

Expand Down
4 changes: 3 additions & 1 deletion types/datasource/proctree.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package datasource

import "time"
import (
"time"
)

// ProcessInfo is the user facing representation of a process data at a specific time.
type ProcessInfo struct {
Expand Down

0 comments on commit cf69607

Please sign in to comment.