1
0
mirror of https://github.com/mgechev/revive.git synced 2025-12-03 22:39:22 +02:00

docs: improve comments for functions; enable godot (#1382)

This commit is contained in:
Oleksandr Redko
2025-05-27 08:44:24 +03:00
committed by GitHub
parent 398f7a83eb
commit f4976873e7
49 changed files with 135 additions and 132 deletions

View File

@@ -44,7 +44,7 @@ func (ps *packages) methodNames(lp *lint.Package) pkgMethods {
var allPkgs = packages{pkgs: make([]pkgMethods, 1)}
// ConfusingNamingRule lints method names that differ only by capitalization
// ConfusingNamingRule lints method names that differ only by capitalization.
type ConfusingNamingRule struct{}
// Apply applies the rule to given file.
@@ -127,7 +127,7 @@ type lintConfusingNames struct {
const defaultStructName = "_" // used to map functions
// getStructName of a function receiver. Defaults to defaultStructName
// getStructName of a function receiver. Defaults to defaultStructName.
func getStructName(r *ast.FieldList) string {
result := defaultStructName