Skip to content

Commit

Permalink
linter: rename range relation enum's package name
Browse files Browse the repository at this point in the history
  • Loading branch information
GokselKUCUKSAHIN committed Dec 28, 2024
1 parent 73ec98d commit d56b187
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ run-test:
linter:
golangci-lint run -c .golangci.yml --timeout=5m -v --fix

fixfieldalignment:
fieldalignment --fix ./...

unit-test-pretty:
go test ./... -count=1 -v -json | gotestfmt

Expand Down
4 changes: 2 additions & 2 deletions es/enums/range-relation/range_relation.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package range_relation provides utilities for working with range relations.
// Package rangerelation provides utilities for working with range relations.
//
// RangeRelation is a string type used to specify the spatial or logical relationship
// between two ranges, such as whether one range is entirely within another,
Expand All @@ -14,7 +14,7 @@
// - Within: Indicates that one range is entirely within another.
// - Contains: Indicates that one range entirely contains another.
// - Intersects: Indicates that the ranges overlap or intersect at least partially.
package range_relation
package rangerelation

// RangeRelation represents the relationship between two ranges.
//
Expand Down
2 changes: 1 addition & 1 deletion es/enums/range-relation/range_relation_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package range_relation_test
package rangerelation_test

import (
"testing"
Expand Down
3 changes: 2 additions & 1 deletion es/range_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package es_test

import (
range_relation "github.com/Trendyol/es-query-builder/es/enums/range-relation"
"testing"

range_relation "github.com/Trendyol/es-query-builder/es/enums/range-relation"

"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)
Expand Down

0 comments on commit d56b187

Please sign in to comment.