Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylua: Enable more Lua version formatting #25450

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lua/stylua/Portfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

Check warning on line 1 in lua/stylua/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint stylua: Warning: Unnecessary platforms line as darwin is the default Warning: aho-corasick-1.0.5.crate - missing recommended checksum type: rmd160 Warning: anes-0.1.6.crate - missing recommended checksum type: rmd160 Warning: anstyle-1.0.3.crate - missing recommended checksum type: rmd160 Warning: anyhow-1.0.75.crate - missing recommended checksum type: rmd160 Warning: assert_cmd-2.0.12.crate - missing recommended checksum type: rmd160 Warning: assert_fs-1.0.13.crate - missing recommended checksum type: rmd160 Warning: atty-0.2.14.crate - missing recommended checksum type: rmd160 Warning: autocfg-1.0.1.crate - missing recommended checksum type: rmd160 Warning: beef-0.5.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-1.3.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-2.4.0.crate - missing recommended checksum type: rmd160 Warning: bstr-1.6.2.crate - missing recommended checksum type: rmd160 Warning: bumpalo-3.12.0.crate - missing recommended checksum type: rmd160 Warning: bytecount-0.6.3.crate - missing recommended checksum type: rmd160 Warning: cast-0.3.0.crate - missing recommended checksum type: rmd160 Warning: cc-1.0.83.crate - missing recommended checksum type: rmd160 Warning: cfg-if-1.0.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-io-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-ll-0.2.0.crate - missing recommended checksum type: rmd160 Warning: clap-3.1.6.crate - missing recommended checksum type: rmd160 Warning: clap_derive-3.1.4.crate - missing recommended checksum type: rmd160 Warning: console-0.15.7.crate - missing recommended checksum type: rmd160 Warning: convert_case-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-plot-0.5.0.crate - missing recommended checksum type: rmd160 Warning: crossbeam-channel-0.5.8.crate - missing recommended checksum type: rmd160 Warning: crossbeam-deque-0.8.1.crate - missing recommended checksum type: rmd160 Warning: crossbeam-epoch-0.9.5.crate - missing recommended checksum type: rmd160 Warning: crossbeam-utils-0.8.7.crate - missing recommended checksum type: rmd160 Warning: derive_more-0.99.16.crate - missing recommended checksum type: rmd160 Warning: difflib-0.4.0.crate - missing recommended checksum type: rmd160 Warning: doc-comment-0.3.3.crate - missing recommended checksum type: rmd160 Warning: ec4rs-1.0.2.crate - missing recommended checksum type: rmd160 Warning: either-1.6.1.crate - missing recommended checksum type: rmd160 Warning: encode_unicode-0.3.6.crate - missing recommended checksum type: rmd160 Warning: env_logger-0.10.0.crate - missing recommended checksum type: rmd160 Warning: equivalent-1.0.0.crate - missing recommended checksum type: rmd160 Warning: errno-0.3.3.crate - missing recommended checksum type: rmd160 Warning: errno-dragonfly-0.1.2.crate - missing recommended checksum type: rmd160 Warning: fastrand-2.0.0.crate - missing recommended checksum type: rmd160 Warning: fnv-1.0.7.crate - missing recommended checksum type: rmd160 Warning: full_moon-0.19.0.crate - missing recommended checksum type: rmd160 Warning: full_moon_derive-0.11.0.crate - missing recommended checksum type: rmd160 Warning: globset-0.4.13.crate - missing recommended checksum type: rmd160 Warning: globwalk-0.8.1.crate - missing recommended checksum type: rmd160 Warning: half-1.7.1.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.11.2.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.14.0.crate - missing recommended checksum type: rmd160 Warning: heck-0.4.1.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.1.19.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.3.1.crate - missing recommended checksum type: rmd160 Warning: ignore-0.4.20.crate - missing recommended checksum type: rmd160 Warning: indexmap-1.7.0.crate - missing recom

Check warning on line 1 in lua/stylua/Portfile

View workflow job for this annotation

GitHub Actions / macos-12

