|
1 | 1 | # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> |
2 | 2 | # SPDX-License-Identifier: MIT |
3 | 3 |
|
| 4 | +run: |
| 5 | + timeout: 5m |
| 6 | + |
4 | 7 | linters-settings: |
5 | 8 | govet: |
6 | 9 | enable: |
@@ -48,7 +51,7 @@ linters: |
48 | 51 | - goconst # Finds repeated strings that could be replaced by a constant |
49 | 52 | - gocritic # The most opinionated Go source code linter |
50 | 53 | - godox # Tool for detection of FIXME, TODO and other comment keywords |
51 | | - - goerr113 # Golang linter to check the errors handling expressions |
| 54 | + - err113 # Golang linter to check the errors handling expressions |
52 | 55 | - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification |
53 | 56 | - gofumpt # Gofumpt checks whether code was gofumpt-ed. |
54 | 57 | - goheader # Checks is file header matches to pattern |
@@ -83,17 +86,14 @@ linters: |
83 | 86 | - depguard # Go linter that checks if package imports are in a list of acceptable packages |
84 | 87 | - containedctx # containedctx is a linter that detects struct contained context.Context field |
85 | 88 | - cyclop # checks function and package cyclomatic complexity |
86 | | - - exhaustivestruct # Checks if all struct's fields are initialized |
87 | 89 | - funlen # Tool for detection of long functions |
88 | 90 | - gocyclo # Computes and checks the cyclomatic complexity of functions |
89 | 91 | - godot # Check if comments end in a period |
90 | 92 | - gomnd # An analyzer to detect magic numbers. |
91 | | - - ifshort # Checks that your code uses short syntax for if-statements whenever possible |
92 | 93 | - ireturn # Accept Interfaces, Return Concrete Types |
93 | 94 | - lll # Reports long lines |
94 | 95 | - maintidx # maintidx measures the maintainability index of each function. |
95 | 96 | - makezero # Finds slice declarations with non-zero initial length |
96 | | - - maligned # Tool to detect Go structs that would take less memory if their fields were sorted |
97 | 97 | - nakedret # Finds naked returns in functions greater than a specified function length |
98 | 98 | - nestif # Reports deeply nested if statements |
99 | 99 | - nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity |
|
0 commit comments