|
542 | 542 | description: "Run 'staticcheck [$ARGS] ./...' in repo root folder" |
543 | 543 | pass_filenames: false |
544 | 544 |
|
| 545 | +# ============================================================================== |
| 546 | +# go-structslop-mod |
| 547 | +# * Folder-Based |
| 548 | +# * Recursive |
| 549 | +# * Targets first parent folder with a go.mod file |
| 550 | +# * Executes if any .go files modified |
| 551 | +# * Executes if go.mod modified |
| 552 | +# ============================================================================== |
| 553 | +- id: go-structslop-mod |
| 554 | + name: 'go-structslop-mod' |
| 555 | + entry: go-structslop-mod.sh |
| 556 | + files: '(\.go$)|(\bgo\.mod$)' |
| 557 | + exclude: '(^|/)vendor/' |
| 558 | + language: 'script' |
| 559 | + description: "Run 'cd $(mod_root $FILE); structslop [$ARGS] ./...' for each staged .go file" |
| 560 | + pass_filenames: true |
| 561 | + require_serial: true |
| 562 | + |
| 563 | +# ============================================================================== |
| 564 | +# go-structslop-pkg |
| 565 | +# * Folder-Based |
| 566 | +# * Targets folder containing staged file |
| 567 | +# * Executes if any .go files modified |
| 568 | +# ============================================================================== |
| 569 | +- id: go-structslop-pkg |
| 570 | + name: 'go-structslop-pkg' |
| 571 | + entry: go-structslop-pkg.sh |
| 572 | + types: [go] |
| 573 | + exclude: '(^|/)vendor/' |
| 574 | + language: 'script' |
| 575 | + description: "Run 'structslop [$ARGS] ./$(dirname $FILE)' for each staged .go file" |
| 576 | + pass_filenames: true |
| 577 | + require_serial: true |
| 578 | + |
| 579 | +# ============================================================================== |
| 580 | +# go-structslop-repo-mod |
| 581 | +# * Repo-Based |
| 582 | +# * Recursive |
| 583 | +# * Targets ALL folders with a go.mod file |
| 584 | +# * Executes if any .go files modified |
| 585 | +# * Executes if go.mod modified |
| 586 | +# ============================================================================== |
| 587 | +- id: go-structslop-repo-mod |
| 588 | + name: 'go-structslop-repo-mod' |
| 589 | + entry: go-structslop-repo-mod.sh |
| 590 | + files: '(\.go$)|(\bgo\.mod$)' |
| 591 | + exclude: '(^|/)vendor/' |
| 592 | + language: 'script' |
| 593 | + description: "Run 'cd $(mod_root); structslop [$ARGS] ./...' for each module in the repo" |
| 594 | + pass_filenames: false |
| 595 | + |
| 596 | +# ============================================================================== |
| 597 | +# go-structslop-repo-pkg |
| 598 | +# * Repo-Based |
| 599 | +# * Recursive |
| 600 | +# * Executes if any .go files modified |
| 601 | +# ============================================================================== |
| 602 | +- id: go-structslop-repo-pkg |
| 603 | + name: 'go-structslop-repo-pkg' |
| 604 | + entry: go-structslop-repo-pkg.sh |
| 605 | + types: [go] |
| 606 | + exclude: '(^|/)vendor/' |
| 607 | + language: 'script' |
| 608 | + description: "Run 'structslop [$ARGS] ./...' in repo root folder" |
| 609 | + pass_filenames: false |
| 610 | + |
545 | 611 | # ============================================================================== |
546 | 612 | # go-test-mod |
547 | 613 | # * Folder-Based |
|
0 commit comments