Skip to content

feat: add linter config #1

feat: add linter config

feat: add linter config #1

Triggered via push December 15, 2024 17:05
Status Failure
Total duration 3m 30s
Artifacts

linter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: cmd/migrator/main.go#L18
undefined: minio (typecheck)
lint: cmd/migrator/main.go#L35
undefined: minio (typecheck)
lint: cmd/migrator/main.go#L72
undefined: minio (typecheck)
lint: internal/service/middleware/redis.go#L11
undefined: redis (typecheck)
lint: internal/service/middleware/redis.go#L27
undefined: redis (typecheck)
lint: internal/service/session/redis_session.go#L19
undefined: redis (typecheck)
lint: internal/ads/controller/ads_controller.go#L1
: # 2024_2_FIGHT-CLUB/internal/ads/controller [2024_2_FIGHT-CLUB/internal/ads/controller.test]
lint: internal/ads/controller/ads_controller_test.go#L34
cannot use mockUseCase (variable of type *mocks.MockAdUseCase) as gen.AdsClient value in argument to NewAdHandler: *mocks.MockAdUseCase does not implement gen.AdsClient (missing method AddToFavorites)
lint: internal/ads/controller/ads_controller_test.go#L48
unknown field Cityname in struct literal of type struct{UUID string "gorm:\"type:uuid;primaryKey;default:gen_random_uuid();column:uuid\" json:\"id\""; CityID int "gorm:\"column:cityId;not null\" json:\"cityId\""; AuthorUUID string "gorm:\"column:authorUUID;not null\" json:\"authorUUID\""; Address string "gorm:\"type:varchar(255);column:address\" json:\"address\""; PublicationDate time.Time "gorm:\"type:date;column:publicationDate\" json:\"publicationDate\""; Description string "gorm:\"type:text;size:1000;column:description\" json:\"description\""; RoomsNumber int "gorm:\"column:roomsNumber\" json:\"roomsNumber\""; City domain.City "gorm:\"foreignKey:CityID;references:ID\" json:\"-\""; Author domain.User "gorm:\"foreignKey:AuthorUUID;references:UUID\" json:\"-\""; ViewsCount int "gorm:\"column:viewsCount;default:0\" json:\"viewsCount\""; SquareMeters int "gorm:\"column:squareMeters\" json:\"squareMeters\""; Floor int "gorm:\"column:floor\" json:\"floor\""; BuildingType string "gorm:\"type:text;size:255;column:buildingType\" json:\"buildingType\""; HasBalcony bool "gorm:\"type:bool;default:false;column:hasBalcony\" json:\"hasBalcony\""; HasElevator bool "gorm:\"type:bool;default:false;column:hasElevator\" json:\"hasElevator\""; HasGas bool "gorm:\"type:bool;default:false;column:hasGas\" json:\"hasGas\""; LikesCount int "gorm:\"column:likesCount;default:0\" json:\"likesCount\""; Priority int "gorm:\"column:priority;default:0\" json:\"priority\""; EndBoostDate time.Time "gorm:\"type:date;column:endBoostDate\" json:\"endBoostDate\""; CityName string "json:\"cityName\""; AdDateFrom time.Time "json:\"adDateFrom\""; AdDateTo time.Time "json:\"adDateTo\""; AdAuthor domain.UserResponce "gorm:\"-\" json:\"author\""; Images []domain.ImageResponse "gorm:\"-\" json:\"images\""; Rooms []domain.AdRoomsResponse "gorm:\"-\" json:\"rooms\""}, but does have CityName
lint: internal/ads/controller/ads_controller_test.go#L96
cannot use mockUseCase (variable of type *mocks.MockAdUseCase) as gen.AdsClient value in argument to NewAdHandler: *mocks.MockAdUseCase does not implement gen.AdsClient (missing method AddToFavorites)
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636