Skip to content

Commit

Permalink
Refactor linting commands in Taskfile.yml for simplicity and efficiency
Browse files Browse the repository at this point in the history
- Removed conditional check for _config.yml existence in yamllint command, streamlining the linting process.
- Updated markdownlint command for improved path handling.
  • Loading branch information
jonesrussell committed Jan 11, 2025
1 parent a6c1624 commit 9a70d86
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ tasks:
deps: [lint:pull]
cmds:
- docker run -v "${PWD}:/workdir" --rm -w /workdir davidanson/markdownlint-cli2 "_posts/**/*.md" "*.md"
- |
if [ -f "_config.yml" ]; then
docker run -v "${PWD}:/workdir" --rm -w /workdir cytopia/yamllint .
else
echo "Warning: _config.yml not found"
exit 1
fi
- docker run -v "${PWD}:/workdir" --rm -w /workdir cytopia/yamllint .

lint:pull:
desc: Pull required Docker images
Expand Down

0 comments on commit 9a70d86

Please sign in to comment.