Lint at top level, instead of each package individually
This commit is contained in:
parent
b5c33c2ad0
commit
700e3e0412
19
.build.yml
19
.build.yml
@ -45,25 +45,10 @@ tasks:
|
|||||||
duration=$SECONDS
|
duration=$SECONDS
|
||||||
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
||||||
|
|
||||||
- lint_scraper: |
|
- lint: |
|
||||||
SECONDS=0
|
SECONDS=0
|
||||||
|
|
||||||
cd twitter_offline_engine/scraper
|
cd twitter_offline_engine
|
||||||
golangci-lint run
|
|
||||||
|
|
||||||
cd ../cmd
|
|
||||||
golangci-lint run
|
|
||||||
|
|
||||||
duration=$SECONDS
|
|
||||||
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
|
||||||
|
|
||||||
- lint_persistence: |
|
|
||||||
SECONDS=0
|
|
||||||
|
|
||||||
cd twitter_offline_engine/persistence
|
|
||||||
golangci-lint run
|
|
||||||
|
|
||||||
cd ../cmd
|
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
duration=$SECONDS
|
duration=$SECONDS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user