chavacava
ef34f92cef
fix 968 by removing references to black and white lists ( #969 )
2024-02-03 18:36:44 +01:00
Marcin Federowicz
9abe06adfa
refactor: rename blacklist to blocklist and whitelist to allowlist ( #946 )
...
* refactor: rename blacklist to blocklist and whitelist to allowlist
2024-01-15 12:16:00 +01:00
Georgy Buranov
782f0f118c
variable to skip package name checks ( #941 )
...
* variable to skip package name checks
* add tests for skipPackageNameChecks
* Add documentation
2023-11-30 14:19:31 +01:00
Eng Zer Jun
573f7153c1
var-naming: avoid allocations with (*regexp.Regexp).MatchString
( #928 )
2023-11-02 09:40:09 +01:00
Marcin Federowicz
36c2ee2718
code cleanup: replace interface{} with any ( #906 )
2023-09-24 08:44:02 +02:00
Martins Irbe
19a95d9a7f
resolve #867 : remove k[A-Z][A-Za-z\d]*$ sub-rule from var-naming
( #871 )
2023-08-16 13:23:29 +02:00
fregin
72f9108792
(var-naming) support private uppercase constants #865 ( #866 )
2023-08-12 08:45:42 +02:00
Fagim Sadykov
8941d19026
imporve var-naming
- add upperCaseConst option to allow UPPER_CASED constants #851 ( #852 )
...
* imporve `var-naming` - add upperCaseConst option to allow UPPER_CASED constants #851
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2023-07-31 09:09:38 +02:00
cce
d7bedbd946
add golint's package name MixedCaps rule as in 83fdc39ff7/lint.go (L561-L563)
( #797 )
2023-02-27 19:56:30 +01:00
Ville Skyttä
4daa573afe
fix(var-naming): set node to package name for underscore in package name ( #689 )
...
Setting the entire file AST as the node causes golangci-lint to print
the entire file source as the context, and line and column numbers set
to 1. Point to the package name node instead.
Closes #688
2022-05-23 12:30:25 +02:00
chavacava
04728cf0de
Lint cleanup ( #679 )
2022-04-10 11:55:13 +02:00
chavacava
31fbdb1833
Fix/677 ( #678 )
2022-04-10 09:06:59 +02:00
chavacava
b721f69625
fix #622 (Rule 'var-naming' should allow Fuzz_xxx) ( #623 )
2022-01-18 15:26:29 +01:00
SalvadorC
76b8c57329
Memoization of rule arguments ( #595 )
2021-10-17 20:34:48 +02:00
doniacld
be81121399
Add banned characters rule ( #532 ) ( #591 )
2021-10-14 20:56:29 +02:00
mgechev
376425d517
refactor: remove URL field from the failure struct
2018-10-30 15:37:27 -07:00
mgechev
90f51530cc
Add white & black lists for var-naming
...
This PR introduces a white & black lists of initialisms for the
`var-naming` rule.
Now the rule can be configured with:
```toml
[rule.var-naming]
arguments = [["ID"], ["VM", "BAR"]]
```
This way, the linter will ignore `customId` but will throw on `customVm` or `customBar`.
Fix #41
2018-09-15 15:05:31 -07:00
mgechev
55145d7427
Run var-naming on test files
2018-05-30 17:41:02 -07:00
mgechev
6c9ea8cf2d
Refactoring and renaming
2018-05-26 21:28:31 -07:00