Skip to content

Commit

Permalink
Merge pull request #2 from ikawaha/feature/old-form-to-new_20221122
Browse files Browse the repository at this point in the history
Add a replacer of old form to new form
  • Loading branch information
ikawaha authored Nov 22, 2022
2 parents a2b1d03 + 2903e04 commit 9613c45
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ linters:
- exhaustive
- asciicheck
- scopelint
- gosec
- structcheck
- varcheck
- deadcode
presets:
- bugs
- unused
Expand Down
3 changes: 3 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package kanji is a library for the Japanese kanji,
// including the regular-use kanji characters (常用漢字表), etc.
package kanji
2 changes: 1 addition & 1 deletion for_personal_name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestIsForPersonalNames(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error, %v", err)
}
defer f.Close() //nolint: gosec
defer f.Close()
s := bufio.NewScanner(f)
s.Scan()
line := s.Text()
Expand Down
4 changes: 2 additions & 2 deletions regularuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestIs_Golden(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer f.Close() //nolint: gosec
defer f.Close()
s := bufio.NewScanner(f)
var line int
for s.Scan() {
Expand Down Expand Up @@ -61,7 +61,7 @@ func TestIsOldFormRegularUse(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer f.Close() //nolint: gosec
defer f.Close()
s := bufio.NewScanner(f)
var line int
for s.Scan() {
Expand Down
Loading

0 comments on commit 9613c45

Please sign in to comment.