Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# Update version in README.md
README_REPLACEMENTS = (
("rev: v{old}", "rev: v{new}"),
("StyLua:{old}", "StyLua:{new}"),
("stylua:{old}", "stylua:{new}"),
("stylua@{old}", "stylua@{new}"),
)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ StyLua is available on the [Docker Hub](https://hub.docker.com/r/johnnymorganz/s
If you are using Docker, the easiest way to install StyLua is:

```dockerfile
COPY --from=JohnnyMorganz/StyLua:2.6.0 /stylua /usr/bin/stylua
COPY --from=johnnymorganz/stylua:2.6.0 /stylua /usr/bin/stylua
```

### Homebrew
Expand Down Expand Up @@ -198,7 +198,7 @@ Note that this may produce false positives and negatives - we recommend manual v
### Ignoring parts of a file

To skip formatting a particular part of a file, you can add `-- stylua: ignore` before it.
This is useful if there is a particular style you want to preseve for readability, e.g.:
This is useful if there is a particular style you want to preserve for readability, e.g.:

```lua
-- stylua: ignore
Expand Down
2 changes: 1 addition & 1 deletion src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn create_diff(
vec.push(b'\n');
vec
})
// Covert to anyhow::Error
// Convert to anyhow::Error
.map_err(|err| err.into())
})
.transpose()
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ fn function_args_multiline_heuristic(
expression => {
current_state = current_state.record_standard_arg();

// TODO: BACKWARDS COMPATABILITY - THIS CODEPATH WAS ONLY FOLLOWED THROUGH WHEN
// TODO: BACKWARDS COMPATIBILITY - THIS CODEPATH WAS ONLY FOLLOWED THROUGH WHEN
// IT WASN'T PARENTHESES / UNOP, AND THE PATHS MERGED WHEN REMOVING EXPRESSION::VALUE
// WE SHOULD SEE IF THIS IS ACTUALLY NECESSARY
if !matches!(
Expand Down
2 changes: 1 addition & 1 deletion src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl Shape {
}

/// Whether simple heuristics should be used when calculating formatting shape
/// This is to reduce the expontential blowup of discarded test formatting
/// This is to reduce the exponential blowup of discarded test formatting
#[must_use]
pub fn using_simple_heuristics(&self) -> bool {
self.simple_heuristics
Expand Down