renovate[bot]
cb6823a888
fix(deps): update module golang.org/x/tools to v0.5.0 ( #780 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-09 14:57:01 -08:00
renovate[bot]
b4fd11aa64
fix(deps): update module golang.org/x/tools to v0.4.0 ( #777 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-14 16:26:10 -08:00
Miles Delahunty
b87d391ee4
Fix early-return false positive and other tweaks ( #776 )
2022-11-27 13:23:51 +01:00
renovate[bot]
d5d9da17ec
fix(deps): update module golang.org/x/tools to v0.3.0 ( #772 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-11 18:18:49 -08:00
Reza Nikoopour
ae282a54c8
fix off by one issue in line and colums ( #773 )
2022-11-11 07:47:58 +01:00
Buyanov Vladimir
7b1458a9cb
fix #754 [rule.unhandled-error] change arguments to regexp ( #757 )
...
* fix #754 [rule.unhandled-error] change arguments to regexp
* Update unhandled-error-w-ignorelist.go
* Update unhandled-error_test.go
* Update unhandled-error-w-ignorelist.go
* adds config backward compatibility test
* fix #754 [rule.unhandled-error] change arguments to regexp
* fix #754 [rule.unhandled-error] change arguments to regexp
* fix #754 [rule.unhandled-error] change arguments to regexp
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-11-09 13:13:52 +01:00
Shubh Karman Singh
5f26378cc2
Comment spacing rule ( #761 )
...
* added comment-spacing rule for revive
* added test for comment-spacings rule
* adds comment-spacings rule to the configuration
* renames the source file to match rule name
* adds some tests
* refactor Comment-Spacings Rule to remove whiteList and avoid Panic at empty comment
* refactoring and adds rule configuration
* adds rule documentation
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-10-29 19:32:42 +02:00
renovate[bot]
5fd3b2c046
fix(deps): update github.com/chavacava/garif digest to b3ef358 ( #767 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 14:45:32 +01:00
chavacava
32a0cb8052
Allows inversing the semantics of string-format
rule configurations ( #765 )
...
* allows negating the regexp
* updates rule documentation
* adds mgechev remarks
2022-10-24 20:48:41 +02:00
chavacava
06881a9f54
speedup branch comparison ( #764 )
2022-10-24 17:21:48 +02:00
renovate[bot]
55e881a792
fix(deps): update module github.com/burntsushi/toml to v1.2.1 ( #766 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-24 17:13:42 +02:00
renovate[bot]
3fe5f99860
fix(deps): update module golang.org/x/tools to v0.2.0 ( #763 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-21 15:38:35 +02:00
Buyanov Vladimir
1c3a15caaa
fix #759 [rule.add-constant] change 'ignoreFuncs' expressions in documentation and test ( #760 )
2022-10-15 11:24:32 +02:00
Buyanov Vladimir
3d83403fb8
fix #751 [rule.add-constant] add ignoreFuncs to exclude constants in … ( #756 )
...
* fix #751 [rule.add-constant] add ignoreFuncs to exclude constants in functions
* Update add-constant.go
* Update add-constant.go
* fix #751 [rule.add-constant] add ignoreFuncs to exclude constants in functions
* add details to regex-related errors
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-10-13 13:23:23 +02:00
Tom
5cc9e27ddb
docs(README): add missing links and fix a broken one ( #758 )
2022-10-11 21:32:14 -07:00
Hsing-Yu (David) Chen
b4201ff650
Fix broken link of 'Comment Directives' in README ( #753 )
2022-10-06 11:05:23 +02:00
Attila Fabian
ec731c068d
go get reference updates ( #750 )
2022-10-04 10:26:40 +02:00
chavacava
3116818e59
fix bug #736 ( #745 )
2022-09-10 09:08:17 +02:00
chavacava
7c2ebbda24
fix #744 ( #746 )
2022-09-05 11:11:45 +02:00
chavacava
553604eace
fix bug #739 : empty-lines false positive ( #742 )
2022-08-27 13:18:17 +02:00
Rafael Madriz
a4add4a769
docs(README): Add neovim support in text editors section ( #734 )
...
* add instructions for using revive from neovim
2022-08-20 06:58:47 +02:00
ccoVeille
fa350e6eb8
fix some typos in repository ( #728 )
2022-08-08 13:48:59 +02:00
ccoVeille
160dfbd4ad
fix documentation ( #730 )
...
An entry was missing since banned-characters was added
Closes #729
2022-08-08 13:21:09 +02:00
Ahmed
556d4852f9
release with go 1.19 ( #727 )
2022-08-07 13:29:40 -07:00
mgechev
238d290ebb
Add windows arm64 to the ignore list
...
The CI build fails for some reason so I moved window_arm64 to the
ignore list.
2022-08-06 20:32:09 -07:00
mgechev
7cd66dc752
Tidy mod file
2022-08-06 19:57:03 -07:00
renovate[bot]
fe7a52dd02
chore(deps): update module go to 1.19 ( #715 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-06 19:53:43 -07:00
renovate[bot]
83e66f1647
fix(deps): update module golang.org/x/tools to v0.1.12 ( #720 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-06 19:52:47 -07:00
Minko Gechev
71ef7fdcb9
Move to the default importer from gcexportdata ( #723 )
2022-08-06 09:42:15 +02:00
Steven L
db56db0b6a
Capture yet more bad defer / recover patterns ( #719 )
...
* Yet more bad defer / recover patterns
`recover()` is an eternal font of excitement.
* demonstrating another flavor of failure
* removing leftover code
* update documentation
* removes test not related to the rule itself
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-07-24 09:34:16 +02:00
Ludovic Fernandez
0f4df1ca40
fix: update go.sum ( #714 )
2022-07-21 19:46:41 +02:00
Abirdcfly
fcc59adb72
add testing.FailNow and related function to unreachable check ( #711 )
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-20 15:41:31 -07:00
renovate[bot]
20101b3a2d
fix(deps): update module github.com/burntsushi/toml to v1.2.0 ( #712 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-20 15:38:36 -07:00
chavacava
60e1ae4a01
adds checks for protobuf struct tags ( #707 )
...
* adds checks for protobuf struct tags
* use actual tag numbers as key instead of strings
removes debug println
2022-07-15 11:15:55 -07:00
chavacava
e9d5b48c19
fix #670 ( #708 )
2022-07-14 15:15:42 +02:00
hulk
8dd3945eaf
Check whether the tag name is duplicate or not ( #706 )
...
* Check whether the tag name is duplicate or not
* - minor refactoring
- continues checking tag even if name is repeated
* adds test cases for duplicated tag names
* adds test case with two tag types (json & yaml)
* Fix allow the same tag name in different tag key
* fix checks on protobuf tag names
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-07-13 20:26:44 +02:00
likyh
23ed063531
doc: add devlake to README usage ( #704 )
...
Co-authored-by: linyh <yanghui@meri.co>
2022-07-12 10:15:02 +02:00
hulk
ce7f0669d3
Allow to customize user functions in rule error-strings
( #703 )
...
* Allow to customize user functions in rule `error-strings`
* Rollback the Available Rules table format in README
* adds memoization of the rule's configuration
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-07-05 21:51:50 +02:00
renovate[bot]
5caa8cfc63
fix(deps): update github.com/chavacava/garif digest to 9351721 ( #702 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-05 09:03:14 +02:00
chavacava
2aac974b5c
fix issue #691 ( #700 )
2022-06-28 18:14:26 +03:00
renovate[bot]
3f9c0c2175
fix(deps): update github.com/chavacava/garif digest to d6fd61e ( #699 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-25 09:02:07 +02:00
okhowang
387d7276a1
Make package comment more confident ( #694 )
2022-06-19 13:21:31 +02:00
Ivan Trubach
dc30eb1182
fix(receiver-naming): distinguish types with parameters ( #692 )
...
* fix(receiver-naming): distinguish types with parameters
* chore: run tests using supported Go versions matrix
2022-06-18 18:47:53 +02:00
renovate[bot]
76ef1d75d1
fix(deps): update github.com/chavacava/garif digest to 908ad76 ( #695 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 09:05:04 +02:00
renovate[bot]
bcffce6f81
fix(deps): update module golang.org/x/tools to v0.1.11 ( #696 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-18 09:04:35 +02: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
Yudai Takada
e10678fea5
Fixes issue #619 imports-blacklist support regex ( #684 )
...
* Fixes issue #619 imports-blacklist support regex
* refactors method name and error message
* restores original test cases
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2022-04-21 16:04:00 +02:00
chavacava
a67ecdd7ba
add rule datarace ( #683 )
2022-04-18 09:45:42 -07: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