github.com/zntrio/harp/v2@v2.0.9/.golangci.yml (about) 1 run: 2 # default concurrency is a available CPU number 3 concurrency: 4 4 # timeout for analysis, e.g. 30s, 5m, default is 1m 5 deadline: 20m 6 # exit code when at least one issue was found, default is 1 7 issues-exit-code: 1 8 # include test files or not, default is true 9 tests: true 10 11 skip-files: 12 - ".*\\.pb\\.go$" 13 - ".*\\.gen\\.go$" 14 - ".*\\_gen\\.go$" 15 - "mock_.*\\.go" 16 - ".*\\.resolvers\\.go$" 17 18 # default is true. Enables skipping of directories: 19 # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ 20 skip-dirs-use-default: true 21 22 # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": 23 # If invoked with -mod=readonly, the go command is disallowed from the implicit 24 # automatic updating of go.mod described above. Instead, it fails when any changes 25 # to go.mod are needed. This setting is most useful to check that go.mod does 26 # not need updates, such as in a continuous integration and testing system. 27 # If invoked with -mod=vendor, the go command assumes that the vendor 28 # directory holds the correct copies of dependencies and ignores 29 # the dependency descriptions in go.mod. 30 modules-download-mode: readonly 31 32 # Allow multiple parallel golangci-lint instances running. 33 # If false (default) - golangci-lint acquires file lock on start. 34 allow-parallel-runners: false 35 36 # output configuration options 37 output: 38 # colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions 39 # default is "colored-line-number" 40 format: colored-line-number 41 42 # print lines of code with issue, default is true 43 print-issued-lines: true 44 45 # print linter name in the end of issue text, default is true 46 print-linter-name: true 47 48 # make issues output unique by line, default is true 49 uniq-by-line: true 50 51 # add a prefix to the output file references; default is no prefix 52 path-prefix: "" 53 54 # sorts results by: filepath, line and column 55 sort-results: false 56 57 linters-settings: 58 cyclop: 59 # the maximal code complexity to report 60 max-complexity: 10 61 # the maximal average package complexity. If it's higher than 0.0 (float) the check is enabled (default 0.0) 62 package-average: 0.0 63 # should ignore tests (default false) 64 skip-tests: false 65 66 dogsled: 67 # checks assignments with too many blank identifiers; default is 2 68 max-blank-identifiers: 2 69 70 dupl: 71 # tokens count to trigger issue, 150 by default 72 threshold: 100 73 74 errcheck: 75 # report about not checking of errors in type assertions: `a := b.(MyStruct)`; 76 # default is false: such cases aren't reported by default. 77 check-type-assertions: false 78 79 # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`; 80 # default is false: such cases aren't reported by default. 81 check-blank: false 82 83 # [deprecated] comma-separated list of pairs of the form pkg:regex 84 # the regex is used to ignore names within pkg. (default "fmt:.*"). 85 # see https://github.com/kisielk/errcheck#the-deprecated-method for details 86 # ignore: fmt:.*,io/ioutil:^Read.* 87 88 # path to a file containing a list of functions to exclude from checking 89 # see https://github.com/kisielk/errcheck#excluding-functions for details 90 # exclude: /path/to/file.txt 91 92 errorlint: 93 # Check whether fmt.Errorf uses the %w verb for formatting errors. See the readme for caveats 94 errorf: true 95 # Check for plain type assertions and type switches 96 asserts: true 97 # Check for plain error comparisons 98 comparison: true 99 100 exhaustive: 101 # check switch statements in generated files also 102 check-generated: false 103 # indicates that switch statements are to be considered exhaustive if a 104 # 'default' case is present, even if all enum members aren't listed in the 105 # switch 106 default-signifies-exhaustive: false 107 108 #exhaustivestruct: 109 # Struct Patterns is list of expressions to match struct packages and names 110 # The struct packages have the form example.com/package.ExampleStruct 111 # The matching patterns can use matching syntax from https://pkg.go.dev/path#Match 112 # If this list is empty, all structs are tested. 113 # struct-patterns: 114 # - '*.Test' 115 # - 'example.com/package.ExampleStruct' 116 117 forbidigo: 118 # Forbid the following identifiers (identifiers are written using regexp): 119 forbid: 120 - '^print$' 121 - '^fmt\.Print.*' 122 - '^grpc\.(Header|Trailer)$' # easy to misuse and create a data race 123 # Exclude godoc examples from forbidigo checks. Default is true. 124 exclude_godoc_examples: false 125 126 funlen: 127 lines: 60 128 statements: 40 129 130 #gci: 131 # put imports beginning with prefix after 3rd-party packages; 132 # only support one prefix 133 # if not set, use goimports.local-prefixes 134 # local-prefixes: github.com/org/project 135 136 gocognit: 137 # minimal code complexity to report, 30 by default (but we recommend 10-20) 138 min-complexity: 10 139 140 nestif: 141 # minimal complexity of if statements to report, 5 by default 142 min-complexity: 4 143 144 goconst: 145 # minimal length of string constant, 3 by default 146 min-len: 3 147 # minimal occurrences count to trigger, 3 by default 148 min-occurrences: 3 149 150 gocritic: 151 # Which checks should be enabled; can't be combined with 'disabled-checks'; 152 # See https://go-critic.github.io/overview#checks-overview 153 # To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run` 154 # By default list of stable checks is used. 155 # enabled-checks: 156 # - rangeValCopy 157 158 # Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty 159 disabled-checks: 160 - regexpMust 161 162 # Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks. 163 # Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags". 164 enabled-tags: 165 - performance 166 - diagnostic 167 - style 168 disabled-tags: 169 - experimental 170 171 # Settings passed to gocritic. 172 # The settings key is the name of a supported gocritic checker. 173 # The list of supported checkers can be find in https://go-critic.github.io/overview. 174 settings: 175 captLocal: # must be valid enabled check name 176 # whether to restrict checker to params only (default true) 177 paramsOnly: true 178 elseif: 179 # whether to skip balanced if-else pairs (default true) 180 skipBalanced: true 181 hugeParam: 182 # size in bytes that makes the warning trigger (default 80) 183 sizeThreshold: 80 184 # nestingReduce: 185 # min number of statements inside a branch to trigger a warning (default 5) 186 # bodyWidth: 5 187 rangeExprCopy: 188 # size in bytes that makes the warning trigger (default 512) 189 sizeThreshold: 512 190 # whether to check test functions (default true) 191 skipTestFuncs: true 192 rangeValCopy: 193 # size in bytes that makes the warning trigger (default 128) 194 sizeThreshold: 32 195 # whether to check test functions (default true) 196 skipTestFuncs: true 197 # ruleguard: 198 # path to a gorules file for the ruleguard checker 199 # rules: '' 200 # truncateCmp: 201 # whether to skip int/uint/uintptr types (default true) 202 # skipArchDependent: true 203 underef: 204 # whether to skip (*x).method() calls where x is a pointer receiver (default true) 205 skipRecvDeref: true 206 # unnamedResult: 207 # whether to check exported functions 208 # checkExported: true 209 210 gocyclo: 211 # minimal code complexity to report, 30 by default (but we recommend 10-20) 212 min-complexity: 10 213 214 godot: 215 # comments to be checked: `declarations`, `toplevel`, or `all` 216 scope: declarations 217 # list of regexps for excluding particular comment lines from check 218 # exclude: 219 # example: exclude comments which contain numbers 220 # - '[0-9]+' 221 # check that each sentence starts with a capital letter 222 capital: false 223 224 godox: 225 # report any comments starting with keywords, this is useful for TODO or FIXME comments that 226 # might be left in the code accidentally and should be resolved before merging 227 keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting 228 - NOTE 229 - OPTIMIZE # marks code that should be optimized before merging 230 - HACK # marks hack-arounds that should be removed before merging 231 232 gofmt: 233 # simplify code: gofmt with `-s` option, true by default 234 simplify: true 235 236 gofumpt: 237 # Choose whether or not to use the extra rules that are disabled 238 # by default 239 extra-rules: false 240 241 # goheader: 242 # values: 243 # const: 244 # define here const type values in format k:v, for example: 245 # COMPANY: MY COMPANY 246 # regexp: 247 # define here regexp type values, for example 248 # AUTHOR: .*@mycompany\.com 249 # template: # |- 250 # put here copyright header template for source code files, for example: 251 # Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time. 252 # 253 # {{ AUTHOR }} {{ COMPANY }} {{ YEAR }} 254 # SPDX-License-Identifier: Apache-2.0 255 256 # Licensed under the Apache License, Version 2.0 (the "License"); 257 # you may not use this file except in compliance with the License. 258 # You may obtain a copy of the License at: 259 260 # http://www.apache.org/licenses/LICENSE-2.0 261 262 # Unless required by applicable law or agreed to in writing, software 263 # distributed under the License is distributed on an "AS IS" BASIS, 264 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 265 # See the License for the specific language governing permissions and 266 # limitations under the License. 267 # template-path: 268 # also as alternative of directive 'template' you may put the path to file with the template source 269 270 #goimports: 271 # put imports beginning with prefix after 3rd-party packages; 272 # it's a comma-separated list of prefixes 273 # local-prefixes: github.com/org/project 274 275 golint: 276 # minimal confidence for issues, default is 0.8 277 min-confidence: 0.8 278 279 gomnd: 280 settings: 281 mnd: 282 # the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. 283 checks: 284 - argument 285 - case 286 - condition 287 - operation 288 - return 289 - assign 290 # ignored-numbers: 1000 291 # ignored-files: magic_.*.go 292 # ignored-functions: math.* 293 294 gomoddirectives: 295 # Allow local `replace` directives. Default is false. 296 replace-local: false 297 # List of allowed `replace` directives. Default is empty. 298 # replace-allow-list: 299 # - launchpad.net/gocheck 300 # Allow to not explain why the version has been retracted in the `retract` directives. Default is false. 301 retract-allow-no-explanation: false 302 # Forbid the use of the `exclude` directives. Default is false. 303 exclude-forbidden: false 304 305 gomodguard: 306 allowed: 307 modules: # List of allowed modules 308 # - gopkg.in/yaml.v2 309 domains: # List of allowed module domains 310 # - golang.org 311 blocked: 312 modules: # List of blocked modules 313 # - github.com/uudashr/go-module: # Blocked module 314 # recommendations: # Recommended modules that should be used instead (Optional) 315 # - golang.org/x/mod 316 # reason: "`mod` is the official go.mod parser library." # Reason why the recommended module should be used (Optional) 317 versions: # List of blocked module version constraints 318 # - github.com/mitchellh/go-homedir: # Blocked module with version constraint 319 # version: "< 1.1.0" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons 320 # reason: "testing if blocked version constraint works." # Reason why the version constraint exists. (Optional) 321 local_replace_directives: false # Set to true to raise lint issues for packages that are loaded from a local path via replace directive 322 323 # gosec: 324 # To select a subset of rules to run. 325 # Available rules: https://github.com/securego/gosec#available-rules 326 # includes: 327 # - G401 328 # - G306 329 # - G101 330 # To specify a set of rules to explicitly exclude. 331 # Available rules: https://github.com/securego/gosec#available-rules 332 # excludes: 333 # - G204 334 # To specify the configuration of rules. 335 # The configuration of rules is not fully documented by gosec: 336 # https://github.com/securego/gosec#configuration 337 # https://github.com/securego/gosec/blob/569328eade2ccbad4ce2d0f21ee158ab5356a5cf/rules/rulelist.go#L60-L102 338 # config: 339 # G306: "0600" 340 # G101: 341 # pattern: "(?i)example" 342 # ignore_entropy: false 343 # entropy_threshold: "80.0" 344 # per_char_threshold: "3.0" 345 # truncate: "32" 346 347 gosimple: 348 # Select the Go version to target. The default is '1.13'. 349 go: "1.18" 350 # https://staticcheck.io/docs/options#checks 351 checks: [ "all" ] 352 353 govet: 354 # report about shadowed variables 355 check-shadowing: true 356 357 # settings per analyzer 358 settings: 359 printf: # analyzer name, run `go tool vet help` to see all analyzers 360 funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer 361 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof 362 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf 363 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf 364 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf 365 366 # enable or disable analyzers by name 367 # run `go tool vet help` to see all analyzers 368 enable: 369 - atomicalign 370 enable-all: false 371 disable: 372 - shadow 373 disable-all: false 374 375 depguard: 376 list-type: blacklist 377 include-go-root: false 378 packages: 379 - github.com/sirupsen/logrus 380 - gitlab.com/gitlab-org/labkit/log 381 - log 382 packages-with-error-message: 383 # specify an error message to output when a blacklisted package is used 384 - github.com/sirupsen/logrus: "use zap" 385 - gitlab.com/gitlab-org/labkit/log: "use zap" 386 - log: "use zap" 387 388 ifshort: 389 # Maximum length of variable declaration measured in number of lines, after which linter won't suggest using short syntax. 390 # Has higher priority than max-decl-chars. 391 max-decl-lines: 1 392 # Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax. 393 max-decl-chars: 30 394 395 importas: 396 # if set to `true`, force to use alias. 397 no-unaliased: true 398 # List of aliases 399 # alias: 400 # using `servingv1` alias for `knative.dev/serving/pkg/apis/serving/v1` package 401 # - pkg: knative.dev/serving/pkg/apis/serving/v1 402 # alias: servingv1 403 # using `autoscalingv1alpha1` alias for `knative.dev/serving/pkg/apis/autoscaling/v1alpha1` package 404 # - pkg: knative.dev/serving/pkg/apis/autoscaling/v1alpha1 405 # alias: autoscalingv1alpha1 406 # You can specify the package path by regular expression, 407 # and alias by regular expression expansion syntax like below. 408 # see https://github.com/julz/importas#use-regular-expression for details 409 # - pkg: knative.dev/serving/pkg/apis/(\w+)/(v[\w\d]+) 410 # alias: $1$2 411 412 lll: 413 # max line length, lines longer will be reported. Default is 120. 414 # '\t' is counted as 1 character by default, and can be changed with the tab-width option 415 line-length: 120 416 # tab width in spaces. Default to 1. 417 tab-width: 1 418 419 makezero: 420 # Allow only slices initialized with a length of zero. Default is false. 421 always: false 422 423 maligned: 424 # print struct with more effective memory layout or not, false by default 425 suggest-new: true 426 427 misspell: 428 # Correct spellings using locale preferences for US or UK. 429 # Default is to use a neutral variety of English. 430 # Setting locale to US will correct the British spelling of 'colour' to 'color'. 431 locale: US 432 # ignore-words: 433 # - someword 434 435 nakedret: 436 # make an issue if func has more lines of code than this setting and it has naked returns; default is 30 437 max-func-lines: 30 438 439 prealloc: 440 # XXX: we don't recommend using this linter before doing performance profiling. 441 # For most programs usage of prealloc will be a premature optimization. 442 443 # Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them. 444 # True by default. 445 simple: true 446 range-loops: true # Report preallocation suggestions on range loops, true by default 447 for-loops: false # Report preallocation suggestions on for loops, false by default 448 449 promlinter: 450 # Promlinter cannot infer all metrics name in static analysis. 451 # Enable strict mode will also include the errors caused by failing to parse the args. 452 strict: false 453 # Please refer to https://github.com/yeya24/promlinter#usage for detailed usage. 454 # disabled-linters: 455 # - "Help" 456 # - "MetricUnits" 457 # - "Counter" 458 # - "HistogramSummaryReserved" 459 # - "MetricTypeInName" 460 # - "ReservedChars" 461 # - "CamelCase" 462 # - "lintUnitAbbreviations" 463 464 # predeclared: 465 # comma-separated list of predeclared identifiers to not report on 466 # ignore: "" 467 # include method names and field names (i.e., qualified names) in checks 468 # q: false 469 470 nolintlint: 471 # Enable to ensure that nolint directives are all used. Default is true. 472 allow-unused: false 473 # Disable to ensure that nolint directives don't have a leading space. Default is true. 474 allow-leading-space: true 475 # Exclude following linters from requiring an explanation. Default is []. 476 allow-no-explanation: [] 477 # Enable to require an explanation of nonzero length after each nolint directive. Default is false. 478 require-explanation: true 479 # Enable to require nolint directives to mention the specific linter being suppressed. Default is false. 480 require-specific: true 481 482 # rowserrcheck: 483 # packages: 484 # - github.com/jmoiron/sqlx 485 486 # revive: 487 # # see https://github.com/mgechev/revive#available-rules for details. 488 # ignore-generated-header: true 489 # severity: warning 490 # rules: 491 # - name: indent-error-flow 492 # severity: warning 493 # - name: add-constant 494 # severity: warning 495 # arguments: 496 # - maxLitCount: "3" 497 # allowStrs: '""' 498 # allowInts: "0,1,2" 499 # allowFloats: "0.0,0.,1.0,1.,2.0,2." 500 501 staticcheck: 502 # Select the Go version to target. The default is '1.13'. 503 go: "1.18" 504 # https://staticcheck.io/docs/options#checks 505 checks: [ "all" ] 506 507 stylecheck: 508 # Select the Go version to target. The default is '1.13'. 509 go: "1.18" 510 # https://staticcheck.io/docs/options#checks 511 checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] 512 # https://staticcheck.io/docs/options#dot_import_whitelist 513 dot-import-whitelist: 514 - fmt 515 # https://staticcheck.io/docs/options#initialisms 516 initialisms: [ "ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS" ] 517 # https://staticcheck.io/docs/options#http_status_code_whitelist 518 http-status-code-whitelist: [ "200", "400", "404", "500" ] 519 520 tagliatelle: 521 # check the struck tag name case 522 case: 523 # use the struct field name to check the name of the struct tag 524 use-field-name: true 525 rules: 526 # any struct tag type can be used. 527 # support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower` 528 json: camel 529 yaml: camel 530 xml: camel 531 bson: camel 532 avro: snake 533 mapstructure: kebab 534 535 # testpackage: 536 # regexp pattern to skip files 537 # skip-regexp: (export|internal)_test\.go 538 539 thelper: 540 # The following configurations enable all checks. It can be omitted because all checks are enabled by default. 541 # You can enable only required checks deleting unnecessary checks. 542 test: 543 first: true 544 name: true 545 begin: true 546 benchmark: 547 first: true 548 name: true 549 begin: true 550 tb: 551 first: true 552 name: true 553 begin: true 554 555 unparam: 556 # Inspect exported functions, default is false. Set to true if no external program/library imports your code. 557 # XXX: if you enable this setting, unparam will report a lot of false-positives in text editors: 558 # if it's called for subdir of a project it can't find external interfaces. All text editor integrations 559 # with golangci-lint call it on a directory with the changed file. 560 check-exported: false 561 562 unused: 563 # Select the Go version to target. The default is '1.13'. 564 go: "1.19" 565 566 whitespace: 567 multi-if: false # Enforces newlines (or comments) after every multi-line if statement 568 multi-func: false # Enforces newlines (or comments) after every multi-line function signature 569 570 wrapcheck: 571 # An array of strings that specify substrings of signatures to ignore. 572 # If this set, it will override the default set of ignored signatures. 573 # See https://github.com/tomarrell/wrapcheck#configuration for more information. 574 ignoreSigs: 575 - .Errorf( 576 - errors.New( 577 - errors.Unwrap( 578 - .Wrap( 579 - .Wrapf( 580 - .WithMessage( 581 582 wsl: 583 # See https://github.com/bombsimon/wsl/blob/master/doc/configuration.md for 584 # documentation of available settings. These are the defaults for 585 # `golangci-lint`. 586 allow-assign-and-anything: false 587 allow-assign-and-call: true 588 allow-cuddle-declarations: false 589 allow-multiline-assign: true 590 allow-separated-leading-comment: false 591 allow-trailing-comment: false 592 force-case-trailing-whitespace: 0 593 force-err-cuddling: false 594 force-short-decl-cuddling: false 595 strict-append: true 596 597 598 linters: 599 # disable-all: true 600 enable: 601 - asciicheck 602 - prealloc 603 - megacheck 604 - govet 605 - exportloopref 606 - forbidigo 607 disable: 608 - scopelint 609 - varcheck 610 - deadcode 611 - structcheck 612 - rowserrcheck 613 - sqlclosecheck 614 - musttag 615 presets: 616 - bugs 617 - unused 618 - performance 619 fast: false 620 621 622 issues: 623 # List of regexps of issue texts to exclude, empty list by default. 624 # But independently from this option we use default exclude patterns, 625 # it can be disabled by `exclude-use-default: false`. To list all 626 # excluded by default patterns execute `golangci-lint run --help` 627 # exclude: 628 # - abcdef 629 630 # Excluding configuration per-path, per-linter, per-text and per-source 631 exclude-rules: 632 # Exclude some linters from running on tests files. 633 - path: _test\.go 634 linters: 635 - gocyclo 636 - errcheck 637 - dupl 638 - gosec 639 640 # Exclude some staticcheck messages 641 # - linters: 642 # - staticcheck 643 # text: "SA9003:" 644 645 # Exclude lll issues for long lines with go:generate 646 - linters: 647 - lll 648 source: "^//go:generate " 649 650 # Independently from option `exclude` we use default exclude patterns, 651 # it can be disabled by this option. To list all 652 # excluded by default patterns execute `golangci-lint run --help`. 653 # Default value for this option is true. 654 exclude-use-default: false 655 656 # The default value is false. If set to true exclude and exclude-rules 657 # regular expressions become case sensitive. 658 exclude-case-sensitive: false 659 660 # The list of ids of default excludes to include or disable. By default it's empty. 661 include: 662 - EXC0002 # disable excluding of issues about comments from golint 663 664 # Maximum issues count per one linter. Set to 0 to disable. Default is 50. 665 max-issues-per-linter: 0 666 667 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. 668 max-same-issues: 0 669 670 # Show only new issues: if there are unstaged changes or untracked files, 671 # only those changes are analyzed, else only changes in HEAD~ are analyzed. 672 # It's a super-useful option for integration of golangci-lint into existing 673 # large codebase. It's not practical to fix all existing issues at the moment 674 # of integration: much better don't allow issues in new code. 675 # Default is false. 676 new: false 677 678 # Show only new issues created after git revision `REV` 679 # new-from-rev: REV 680 681 # Show only new issues created in git patch with set file path. 682 # new-from-patch: path/to/patch/file 683 684 # Fix found issues (if it's supported by the linter) 685 fix: true 686 687 severity: 688 # Default value is empty string. 689 # Set the default severity for issues. If severity rules are defined and the issues 690 # do not match or no severity is provided to the rule this will be the default 691 # severity applied. Severities should match the supported severity names of the 692 # selected out format. 693 # - Code climate: https://docs.codeclimate.com/docs/issues#issue-severity 694 # - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#severity 695 # - Github: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message 696 default-severity: error 697 698 # The default value is false. 699 # If set to true severity-rules regular expressions become case sensitive. 700 case-sensitive: false 701 702 # Default value is empty list. 703 # When a list of severity rules are provided, severity information will be added to lint 704 # issues. Severity rules have the same filtering capability as exclude rules except you 705 # are allowed to specify one matcher per severity rule. 706 # Only affects out formats that support setting severity information. 707 rules: 708 - linters: 709 - dupl 710 severity: info