Skip to content

v0.0.4

Choose a tag to compare

@github-actions github-actions released this 26 May 06:38
· 25 commits to main since this release
fb5f08b

What's new in v0.0.4

lint --fix autofix

styl lint --fix <file> applies safe mechanical fixes in-place without altering semantics. Four rules are now fixable:

  • W004 — sorts interpolate/step stops into ascending order
  • W007 — removes empty text-field: "" from symbol layers
  • W015 — removes paint stop values out of order
  • W016 / W017 — removes color properties shadowed by a fill-pattern (unreachable paint props)

Exit code reflects the post-fix state: if all warnings were fixed, exits 0.

styl lint --fix style.json        # fix in-place
styl lint style.json              # verify result

Curl-installable installer

New install.sh lets users install styl without Cargo or Homebrew:

curl -fsSL https://raw.githubusercontent.com/navidnabavi/styl/main/install.sh | bash

Auto-detects OS and architecture, fetches the latest release binary.

Config file renamed: .mapboxlintrc.stylrc

Breaking change. The per-project config file is now .stylrc (spec-neutral name). Rename any existing .mapboxlintrc files. Discovery still walks up the directory tree the same way.

CI & release hardening

  • cargo-audit job scans dependencies for known advisories on every push
  • MSRV pinned to Rust 1.89
  • Code coverage via Codecov
  • Dependabot enabled for Cargo and GitHub Actions
  • Homebrew formula auto-update workflow on release
  • Per-binary .sha256 checksum files now attached to every release

Dependency updates

  • thiserror 1 → 2
  • toml 0.8 → 1.1
  • serde_json 1.0.149 → 1.0.150
  • actions/checkout 4 → 6, codecov/codecov-action 4 → 6, softprops/action-gh-release 2 → 3

Community

  • Reusable GitHub Actions workflow contributed by @miladibra10

Commits

fb5f08b Merge pull request #8 from navidnabavi/dependabot/cargo/thiserror-2.0.18
129d39d build(deps): bump thiserror from 1.0.69 to 2.0.18
77b9d88 Merge pull request #5 from navidnabavi/dependabot/github_actions/actions/checkout-6
09de0ac Merge pull request #7 from navidnabavi/dependabot/cargo/toml-1.1.2spec-1.1.0
3cf3a43 Merge pull request #6 from navidnabavi/dependabot/cargo/serde_json-1.0.150
643c2f7 Merge pull request #4 from navidnabavi/dependabot/github_actions/softprops/action-gh-release-3
89d1d35 Merge pull request #3 from navidnabavi/dependabot/github_actions/codecov/codecov-action-6
f3525b2 Merge pull request #9 from miladibra10/main
1907de3 ci: add re-usable github action for workflows
7b206e7 docs: update CLAUDE.md — lint --fix command, W018 rule range, autofix doc note
7bbf972 docs(linter): document lint --fix autofix feature
b0f3ce0 test: add integration test for lint --fix autofix pipeline
7bef704 fix: lint --fix reports only fixed codes, exit code reflects post-fix state
a42a0a2 feat: add lint --fix flag to apply safe autofixes
0d54963 feat(linter): implement W015/W016/W017 autofix — remove shadowed color props
f3760e7 feat(linter): implement W007 autofix — remove empty text-field
05d539c feat(linter): implement W004 autofix — sort stops ascending
ba34ff1 feat(linter): add fix() and is_fixable() to LintRule trait
7f98365 Revert "docs: add autofix design spec for lint --fix"
f7a1fb8 docs: add autofix design spec for lint --fix
e1274dd build(deps): bump toml from 0.8.23 to 1.1.2+spec-1.1.0
a1dc2b9 build(deps): bump serde_json from 1.0.149 to 1.0.150
bf2bba0 build(deps): bump actions/checkout from 4 to 6
78d942e build(deps): bump codecov/codecov-action from 4 to 6
4fa603d build(deps): bump softprops/action-gh-release from 2 to 3
7183887 ci: add cargo-audit, MSRV (1.89), coverage, dependabot, and homebrew auto-update workflows
964cdac doc: fix features table
29d45dd docs: add E021, fix W-code range in config.md, improve CI pinning guidance
e9360e3 docs: expand CI integration with pinned version and checksum examples
33044af doc: add image assets
5d38b93 refactor: rename .mapboxlintrc to .stylrc for spec-neutral naming
ec86ab8 fix(svg): correct output formats, equalize spec labels
a7a9bd9 docs(claude): add release workflow, assets, and publishing notes
ef0051d ci: generate per-binary sha256 checksums on release
2c49741 docs: add SVG infographic, remove redundant diagnostics table from README
87a6024 docs: add brew, one-line installer, and cargo install options to README
0a8208f feat: add install.sh — curl | bash installer for all platforms