|
| 1 | +# Configuration file version. |
| 2 | +version: "1.0" |
| 3 | + |
| 4 | +# List of regexp patterns matching files the linter should include. When |
| 5 | +# omitted/null, the linter includes all Go files. If assigned then only the |
| 6 | +# files that their relative path (with respect to the config file path) matches |
| 7 | +# any of the patterns will be processed. |
| 8 | +# |
| 9 | +# Note: The patterns must assume a Unix-like path (i.e., separated with forward |
| 10 | +# slashes, `/`), even on Windows. This is to ensure a consistent behavior across |
| 11 | +# different platforms. |
| 12 | +# |
| 13 | +# Example: |
| 14 | +# include: |
| 15 | +# - ^pkg/ |
| 16 | +# - _foo.go$ |
| 17 | +include: null |
| 18 | + |
| 19 | +# List of regexp patterns matching files the linter should skip. When |
| 20 | +# omitted/null, the linter excludes no Go files. If assigned then only the |
| 21 | +# files that their relative path (with respect to the config file path) does not |
| 22 | +# match any of the patterns will be processed. |
| 23 | +# |
| 24 | +# Note: The patterns must assume a Unix-like path (i.e., separated with forward |
| 25 | +# slashes, `/`), even on Windows. This is to ensure a consistent behavior across |
| 26 | +# different platforms. |
| 27 | +# |
| 28 | +# Example: |
| 29 | +# exclude: |
| 30 | +# - ^internal/ |
| 31 | +# - _autogenerated.go$ |
| 32 | +exclude: |
| 33 | + - ^private/gen |
| 34 | + |
| 35 | +# Default set of rules to enable. Possible values are: |
| 36 | +# - `basic`: enables basic rules which are: `pkg-doc`, `single-pkg-doc`, `start-with-name` and `deprecated`. |
| 37 | +# - `all`: all rules are enabled by default; the `disable` key can be used to disable specific rules. |
| 38 | +# - `none`: no rule is enabled by default; the `enable` key can be used to enable specific rules. |
| 39 | +default: none |
| 40 | + |
| 41 | +# List of rules to enable *in addition to* the default set. |
| 42 | +# |
| 43 | +# See the linter docs for more on supported rules. |
| 44 | +# |
| 45 | +# Example: |
| 46 | +# - pkg-doc |
| 47 | +# - single-pkg-doc |
| 48 | +# - require-pkg-doc |
| 49 | +# - specific-file-pkg-doc |
| 50 | +# - start-with-name |
| 51 | +# - require-doc |
| 52 | +# - deprecated |
| 53 | +# - max-len |
| 54 | +# - no-unused-link |
| 55 | +enable: |
| 56 | + - pkg-doc |
| 57 | + - single-pkg-doc |
| 58 | + #- require-pkg-doc |
| 59 | + - specific-file-pkg-doc |
| 60 | + - start-with-name |
| 61 | + #- require-doc |
| 62 | + - deprecated |
| 63 | + #- max-len |
| 64 | + - no-unused-link |
| 65 | + |
| 66 | +# List of rules to disable. |
| 67 | +# |
| 68 | +# Example: |
| 69 | +# disable: |
| 70 | +# - pkg-doc |
| 71 | +# - single-pkg-doc |
| 72 | +disable: null |
| 73 | + |
| 74 | +# A map for setting individual rule options. |
| 75 | +# |
| 76 | +# All sub-keys are optional. |
| 77 | +options: |
| 78 | + # Maximum line length for godocs, not including the `// `, or `/*` or `*/` |
| 79 | + # tokens. |
| 80 | + max-len/length: 120 |
| 81 | + |
| 82 | + # Include test files when applying the `max-len` rule. |
| 83 | + max-len/include-tests: false |
| 84 | + |
| 85 | + # Include test files when applying the `pkg-doc` rule. |
| 86 | + pkg-doc/include-tests: false |
| 87 | + |
| 88 | + # Include test files when applying the `single-pkg-doc` rule. |
| 89 | + single-pkg-doc/include-tests: false |
| 90 | + |
| 91 | + # Include test files when applying the `require-pkg-doc` rule. |
| 92 | + require-pkg-doc/include-tests: false |
| 93 | + |
| 94 | + # Include test files when applying the `specific-file-pkg-doc` rule. |
| 95 | + specific-file-pkg-doc/include-tests: false |
| 96 | + |
| 97 | + # The file pattern to indicate which file should contain the package-level godoc when |
| 98 | + # applying the `specific-file-pkg-doc` rule. |
| 99 | + # |
| 100 | + # Valid values are: |
| 101 | + # |
| 102 | + # - "doc": The godoc should be in a file named doc.go |
| 103 | + # - "package-name": The godoc should be in a file named after the package. For example, if a package |
| 104 | + # is named "foobar", the godoc should be in a file named "foobar.go". |
| 105 | + specific-file-pkg-doc/file-pattern: "package-name" |
| 106 | + |
| 107 | + # Include test files when applying the `require-doc` rule. |
| 108 | + require-doc/include-tests: false |
| 109 | + |
| 110 | + # Ignore exported (public) symbols when applying the `require-doc` rule. |
| 111 | + require-doc/ignore-exported: false |
| 112 | + |
| 113 | + # Ignore unexported (private) symbols when applying the `require-doc` rule. |
| 114 | + require-doc/ignore-unexported: true |
| 115 | + |
| 116 | + # Include test files when applying the `start-with-name` rule. |
| 117 | + start-with-name/include-tests: false |
| 118 | + |
| 119 | + # Include unexported (private) symbols when applying the `start-with-name` rule. |
| 120 | + start-with-name/include-unexported: false |
| 121 | + |
| 122 | + # Include test files when applying the `no-unused-link` rule. |
| 123 | + no-unused-link/include-tests: false |
0 commit comments