File tree
378 files changed
+562
-729
lines changed- analysis
- code
- lint
- testutil
- report
- go/loader
- knowledge
- lintcmd
- runner
- quickfix
- qf1001/testdata/go1.0/CheckDeMorgan
- qf1002/testdata/go1.0/CheckTaglessSwitch
- qf1003/testdata/go1.0/CheckIfElseToSwitch
- qf1004/testdata/go1.0/CheckStringsReplaceAll
- qf1005/testdata/go1.0/CheckMathPow
- qf1006/testdata/go1.0/CheckForLoopIfBreak
- qf1007/testdata/go1.0/CheckConditionalAssignment
- qf1008/testdata/go1.0
- CheckExplicitEmbeddedSelector
- CheckExplicitEmbeddedSelectorassist
- qf1009/testdata/go1.0/CheckTimeEquality
- qf1010/testdata
- go1.0/CheckByteSlicePrinting
- go1.9/CheckByteSlicePrinting
- qf1011/testdata
- go1.0/CheckRedundantTypeInDeclaration
- go1.9/CheckRedundantTypeInDeclaration
- qf1012/testdata/go1.0/CheckWriteBytesSprintf
- simple
- s1000/testdata/go1.0/CheckSingleCaseSelect
- s1001/testdata
- go1.0/CheckLoopCopy
- go1.18/CheckLoopCopy
- s1002/testdata
- go1.0/CheckIfBoolCmp
- go1.18/CheckIfBoolCmp
- s1003/testdata/go1.0/CheckStringsContains
- s1004/testdata/go1.0/CheckBytesCompare
- s1005
- testdata
- go1.0/CheckUnnecessaryBlank
- go1.3/CheckUnnecessaryBlank
- go1.4/CheckUnnecessaryBlank
- s1006/testdata/go1.0/CheckForTrue
- s1007/testdata/go1.0/CheckRegexpRaw
- s1008/testdata/go1.0/CheckIfReturn
- s1009/testdata
- go1.0/CheckRedundantNilCheckWithLen
- go1.18/CheckRedundantNilCheckWithLen
- s1010/testdata/go1.0/CheckSlicing
- s1011/testdata/go1.0/CheckLoopAppend
- s1012/testdata/go1.0/CheckTimeSince
- s1016
- testdata
- go1.0/CheckSimplerStructConversion
- go1.18/CheckSimplerStructConversion
- go1.7/CheckSimplerStructConversion
- go1.8/CheckSimplerStructConversion
- go1.9/CheckSimplerStructConversion
- s1017/testdata/go1.0/CheckTrim
- s1018/testdata
- go1.0/CheckLoopSlide
- go1.18/CheckLoopSlide
- s1019/testdata
- go1.0/CheckMakeLenCap
- go1.18/CheckMakeLenCap
- s1020/testdata/go1.0/CheckAssertNotNil
- s1021/testdata/go1.0/CheckDeclareAssign
- s1023/testdata/go1.0
- CheckRedundantBreak
- CheckRedundantReturn
- s1024
- testdata
- go1.7/CheckTimeUntil
- go1.8/CheckTimeUntil
- s1025/testdata
- go1.0/CheckRedundantSprintf
- go1.17/CheckRedundantSprintf
- go1.18/CheckRedundantSprintf
- go1.9/CheckRedundantSprintf
- s1028/testdata/go1.0/CheckErrorsNewSprintf
- s1029/testdata
- go1.0/CheckRangeStringRunes
- go1.18/CheckRangeStringRunes
- s1030/testdata
- go1.0/CheckBytesBufferConversions
- go1.9/CheckBytesBufferConversions
- s1031/testdata
- go1.0/CheckNilCheckAroundRange
- go1.18/CheckNilCheckAroundRange
- s1032/testdata/go1.0/CheckSortHelpers
- s1033/testdata/go1.0/CheckGuardedDelete
- s1034/testdata/go1.0/CheckSimplifyTypeSwitch
- s1035/testdata/go1.0/CheckRedundantCanonicalHeaderKey
- s1036/testdata/go1.0/CheckUnnecessaryGuard
- s1037/testdata/go1.0/CheckElaborateSleep
- s1038/testdata/go1.0/CheckPrintSprintf
- s1039/testdata/go1.0/CheckSprintLiteral
- s1040/testdata/go1.0/CheckSameTypeTypeAssertion
- staticcheck
- sa1000/testdata/go1.0/CheckRegexps
- sa1001/testdata/go1.0/CheckTemplate
- sa1002/testdata/go1.0/CheckTimeParse
- sa1003
- testdata
- go1.0/CheckEncodingBinary
- go1.7/CheckEncodingBinary
- go1.8/CheckEncodingBinary
- sa1004/testdata/go1.0/CheckTimeSleepConstant
- sa1005/testdata/go1.0/CheckExec
- sa1006/testdata/go1.0/CheckUnsafePrintf
- sa1007/testdata/go1.0/CheckURLs
- sa1008/testdata/go1.0/CheckCanonicalHeaderKey
- sa1010/testdata/go1.0/checkStdlibUsageRegexpFindAll
- sa1011/testdata/go1.0/checkStdlibUsageUTF8Cutset
- sa1012/testdata
- go1.0/checkStdlibUsageNilContext
- go1.18/checkStdlibUsageNilContext
- sa1013/testdata/go1.0/checkStdlibUsageSeeker
- sa1014/testdata/go1.0/CheckUnmarshalPointer
- sa1015/testdata/go1.0
- CheckLeakyTimeTick
- CheckLeakyTimeTick-main
- sa1016/testdata/go1.0/CheckUntrappableSignal
- sa1017/testdata/go1.0/CheckUnbufferedSignalChan
- sa1018/testdata/go1.0/CheckStringsReplaceZero
- sa1019
- testdata
- go1.0
- AnotherCheckDeprecated.assist
- CheckDeprecated
- CheckDeprecated.assist
- vendor/github.com/golang/protobuf/proto
- go1.18
- CheckDeprecated
- CheckDeprecated.assist
- go1.19/CheckDeprecated
- go1.3/CheckDeprecated
- go1.4/CheckDeprecated
- go1.8/CheckDeprecated
- sa1020/testdata/go1.0/CheckListenAddress
- sa1021/testdata/go1.0/CheckBytesEqualIP
- sa1023/testdata
- go1.0/CheckWriterBufferModified
- go1.9/CheckWriterBufferModified
- sa1024/testdata/go1.0/CheckNonUniqueCutset
- sa1025/testdata/go1.0/CheckTimerResetReturnValue
- sa1026/testdata
- go1.0/CheckUnsupportedMarshal
- go1.18/CheckUnsupportedMarshal
- sa1027/testdata/go1.0/CheckAtomicAlignment
- sa1028/testdata/go1.0/CheckSortSlice
- sa1029/testdata/go1.0/CheckWithValueKey
- sa1030/testdata
- go1.0/CheckStrconv
- go1.15/CheckStrconv
- sa1031/testdata/go1.0
- CheckEncodingAscii85
- CheckEncodingBase32
- CheckEncodingBase64
- CheckEncodingHex
- sa2000/testdata/go1.0/CheckWaitgroupAdd
- sa2001/testdata/go1.0/CheckEmptyCriticalSection
- sa2002/testdata/go1.0/CheckConcurrentTesting
- sa2003/testdata/go1.0/CheckDeferLock
- sa3000
- testdata
- go1.15/CheckTestMainExit-1
- go1.4
- CheckTestMainExit-1
- CheckTestMainExit-2
- CheckTestMainExit-3
- CheckTestMainExit-4
- CheckTestMainExit-5
- sa3001/testdata/go1.0/CheckBenchmarkN
- sa4000/testdata
- go1.0/CheckLhsRhsIdentical
- go1.18/CheckLhsRhsIdentical
- sa4001/testdata/go1.0/CheckIneffectiveCopy
- sa4003/testdata/go1.0/CheckExtremeComparison
- sa4004/testdata
- go1.0/CheckIneffectiveLoop
- go1.18/CheckIneffectiveLoop
- sa4005/testdata/go1.0/CheckIneffectiveFieldAssignments
- sa4006/testdata/go1.0/CheckUnreadVariableValues
- sa4008/testdata/go1.0/CheckLoopCondition
- sa4009/testdata/go1.0/CheckArgOverwritten
- sa4010/testdata/go1.0/CheckIneffectiveAppend
- sa4011/testdata/go1.0/CheckScopedBreak
- sa4012/testdata/go1.0/CheckNaNComparison
- sa4013/testdata/go1.0/CheckDoubleNegation
- sa4014/testdata/go1.0/CheckRepeatedIfElse
- sa4015/testdata
- go1.0/CheckMathInt
- go1.18/CheckMathInt
- sa4016/testdata
- go1.0
- CheckSillyBitwiseOps
- CheckSillyBitwiseOps_dotImport
- CheckSillyBitwiseOps_shadowedIota
- go1.18/CheckSillyBitwiseOps
- sa4017/testdata/go1.0/CheckSideEffectFreeCalls
- sa4018/testdata/go1.0/CheckSelfAssignment
- sa4019/testdata/go1.1/CheckDuplicateBuildConstraints
- sa4020/testdata
- go1.0/CheckUnreachableTypeCases
- go1.18/CheckUnreachableTypeCases
- sa4021/testdata/go1.0/CheckSingleArgAppend
- sa4022/testdata/go1.0/CheckAddressIsNil
- sa4023/testdata
- go1.0
- CheckTypedNilInterface
- i26000
- i27815
- i28241
- i31873
- i33965
- i33994
- i35217
- go1.18/CheckTypedNilInterface
- go1.9/CheckTypedNilInterface
- sa4024/testdata/go1.0/CheckBuiltinZeroComparison
- sa4025/testdata/go1.0/CheckIntegerDivisionEqualsZero
- sa4026/testdata/go1.0/CheckNegativeZeroFloat
- sa4027/testdata/go1.0/CheckIneffectiveURLQueryModification
- sa4028/testdata/go1.0/CheckModuloOne
- sa4029/testdata
- go1.0/CheckIneffectiveSort
- go1.9/CheckIneffectiveSort
- sa4030/testdata/go1.0/CheckIneffectiveRandInt
- sa4031/testdata/go1.0/CheckAllocationNilCheck
- sa4032/testdata/go1.0/CheckGOOSComparison
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
378 files changed
+562
-729
lines changedLines changed: 44 additions & 69 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
11 | 10 |
| |
| 11 | + | |
12 | 12 |
| |
13 |
| - | |
14 | 13 |
| |
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
19 |
| - | |
20 | 18 |
| |
21 | 19 |
| |
22 | 20 |
| |
| |||
35 | 33 |
| |
36 | 34 |
| |
37 | 35 |
| |
38 |
| - | |
| 36 | + | |
39 | 37 |
| |
40 | 38 |
| |
41 | 39 |
| |
| |||
436 | 434 |
| |
437 | 435 |
| |
438 | 436 |
| |
439 |
| - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
440 | 440 |
| |
441 | 441 |
| |
442 | 442 |
| |
| |||
478 | 478 |
| |
479 | 479 |
| |
480 | 480 |
| |
481 |
| - | |
| 481 | + | |
482 | 482 |
| |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
489 |
| - | |
490 |
| - | |
491 |
| - | |
492 |
| - | |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 |
| - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
506 | 487 |
| |
507 | 488 |
| |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
523 | 495 |
| |
524 | 496 |
| |
525 | 497 |
| |
526 | 498 |
| |
527 | 499 |
| |
528 | 500 |
| |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
542 | 513 |
| |
543 | 514 |
| |
544 | 515 |
| |
545 |
| - | |
| 516 | + | |
546 | 517 |
| |
547 |
| - | |
548 |
| - | |
549 |
| - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
550 | 524 |
| |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
557 | 532 |
| |
558 | 533 |
| |
559 | 534 |
| |
560 | 535 |
| |
561 | 536 |
| |
562 |
| - | |
563 |
| - | |
| 537 | + | |
| 538 | + | |
564 | 539 |
| |
565 | 540 |
| |
566 | 541 |
| |
|
Lines changed: 0 additions & 59 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 | 6 |
| |
8 | 7 |
| |
9 |
| - | |
10 | 8 |
| |
11 |
| - | |
12 |
| - | |
13 | 9 |
| |
14 | 10 |
| |
15 | 11 |
| |
| |||
27 | 23 |
| |
28 | 24 |
| |
29 | 25 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 26 |
| |
36 | 27 |
| |
37 | 28 |
| |
38 | 29 |
| |
39 | 30 |
| |
40 | 31 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 | 32 |
| |
47 | 33 |
| |
48 | 34 |
| |
| |||
206 | 192 |
| |
207 | 193 |
| |
208 | 194 |
| |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 | 195 |
| |
255 | 196 |
| |
256 | 197 |
| |
|
0 commit comments