Skip to content

Commit e125537

Browse files
ferhatelmasLinkinStars
authored andcommitted
refactor(lint): add new linters and fix their issues
* gocritic * misspell * modernize (aside, bumping go would be nice) * testifylint * unconvert * unparam * whitespace related to #1432 Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
1 parent 4950009 commit e125537

102 files changed

Lines changed: 392 additions & 431 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.golangci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ linters:
2929
- bodyclose # checks whether HTTP response body is closed successfully
3030
- canonicalheader # checks whether net/http.Header uses canonical header
3131
- copyloopvar # detects places where loop variables are copied (Go 1.22+)
32+
- gocritic # provides diagnostics that check for bugs, performance and style issues
33+
- misspell # finds commonly misspelled English words in comments and strings
34+
- modernize # detects code that can be modernized to use newer Go features
35+
- testifylint # checks usage of github.com/stretchr/testify
36+
- unconvert # removes unnecessary type conversions
37+
- unparam # reports unused function parameters
38+
- whitespace # detects leading and trailing whitespace
3239

3340
formatters:
3441
enable:

i18n/cs_CZ.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Nemáte oprávnění pro aktualizaci.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/cy_GB.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Dim caniatâd i ddiweddaru.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/da_DK.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Ingen tilladelse til at opdatere.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/de_DE.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Keine Berechtigung zum Aktualisieren.
235235
content_cannot_empty:
236236
other: Der Inhalt darf nicht leer sein.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/en_US.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ backend:
235235
other: No permission to update.
236236
content_cannot_empty:
237237
other: Content cannot be empty.
238-
content_less_than_minumum:
238+
content_less_than_minimum:
239239
other: Not enough content entered.
240240
rank:
241241
fail_to_meet_the_condition:

i18n/es_ES.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Sin permiso para actualizar.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/fa_IR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: اجازه بروزرسانی ندارید.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/fr_FR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: Pas de permission pour mettre à jour.
235235
content_cannot_empty:
236236
other: Le contenu ne peut pas être vide.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

i18n/hi_IN.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ backend:
234234
other: No permission to update.
235235
content_cannot_empty:
236236
other: Content cannot be empty.
237-
content_less_than_minumum:
237+
content_less_than_minimum:
238238
other: Not enough content entered.
239239
rank:
240240
fail_to_meet_the_condition:

0 commit comments

Comments
 (0)