diff --git a/README.md b/README.md index 0634bcb..8af1231 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,15 @@ make ``` ## TODO -- Linters -- Tests +- Linters +- Tests - Homebrew - More commands - Blockchain support - IPO in next year +## CHANGELOG +[CHANGELOG HERE](https://github.com/temamagic/pwe/CHANGELOG.md) ## 🤝 Contributing diff --git a/main.go b/main.go index d5fbe49..f562559 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ func main() { fmt.Println("Що ти зробив:") args := strings.Split(s, " ") - cmd := exec.Command("git", args[1:]...) + cmd := exec.Command("git", args[1:]...) //nolint:gosec path, _ := os.Getwd() cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr diff --git a/replacer.go b/replacer.go index b3db453..6164df8 100644 --- a/replacer.go +++ b/replacer.go @@ -21,6 +21,7 @@ var replacer = strings.NewReplacer( "я", "z", "ч", "x", "с", "c", "м", "v", "и", "b", "т", "n", "ь", "m", ) +// Replace replaces string by pair groups func Replace(s string) string { return replacer.Replace(s) } diff --git a/replacer_test.go b/replacer_test.go index 24c43f9..f3f9be9 100644 --- a/replacer_test.go +++ b/replacer_test.go @@ -22,7 +22,7 @@ func TestReplace(t *testing.T) { } for _, tt := range tests { t.Run(tt.input, func(t *testing.T) { - assert.Equal(t, tt.want, Replace(tt.input)) + assert.Equal(t, tt.want, Replace(tt.input)) //nolint:scopelint }) } }