1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +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

@@ -17,7 +17,7 @@ import (
)
// configureRule configures the given rule with the given configuration
// if the rule implements the ConfigurableRule interface
// if the rule implements the ConfigurableRule interface.
func configureRule(t *testing.T, rule lint.Rule, arguments lint.Arguments) {
t.Helper()
@@ -151,7 +151,7 @@ type instruction struct {
Confidence float64 // confidence level
}
// JSONInstruction structure used when we parse json object instead of classic MATCH string
// JSONInstruction structure used when we parse json object instead of classic MATCH string.
type JSONInstruction struct {
Match string `json:"MATCH"`
Category string `json:"Category"`
@@ -277,7 +277,7 @@ func srcLine(src []byte, p token.Position) string {
return string(src[lo:hi])
}
// TestLine tests srcLine function
// TestLine tests srcLine function.
func TestLine(t *testing.T) {
tests := []struct {
src string
@@ -319,7 +319,7 @@ func exportedType(typ types.Type) bool {
return true
}
// TestExportedType tests exportedType function
// TestExportedType tests exportedType function.
func TestExportedType(t *testing.T) {
tests := []struct {
typString string