Skip to content

Commit

Permalink
ci: lint file names
Browse files Browse the repository at this point in the history
remove copy pasta
  • Loading branch information
ccoVeille committed Dec 13, 2024
1 parent cd2413f commit 84d0a7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ linters-settings:
# report when replacing `errors.New(fmt.Sprintf())` with `fmt.Errorf()` is possible
- name: errorf

# enforces conventions on source file names.
- name: filename-format

# incrementing an integer variable by 1 is recommended to be done using the `++` operator
- name: increment-decrement

Expand Down
8 changes: 3 additions & 5 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
# ls-lint configuration file. More information on the file format can be found on https://ls-lint.org/
ls:
.md: screamingsnakecase # README.md or CODE_OF_CONDUCT.md
.OLD: screamingsnakecase # LICENSE.OLD
.good.txt: pascalcase
.bad.txt: pascalcase
.yml: pascalcase
.yaml: pascalcase

# DEACTIVATED: Go files should are linted via golangci-lint revive filename-format rule
# .go: snakecase

ignore:
# .git folder cannot be linted
Expand Down

0 comments on commit 84d0a7c

Please sign in to comment.