port lint stylua: Warning: Unnecessary platforms line as darwin is the default Warning: aho-corasick-1.0.5.crate - missing recommended checksum type: rmd160 Warning: anes-0.1.6.crate - missing recommended checksum type: rmd160 Warning: anstyle-1.0.3.crate - missing recommended checksum type: rmd160 Warning: anyhow-1.0.75.crate - missing recommended checksum type: rmd160 Warning: assert_cmd-2.0.12.crate - missing recommended checksum type: rmd160 Warning: assert_fs-1.0.13.crate - missing recommended checksum type: rmd160 Warning: atty-0.2.14.crate - missing recommended checksum type: rmd160 Warning: autocfg-1.0.1.crate - missing recommended checksum type: rmd160 Warning: beef-0.5.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-1.3.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-2.4.0.crate - missing recommended checksum type: rmd160 Warning: bstr-1.6.2.crate - missing recommended checksum type: rmd160 Warning: bumpalo-3.12.0.crate - missing recommended checksum type: rmd160 Warning: bytecount-0.6.3.crate - missing recommended checksum type: rmd160 Warning: cast-0.3.0.crate - missing recommended checksum type: rmd160 Warning: cc-1.0.83.crate - missing recommended checksum type: rmd160 Warning: cfg-if-1.0.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-io-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-ll-0.2.0.crate - missing recommended checksum type: rmd160 Warning: clap-3.1.6.crate - missing recommended checksum type: rmd160 Warning: clap_derive-3.1.4.crate - missing recommended checksum type: rmd160 Warning: console-0.15.7.crate - missing recommended checksum type: rmd160 Warning: convert_case-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-plot-0.5.0.crate - missing recommended checksum type: rmd160 Warning: crossbeam-channel-0.5.8.crate - missing recommended checksum type: rmd160 Warning: crossbeam-deque-0.8.1.crate - missing recommended checksum type: rmd160 Warning: crossbeam-epoch-0.9.5.crate - missing recommended checksum type: rmd160 Warning: crossbeam-utils-0.8.7.crate - missing recommended checksum type: rmd160 Warning: derive_more-0.99.16.crate - missing recommended checksum type: rmd160 Warning: difflib-0.4.0.crate - missing recommended checksum type: rmd160 Warning: doc-comment-0.3.3.crate - missing recommended checksum type: rmd160 Warning: ec4rs-1.0.2.crate - missing recommended checksum type: rmd160 Warning: either-1.6.1.crate - missing recommended checksum type: rmd160 Warning: encode_unicode-0.3.6.crate - missing recommended checksum type: rmd160 Warning: env_logger-0.10.0.crate - missing recommended checksum type: rmd160 Warning: equivalent-1.0.0.crate - missing recommended checksum type: rmd160 Warning: errno-0.3.3.crate - missing recommended checksum type: rmd160 Warning: errno-dragonfly-0.1.2.crate - missing recommended checksum type: rmd160 Warning: fastrand-2.0.0.crate - missing recommended checksum type: rmd160 Warning: fnv-1.0.7.crate - missing recommended checksum type: rmd160 Warning: full_moon-0.19.0.crate - missing recommended checksum type: rmd160 Warning: full_moon_derive-0.11.0.crate - missing recommended checksum type: rmd160 Warning: globset-0.4.13.crate - missing recommended checksum type: rmd160 Warning: globwalk-0.8.1.crate - missing recommended checksum type: rmd160 Warning: half-1.7.1.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.11.2.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.14.0.crate - missing recommended checksum type: rmd160 Warning: heck-0.4.1.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.1.19.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.3.1.crate - missing recommended checksum type: rmd160 Warning: ignore-0.4.20.crate - missing recommended checksum type: rmd160 Warning: indexmap-1.7.0.crate - missing recom

