Anton Telyshev

Results 131 comments of Anton Telyshev

I don't mean @Arnold1 problem, but about https://github.com/mailru/easyjson/issues/293#issuecomment-656142950 The vendor receives the packages that easyjson uses in its generated files. They should not break the work of the binary, which,...

+1 Maybe to add `FractPart()` to be consistent with `IntPart()`?

+1 ```go type Event interface { eventMarker() } type event struct{} // func (*event) eventMarker() {} type SomeEvent struct { event // ... } ``` ``` field `event` is unused...

@ldez Thanks! https://github.com/dominikh/go-tools/issues/1312

And magic. Such code linted ok: ```go func adaptRPState(s fsmrp.StateName) pbRp.State { //nolint:nolintlint switch s { ```

After another yet cache cleaning last working variant: ```go func adaptRPState(s fsmrp.StateName) pbRp.State { //nolint:nolintlint switch s { //nolint:exhaustive ```

I prepared more complex example similar to project code. [nonolint.zip](https://github.com/golangci/golangci-lint/files/6403109/nonolint.zip) ```go func adaptTigerToInt(t tigers.Cat) int { switch t { //nolint:exhaustive case tigers.Tiger1: return 1 } return 0 } /* ▶...

It seems like exhaustive's issue for type alias supporting.