Sign in
go
/
lint
/
910be7a94367618fd0fd25eaabbee4fdc0ac7092
/
lint.go
414d861
lint: remove the var decl check
by Sam Whited
· 5 years ago
8f45f77
go/lint: only report kBlah error for constants and top level vars
by Michael Matloob
· 6 years ago
93c0bb5
all: allow ALL_CAPS names if there's only one letter
by Michael Matloob
· 6 years ago
9a27203
all: add import comments
by Koichi Shiraishi
· 6 years ago
85993ff
lint: swap IfStmt tests to not skip every other IfStmt in a chain
by Marcelo Cantos
· 7 years ago
4653006
golint: Removed redundant if ...; err != nil check
by Mat Ryer
· 7 years ago
8379672
lint: allow multiple error return values
by Leonel Quinteros
· 7 years ago
c72d1a5
lint: avoid false positives with custom errors-package
by Leonel Quinteros
· 7 years ago
fb4f8c1
golint: suggest `for range` when possible
by Dominik Honnef
· 7 years ago
3ea3fa9
Add check for MixedCaps in package name
by Joël Stemmer
· 7 years ago
db11711
Remove unused `isZero` func (#364)
by Yuji Yaginuma
· 7 years ago
6aaf7c3
Improve receiver name underscore message. (#314)
by Ryan Roden-Corrent
· 7 years ago
e5d664e
Check for redundant if err != nil constructs. (#319)
by Lev Shamardin
· 7 years ago
c5fb716
Fix lint on packages with all generated files
by Dimitri Sokolyuk
· 8 years ago
a5f4a24
Ignore generated code
by Joe Tsai
· 8 years ago
b8599f7
Suppress underscore warning for cgo functions
by Bryan Mills
· 8 years ago
6d7efc4
Fix minor typos.
by Joe Tsai
· 8 years ago
0da02fd
Ignore invalid types as keys in context.WithValue
by Bradley Falzon
· 8 years ago
148c6c6
Stop using deprecated gcimporter15 package
by Alan Donovan
· 8 years ago
206c0f0
Flag error strings that end with a newline
by Dominik Honnef
· 8 years ago
3390df4
Add check for argument position of context variable.
by Joe Tsai
· 8 years ago
55ae771
Add ACL as a common initialism.
by Ian Leue
· 8 years ago
4e7ffd8
Remove check for 0-length make.
by Joe Tsai
· 8 years ago
64229b8
Remove me from list of bad receivers.
by Tom Payne
· 8 years ago
a428635
Drop support for Go 1.5.
by Alan Donovan
· 8 years ago
c6242af
Disallow basic types as keys in context.WithValue().
by Matt Layher
· 8 years ago
48c8655
Avoid type-inference warnings due to partial type info.
by Alan Donovan
· 8 years ago
024c6ac
Fix crash on ill-formed receiver type.
by Alan Donovan
· 8 years ago
00e40da
Add ACL as a common initialism.
by Joe Tsai
· 8 years ago
c7bacac
Explicitly whitelist LastInsertId and kWh as exempt from the naming checks.
by David Symonds
· 9 years ago
9bad2ac
Split (importer).ImportFrom into its own build-tag-guarded file.
by David Symonds
· 9 years ago
a113636
Switch to the go/types API in the standard library.
by David Symonds
· 9 years ago
32a8716
Fix lint check for ValueSpec docs.
by David Symonds
· 9 years ago
34acc6e
Fix a typo: lineMake -> lintMake
by Yoshiyuki Mineo
· 9 years ago
4946cea
Revert "Add unitless duration lint check."
by David Symonds
· 10 years ago
b550591
Add unitless duration lint check.
by Josh Bleecher Snyder
· 10 years ago
26a7505
Avoid panicking on a method-less receiver.
by David Symonds
· 10 years ago
6ad27b9
Add SQL as a common initialism.
by David Symonds
· 10 years ago
173ec60
Expand suggestions to cope with sub-line replacements.
by David Symonds
· 10 years ago
b0bb8ee
Fix to follow some recent changes to the go/types API.
by David Symonds
· 10 years ago
f42f5c1
Implement suggested replacements for problems.
by David Symonds
· 10 years ago
3b3fdeb
Fix panic in t.Errorf check if the typechecker fails.
by David Symonds
· 10 years ago
23587b4
Check for `t.Error(fmt.Sprintf(...))` where t is a *testing.T.
by Tristan Rice
· 10 years ago
4b4f2c1
Avoid suggesting omitting the LHS type of a var decl for known weaker types.
by David Symonds
· 10 years ago
76ee896
Add a categorisation for the lint warning for unexported types in APIs.
by David Symonds
· 10 years ago
39d15d5
Add TCP and UDP as common initialisms.
by David Symonds
· 10 years ago
f8aef8e
Add XSRF and XSS as common initialisms.
by David Symonds
· 10 years ago
16e8217
Attach "package comment is detached" warning to the gap.
by David Symonds
· 10 years ago
2eee630
Flag package comments that are detached from the package statement.
by David Symonds
· 10 years ago
cb1241f
Update for API change in golang.org/x/tools/go/types.
by Markus Zimmermann
· 10 years ago
1fab560
Update stale links to reflect wiki move to GitHub.
by John Gilik
· 10 years ago
c48b90c
Flag names of type time.Duration that have unit suffixes.
by David Symonds
· 10 years ago
037b34c
Update to new Go subrepository import paths.
by David Symonds
· 10 years ago
8ca2347
Allow one underscore between digits.
by Markus Zimmermann
· 10 years ago
cbfe983
Complain about exported functions/methods returning unexported types.
by David Symonds
· 10 years ago
3fd0484
Sort problems.
by Markus Zimmermann
· 10 years ago
e23e81d
Use file-level scope for untyped constant checking.
by David Symonds
· 10 years ago
1de6767
Avoid a confusing later panic if linting files across packages.
by David Symonds
· 10 years ago
39135ba
Use typechecker to recognise untyped constant expressions.
by David Symonds
· 10 years ago
ff22a87
Hang on to the type information even when the typechecker fails.
by David Symonds
· 10 years ago
3f17141
Set a no-op error reporter to encourage the typechecker to do more work.
by David Symonds
· 10 years ago
ae65d27
Avoid panic when an ast.Node is in a different file.
by David Symonds
· 10 years ago
209d47f
Permit linting of entire packages.
by David Symonds
· 10 years ago
a9a6f59
Use typechecked information to suppress type inference warning, where possible.
by David Symonds
· 10 years ago
c8f2dfe
Disable reporting of typechecking errors.
by David Symonds
· 10 years ago
54857da
Hook up typechecker.
by David Symonds
· 10 years ago
4b1924a
Add reference link for stutter check.
by David Symonds
· 11 years ago
af5cfac
Don't check for stutter of method names.
by David Symonds
· 11 years ago
f93c74e
Add GUID and UUID as common initialisms.
by Lucas Clemente
· 10 years ago
3d26dc3
Add SMTP as common initialism.
by Philip Nelson
· 11 years ago
8628ede
Fix error message generated for kFoo names.
by David Symonds
· 11 years ago
76aead9
Add URI as a common initialism.
by David Symonds
· 11 years ago
3b88232
Flag names that stutter.
by David Symonds
· 11 years ago
7430178
Provide lint problem categorisation.
by David Symonds
· 11 years ago
9646f1a
Add a lint check for functions which return errors but the error type isn't the last type in the return list.
by James Chacon
· 11 years ago
ac6833c
Let golint ignore a function whose name starts "Benchmark" when it checks function declarations.
by yosssi
· 11 years ago
8ebb13a
Improve message for underscore receiver names.
by David Symonds
· 11 years ago
115818a
Reduce confidence in error string leading capital check.
by David Symonds
· 11 years ago
49efcbc
Check the param/result names of interface methods.
by David Symonds
· 11 years ago
28e13f3
Add HTTPS, SSH and TLS as common initialisms.
by Geert-Johan Riemer
· 11 years ago
fcc97d1
Recommend replacing "x := make([]T, 0)" with "var x []T".
by David Symonds
· 11 years ago
83b89d4
Add VM as a common initialism.
by David Symonds
· 11 years ago
e664f20
Don't lint names of interface methods.
by David Symonds
· 11 years ago
1980f53
Don't flag var typing when the RHS is an untyped constant
by David Symonds
· 11 years ago
e1d65c7
Update link base to new location.
by David Symonds
· 11 years ago
16642b0
Add links to style guide.
by David Symonds
· 11 years ago
29cb4d8
Add SLA as a common initialism.
by David Symonds
· 11 years ago
a78e5d7
Minor refactoring.
by David Symonds
· 11 years ago
9946766
Suggest replacing "x += 1" with "x++", and "y -= 1" with "y--".
by David Symonds
· 11 years ago
bdf90bd
Add TTL as a common initialism.
by David Symonds
· 11 years ago
951d8c9
Don't suggest removing a leading underscore.
by David Symonds
· 11 years ago
2292cea
Suggest moving short variable declarations to their own line if needed to keep normal code flow outdented.
by David Symonds
· 11 years ago
22f4d5e
golint: Permit starting error strings with initialisms.
by Bartosz Oler
· 11 years ago
e6e2854
Add a few more common initialisms: LHS, RHS, CPU, CSS, QPS, RAM.
by David Symonds
· 11 years ago
72da1f2
Add DNS and UI as common initialisms.
by David Symonds
· 11 years ago
90e8f13
Fix handling of digits adjacent to initialisms.
by David Symonds
· 11 years ago
1ad6a0e
Update lint.go to add UTF8 as initialism.
by Geert-Johan Riemer
· 11 years ago
04049f5
Check that error strings aren't capitalized and don't end with punctuation.
by David Symonds
· 11 years ago
6999fe1
Check that names of global error vars are named like ErrFoo or errFoo.
by David Symonds
· 11 years ago
190cbab
Explain and strengthen warning about blank imports in libraries.
by David Symonds
· 11 years ago
Next »