From d56b187607b385c94e520e1136ba9b31230a495d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ksel=20K=C3=BC=C3=A7=C3=BCk=C5=9Fahin?= Date: Sat, 28 Dec 2024 17:42:37 +0300 Subject: [PATCH] linter: rename range relation enum's package name --- Makefile | 3 +++ es/enums/range-relation/range_relation.go | 4 ++-- es/enums/range-relation/range_relation_test.go | 2 +- es/range_test.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cafd148..9b398c4 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/es/enums/range-relation/range_relation.go b/es/enums/range-relation/range_relation.go index acc4270..445da34 100644 --- a/es/enums/range-relation/range_relation.go +++ b/es/enums/range-relation/range_relation.go @@ -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, @@ -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. // diff --git a/es/enums/range-relation/range_relation_test.go b/es/enums/range-relation/range_relation_test.go index d00d352..2863ee5 100644 --- a/es/enums/range-relation/range_relation_test.go +++ b/es/enums/range-relation/range_relation_test.go @@ -1,4 +1,4 @@ -package range_relation_test +package rangerelation_test import ( "testing" diff --git a/es/range_test.go b/es/range_test.go index 972dec1..4d48589 100644 --- a/es/range_test.go +++ b/es/range_test.go @@ -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" )