aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-linter/testdata/src
Commit message (Collapse)AuthorAgeFilesLines
* tools/syz-linter: suggest any instead of interface{}Dmitry Vyukov2025-12-221-0/+8
| | | | Any is the preferred over interface{} now in Go.
* tools/syz-linter: add loopvar testTaras Madan2025-02-171-0/+8
|
* tools/syz-linter: suggest use of min/max functionsDmitry Vyukov2025-01-171-0/+13
| | | | They are shorter, more readable, and don't require temp vars.
* tools/syz-linter: check tool.Failf messagesDmitry Vyukov2024-08-072-0/+13
| | | | Check tool.Failf messages for the common style as well.
* tools/syz-linter: check t.Logf/Errorf/Fatalf messagesDmitry Vyukov2024-04-171-0/+9
| | | | | Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
* tools/syz-linter: improve duplicate parameter type detectionDmitry Vyukov2023-01-131-0/+8
| | | | | | | | Duplicate parameter type warning suggests to replace "a int, b int" with "a, b int" in function declarations. Currently it does not work for non-builtin types because we compare type pointers directly but they are different for non-builtin types. Compare type strings instead.
* tools/syz-linter: warn about inconsistent flag definitionsDmitry Vyukov2020-11-301-0/+8
|
* tools/syz-linter: add a check for fmt.Printf/Fprintf messagesDmitry Vyukov2020-11-301-11/+21
|
* tools/syz-linter: check comments formatDmitry Vyukov2020-07-121-3/+6
| | | | | | | Check for capitalization, dots at the end and two spaces after a period. Update #1876
* tools/syz-linter: fix comments checkDmitry Vyukov2020-07-101-0/+4
| | | | | | | Turns out ast.Inspect does not visit most comments. Walk file.Comments manually. Update #1876
* tools/syz-linter: check variable declarationsDmitry Vyukov2020-07-061-0/+9
| | | | | | | | | | | | | | Warn about: var x int = foo In most cases this can be expressed shorter as: var x int x := foo x := int(foo) Update #1876
* tools/syz-linter: check for \n at the end of log/error textDmitry Vyukov2020-07-061-0/+1
| | | | Update #1876
* tools/syz-linter: check log/error text ending with dotDmitry Vyukov2020-07-051-4/+6
| | | | Update #1876
* tools/syz-linter: check log/error text starting with capital letterDmitry Vyukov2020-07-051-0/+21
| | | | Update #1876
* tools/syz-linter: add check for dup types in func argsDmitry Vyukov2020-07-041-3/+17
| | | | | | | | Add check for: func foo(a int, b int) -> func foo(a, b int) Update #1876
* tools/syz-linter: add check for comment formatDmitry Vyukov2020-07-041-0/+11
| | | | Update #1876
* tools/syz-linter: add custom linterDmitry Vyukov2020-07-041-0/+19
For now we have 2 simple checks: 1. for multiline comments: /* */ -> // 2. for string len comparison with 0: len(str) != 0 -> str != "" Update #1876