@@ -2476,59 +2476,77 @@ linters-settings:
2476
2476
- ^(?i)c(?-i)ach(ing|e)
2477
2477
2478
2478
wsl :
2479
- # See https://github.com/bombsimon/wsl/blob/master/doc/configuration.md for documentation of available settings.
2480
- # These are the defaults for `golangci-lint`.
2481
-
2482
- # Do strict checking when assigning from append (x = append(x, y)). If
2483
- # this is set to true - the append call must append either a variable
2479
+ # Do strict checking when assigning from append (x = append(x, y)).
2480
+ # If this is set to true - the append call must append either a variable
2484
2481
# assigned, called or used on the line above.
2485
- strict-append : true
2482
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#strict-append
2483
+ # Default: true
2484
+ strict-append : false
2486
2485
2487
2486
# Allows assignments to be cuddled with variables used in calls on
2488
2487
# line above and calls to be cuddled with assignments of variables
2489
2488
# used in call on line above.
2490
- allow-assign-and-call : true
2489
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-assign-and-call
2490
+ # Default: true
2491
+ allow-assign-and-call : false
2491
2492
2492
2493
# Allows assignments to be cuddled with anything.
2493
- allow-assign-and-anything : false
2494
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-assign-and-anything
2495
+ # Default: false
2496
+ allow-assign-and-anything : true
2494
2497
2495
2498
# Allows cuddling to assignments even if they span over multiple lines.
2496
- allow-multiline-assign : true
2499
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-multiline-assign
2500
+ # Default: true
2501
+ allow-multiline-assign : false
2497
2502
2498
- # If the number of lines in a case block is equal to or lager than this
2499
- # number, the case *must* end white a newline.
2500
- force-case-trailing-whitespace : 0
2503
+ # If the number of lines in a case block is equal to or lager than this number,
2504
+ # the case *must* end white a newline.
2505
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#force-case-trailing-whitespace
2506
+ # Default: 0
2507
+ force-case-trailing-whitespace : 1
2501
2508
2502
2509
# Allow blocks to end with comments.
2503
- allow-trailing-comment : false
2510
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-trailing-comment
2511
+ # Default: false
2512
+ allow-trailing-comment : true
2504
2513
2505
2514
# Allow multiple comments in the beginning of a block separated with newline.
2506
- allow-separated-leading-comment : false
2515
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-separated-leading-comment
2516
+ # Default: false
2517
+ allow-separated-leading-comment : true
2507
2518
2508
2519
# Allow multiple var/declaration statements to be cuddled.
2509
- allow-cuddle-declarations : false
2520
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#allow-cuddle-declarations
2521
+ # Default: false
2522
+ allow-cuddle-declarations : true
2510
2523
2511
2524
# A list of call idents that everything can be cuddled with.
2512
- # Defaults to calls looking like locks.
2513
- allow-cuddle-with-calls : [ "Lock ", "RLock " ]
2525
+ # Defaults: [ "Lock", "RLock" ]
2526
+ allow-cuddle-with-calls : [ "Foo ", "Bar " ]
2514
2527
2515
2528
# AllowCuddleWithRHS is a list of right hand side variables that is allowed
2516
- # to be cuddled with anything. Defaults to assignments or calls looking
2517
- # like unlocks.
2518
- allow-cuddle-with-rhs : [ "Unlock ", "RUnlock " ]
2529
+ # to be cuddled with anything.
2530
+ # Defaults: [ "Unlock", "RUnlock" ]
2531
+ allow-cuddle-with-rhs : [ "Foo ", "Bar " ]
2519
2532
2520
2533
# Causes an error when an If statement that checks an error variable doesn't
2521
2534
# cuddle with the assignment of that variable.
2522
- force-err-cuddling : false
2535
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#force-err-cuddling
2536
+ # Default: false
2537
+ force-err-cuddling : true
2523
2538
2524
2539
# When force-err-cuddling is enabled this is a list of names
2525
2540
# used for error variables to check for in the conditional.
2526
- error-variable-names : [ "err" ]
2541
+ # Default: [ "err" ]
2542
+ error-variable-names : [ "foo" ]
2527
2543
2528
2544
# Causes an error if a short declaration (:=) cuddles with anything other than
2529
2545
# another short declaration.
2530
2546
# This logic overrides force-err-cuddling among others.
2531
- force-short-decl-cuddling : false
2547
+ # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#force-short-decl-cuddling
2548
+ # Default: false
2549
+ force-short-decl-cuddling : true
2532
2550
2533
2551
# The custom section can be used to define linter plugins to be loaded at runtime.
2534
2552
# See README documentation for more info.
0 commit comments