Check warning on line 1 in lua/stylua/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint stylua: Warning: Unnecessary platforms line as darwin is the default Warning: aho-corasick-1.0.5.crate - missing recommended checksum type: rmd160 Warning: anes-0.1.6.crate - missing recommended checksum type: rmd160 Warning: anstyle-1.0.3.crate - missing recommended checksum type: rmd160 Warning: anyhow-1.0.75.crate - missing recommended checksum type: rmd160 Warning: assert_cmd-2.0.12.crate - missing recommended checksum type: rmd160 Warning: assert_fs-1.0.13.crate - missing recommended checksum type: rmd160 Warning: atty-0.2.14.crate - missing recommended checksum type: rmd160 Warning: autocfg-1.0.1.crate - missing recommended checksum type: rmd160 Warning: beef-0.5.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-1.3.2.crate - missing recommended checksum type: rmd160 Warning: bitflags-2.4.0.crate - missing recommended checksum type: rmd160 Warning: bstr-1.6.2.crate - missing recommended checksum type: rmd160 Warning: bumpalo-3.12.0.crate - missing recommended checksum type: rmd160 Warning: bytecount-0.6.3.crate - missing recommended checksum type: rmd160 Warning: cast-0.3.0.crate - missing recommended checksum type: rmd160 Warning: cc-1.0.83.crate - missing recommended checksum type: rmd160 Warning: cfg-if-1.0.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-io-0.2.0.crate - missing recommended checksum type: rmd160 Warning: ciborium-ll-0.2.0.crate - missing recommended checksum type: rmd160 Warning: clap-3.1.6.crate - missing recommended checksum type: rmd160 Warning: clap_derive-3.1.4.crate - missing recommended checksum type: rmd160 Warning: console-0.15.7.crate - missing recommended checksum type: rmd160 Warning: convert_case-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-0.4.0.crate - missing recommended checksum type: rmd160 Warning: criterion-plot-0.5.0.crate - missing recommended checksum type: rmd160 Warning: crossbeam-channel-0.5.8.crate - missing recommended checksum type: rmd160 Warning: crossbeam-deque-0.8.1.crate - missing recommended checksum type: rmd160 Warning: crossbeam-epoch-0.9.5.crate - missing recommended checksum type: rmd160 Warning: crossbeam-utils-0.8.7.crate - missing recommended checksum type: rmd160 Warning: derive_more-0.99.16.crate - missing recommended checksum type: rmd160 Warning: difflib-0.4.0.crate - missing recommended checksum type: rmd160 Warning: doc-comment-0.3.3.crate - missing recommended checksum type: rmd160 Warning: ec4rs-1.0.2.crate - missing recommended checksum type: rmd160 Warning: either-1.6.1.crate - missing recommended checksum type: rmd160 Warning: encode_unicode-0.3.6.crate - missing recommended checksum type: rmd160 Warning: env_logger-0.10.0.crate - missing recommended checksum type: rmd160 Warning: equivalent-1.0.0.crate - missing recommended checksum type: rmd160 Warning: errno-0.3.3.crate - missing recommended checksum type: rmd160 Warning: errno-dragonfly-0.1.2.crate - missing recommended checksum type: rmd160 Warning: fastrand-2.0.0.crate - missing recommended checksum type: rmd160 Warning: fnv-1.0.7.crate - missing recommended checksum type: rmd160 Warning: full_moon-0.19.0.crate - missing recommended checksum type: rmd160 Warning: full_moon_derive-0.11.0.crate - missing recommended checksum type: rmd160 Warning: globset-0.4.13.crate - missing recommended checksum type: rmd160 Warning: globwalk-0.8.1.crate - missing recommended checksum type: rmd160 Warning: half-1.7.1.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.11.2.crate - missing recommended checksum type: rmd160 Warning: hashbrown-0.14.0.crate - missing recommended checksum type: rmd160 Warning: heck-0.4.1.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.1.19.crate - missing recommended checksum type: rmd160 Warning: hermit-abi-0.3.1.crate - missing recommended checksum type: rmd160 Warning: ignore-0.4.20.crate - missing recommended checksum type: rmd160 Warning: indexmap-1.7.0.crate - missing recom

PortSystem 1.0
PortGroup github 1.0
PortGroup cargo 1.0

github.setup johnnymorganz stylua 0.20.0 v
revision 0
revision 1
categories lua
platforms darwin
maintainers {judaew @judaew} \
openmaintainer
license MPL-2

description An opinionated Lua code formatter
long_description An opinionated code formatter for Lua 5.1, Lua 5.2 and Luau. \
long_description An opinionated code formatter for Lua 5.1-5.4 and Luau. \
StyLua is inspired by the likes of prettier, it parses your \
Lua codebase, and prints it back out from scratch, enforcing \
a consistent code style.
Expand All @@ -23,6 +23,9 @@
sha256 34235d51602229e8ad95b4099c6f7a36fde8eef699b998e17f3d00c61e6151ad \
size 412909

build.pre_args-append \
--features editorconfig,wasm-bindgen,luau,lua54

destroot {
xinstall -m 755 ${worksrcpath}/target/[cargo.rust_platform]/release/${name} ${destroot}${prefix}/bin/
}
Expand Down