File tree 11 files changed +246
-0
lines changed
11 files changed +246
-0
lines changed Original file line number Diff line number Diff line change @@ -2386,6 +2386,12 @@ linters-settings:
2386
2386
# Default: false
2387
2387
enable-all-rules : true
2388
2388
2389
+ # Enable validation of comment directives.
2390
+ # See https://github.com/mgechev/revive#comment-directives
2391
+ directives :
2392
+ - name : specify-disable-reason
2393
+ severity : error
2394
+
2389
2395
# Sets the default failure confidence.
2390
2396
# This means that linting errors with less than 0.8 confidence will be ignored.
2391
2397
# Default: 0.8
Original file line number Diff line number Diff line change @@ -2386,6 +2386,12 @@ linters-settings:
2386
2386
# Default: false
2387
2387
enable-all-rules : true
2388
2388
2389
+ # Enable validation of comment directives.
2390
+ # See https://github.com/mgechev/revive#comment-directives
2391
+ directives :
2392
+ - name : specify-disable-reason
2393
+ severity : error
2394
+
2389
2395
# Sets the default failure confidence.
2390
2396
# This means that linting errors with less than 0.8 confidence will be ignored.
2391
2397
# Default: 0.8
Original file line number Diff line number Diff line change 2657
2657
"type" : " boolean" ,
2658
2658
"default" : false
2659
2659
},
2660
+ "directives" : {
2661
+ "type" : " array" ,
2662
+ "items" : {
2663
+ "type" : " object" ,
2664
+ "additionalProperties" : false ,
2665
+ "properties" : {
2666
+ "name" : {
2667
+ "type" : " string" ,
2668
+ "enum" : [" specify-disable-reason" ]
2669
+ },
2670
+ "severity" : {
2671
+ "type" : " string" ,
2672
+ "enum" : [" warning" , " error" ]
2673
+ },
2674
+ "exclude" : {
2675
+ "type" : " array" ,
2676
+ "items" : {
2677
+ "type" : " string"
2678
+ }
2679
+ },
2680
+ "arguments" : {
2681
+ "type" : " array"
2682
+ }
2683
+ }
2684
+ }
2685
+ },
2660
2686
"rules" : {
2661
2687
"type" : " array" ,
2662
2688
"items" : {
Original file line number Diff line number Diff line change 2657
2657
"type" : " boolean" ,
2658
2658
"default" : false
2659
2659
},
2660
+ "directives" : {
2661
+ "type" : " array" ,
2662
+ "items" : {
2663
+ "type" : " object" ,
2664
+ "additionalProperties" : false ,
2665
+ "properties" : {
2666
+ "name" : {
2667
+ "type" : " string" ,
2668
+ "enum" : [" specify-disable-reason" ]
2669
+ },
2670
+ "severity" : {
2671
+ "type" : " string" ,
2672
+ "enum" : [" warning" , " error" ]
2673
+ },
2674
+ "exclude" : {
2675
+ "type" : " array" ,
2676
+ "items" : {
2677
+ "type" : " string"
2678
+ }
2679
+ },
2680
+ "arguments" : {
2681
+ "type" : " array"
2682
+ }
2683
+ }
2684
+ }
2685
+ },
2660
2686
"rules" : {
2661
2687
"type" : " array" ,
2662
2688
"items" : {
Original file line number Diff line number Diff line change 2209
2209
"type" : " boolean" ,
2210
2210
"default" : false
2211
2211
},
2212
+ "directives" : {
2213
+ "type" : " array" ,
2214
+ "items" : {
2215
+ "type" : " object" ,
2216
+ "additionalProperties" : false ,
2217
+ "properties" : {
2218
+ "name" : {
2219
+ "type" : " string" ,
2220
+ "enum" : [" specify-disable-reason" ]
2221
+ },
2222
+ "severity" : {
2223
+ "type" : " string" ,
2224
+ "enum" : [" warning" , " error" ]
2225
+ },
2226
+ "exclude" : {
2227
+ "type" : " array" ,
2228
+ "items" : {
2229
+ "type" : " string"
2230
+ }
2231
+ },
2232
+ "arguments" : {
2233
+ "type" : " array"
2234
+ }
2235
+ }
2236
+ }
2237
+ },
2212
2238
"rules" : {
2213
2239
"type" : " array" ,
2214
2240
"items" : {
Original file line number Diff line number Diff line change 2380
2380
"type" : " boolean" ,
2381
2381
"default" : false
2382
2382
},
2383
+ "directives" : {
2384
+ "type" : " array" ,
2385
+ "items" : {
2386
+ "type" : " object" ,
2387
+ "additionalProperties" : false ,
2388
+ "properties" : {
2389
+ "name" : {
2390
+ "type" : " string" ,
2391
+ "enum" : [" specify-disable-reason" ]
2392
+ },
2393
+ "severity" : {
2394
+ "type" : " string" ,
2395
+ "enum" : [" warning" , " error" ]
2396
+ },
2397
+ "exclude" : {
2398
+ "type" : " array" ,
2399
+ "items" : {
2400
+ "type" : " string"
2401
+ }
2402
+ },
2403
+ "arguments" : {
2404
+ "type" : " array"
2405
+ }
2406
+ }
2407
+ }
2408
+ },
2383
2409
"rules" : {
2384
2410
"type" : " array" ,
2385
2411
"items" : {
Original file line number Diff line number Diff line change 2463
2463
"type" : " boolean" ,
2464
2464
"default" : false
2465
2465
},
2466
+ "directives" : {
2467
+ "type" : " array" ,
2468
+ "items" : {
2469
+ "type" : " object" ,
2470
+ "additionalProperties" : false ,
2471
+ "properties" : {
2472
+ "name" : {
2473
+ "type" : " string" ,
2474
+ "enum" : [" specify-disable-reason" ]
2475
+ },
2476
+ "severity" : {
2477
+ "type" : " string" ,
2478
+ "enum" : [" warning" , " error" ]
2479
+ },
2480
+ "exclude" : {
2481
+ "type" : " array" ,
2482
+ "items" : {
2483
+ "type" : " string"
2484
+ }
2485
+ },
2486
+ "arguments" : {
2487
+ "type" : " array"
2488
+ }
2489
+ }
2490
+ }
2491
+ },
2466
2492
"rules" : {
2467
2493
"type" : " array" ,
2468
2494
"items" : {
Original file line number Diff line number Diff line change 2469
2469
"type" : " boolean" ,
2470
2470
"default" : false
2471
2471
},
2472
+ "directives" : {
2473
+ "type" : " array" ,
2474
+ "items" : {
2475
+ "type" : " object" ,
2476
+ "additionalProperties" : false ,
2477
+ "properties" : {
2478
+ "name" : {
2479
+ "type" : " string" ,
2480
+ "enum" : [" specify-disable-reason" ]
2481
+ },
2482
+ "severity" : {
2483
+ "type" : " string" ,
2484
+ "enum" : [" warning" , " error" ]
2485
+ },
2486
+ "exclude" : {
2487
+ "type" : " array" ,
2488
+ "items" : {
2489
+ "type" : " string"
2490
+ }
2491
+ },
2492
+ "arguments" : {
2493
+ "type" : " array"
2494
+ }
2495
+ }
2496
+ }
2497
+ },
2472
2498
"rules" : {
2473
2499
"type" : " array" ,
2474
2500
"items" : {
Original file line number Diff line number Diff line change 2474
2474
"type" : " boolean" ,
2475
2475
"default" : false
2476
2476
},
2477
+ "directives" : {
2478
+ "type" : " array" ,
2479
+ "items" : {
2480
+ "type" : " object" ,
2481
+ "additionalProperties" : false ,
2482
+ "properties" : {
2483
+ "name" : {
2484
+ "type" : " string" ,
2485
+ "enum" : [" specify-disable-reason" ]
2486
+ },
2487
+ "severity" : {
2488
+ "type" : " string" ,
2489
+ "enum" : [" warning" , " error" ]
2490
+ },
2491
+ "exclude" : {
2492
+ "type" : " array" ,
2493
+ "items" : {
2494
+ "type" : " string"
2495
+ }
2496
+ },
2497
+ "arguments" : {
2498
+ "type" : " array"
2499
+ }
2500
+ }
2501
+ }
2502
+ },
2477
2503
"rules" : {
2478
2504
"type" : " array" ,
2479
2505
"items" : {
Original file line number Diff line number Diff line change 2528
2528
"type" : " boolean" ,
2529
2529
"default" : false
2530
2530
},
2531
+ "directives" : {
2532
+ "type" : " array" ,
2533
+ "items" : {
2534
+ "type" : " object" ,
2535
+ "additionalProperties" : false ,
2536
+ "properties" : {
2537
+ "name" : {
2538
+ "type" : " string" ,
2539
+ "enum" : [" specify-disable-reason" ]
2540
+ },
2541
+ "severity" : {
2542
+ "type" : " string" ,
2543
+ "enum" : [" warning" , " error" ]
2544
+ },
2545
+ "exclude" : {
2546
+ "type" : " array" ,
2547
+ "items" : {
2548
+ "type" : " string"
2549
+ }
2550
+ },
2551
+ "arguments" : {
2552
+ "type" : " array"
2553
+ }
2554
+ }
2555
+ }
2556
+ },
2531
2557
"rules" : {
2532
2558
"type" : " array" ,
2533
2559
"items" : {
Original file line number Diff line number Diff line change 2606
2606
"type" : " boolean" ,
2607
2607
"default" : false
2608
2608
},
2609
+ "directives" : {
2610
+ "type" : " array" ,
2611
+ "items" : {
2612
+ "type" : " object" ,
2613
+ "additionalProperties" : false ,
2614
+ "properties" : {
2615
+ "name" : {
2616
+ "type" : " string" ,
2617
+ "enum" : [" specify-disable-reason" ]
2618
+ },
2619
+ "severity" : {
2620
+ "type" : " string" ,
2621
+ "enum" : [" warning" , " error" ]
2622
+ },
2623
+ "exclude" : {
2624
+ "type" : " array" ,
2625
+ "items" : {
2626
+ "type" : " string"
2627
+ }
2628
+ },
2629
+ "arguments" : {
2630
+ "type" : " array"
2631
+ }
2632
+ }
2633
+ }
2634
+ },
2609
2635
"rules" : {
2610
2636
"type" : " array" ,
2611
2637
"items" : {
You can’t perform that action at this time.
0 commit comments