1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
otto/.golangci.yml
Steven Hartland 026a1d9a9c
chore: lint and naming refactor (#475)
Enable more linters, address the issues and do a major naming refactor
to use golang lower camelCase identifiers for types, functions, methods
and variable names.

Also: 
* Clean up inline generation so it doesn't rely on temporary variables.
* Remove unused functions generated by inline.pl.
2022-12-04 21:49:38 +00:00

55 lines
823 B
YAML

run:
deadline: 6m
skip-dirs:
- terst
skip-files:
- dbg/dbg.go
- token/token_const.go
linters-settings:
govet:
check-shadowing: false
goconst:
min-len: 2
min-occurrences: 4
revive:
enable-all-rules: false
rules:
- name: var-naming
disabled: true
linters:
enable-all: true
disable:
- dupl
- lll
- gochecknoglobals
- gochecknoinits
- scopelint
- funlen
- godox
- exhaustivestruct
- goerr113
- wsl
- nlreturn
- gomnd
- paralleltest
- wrapcheck
- testpackage
- gocognit
- nestif
- exhaustive
- forcetypeassert
- gocyclo
- cyclop
- varnamelen
- maintidx
- ireturn
- exhaustruct
- nosnakecase
- dupword
issues:
exclude-use-default: false
max-same-issues: 0