repo string | pull_number int64 | instance_id string | issue_numbers sequence | base_commit string | patch string | test_patch string | problem_statement string | hints_text string | created_at string | version string | updated_at string | environment_setup_commit string | FAIL_TO_PASS sequence | PASS_TO_PASS sequence | FAIL_TO_FAIL sequence | PASS_TO_FAIL sequence |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JohnnyMorganz/StyLua | 469 | JohnnyMorganz__StyLua-469 | [
"448"
] | 56f144f15b2628282fb4a84344e8daad9b8d6666 | diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- `--output-format=json` now outputs all (error) messages in JSON format ([#453](https://github.com/JohnnyMorganz/StyLua/issues/453)... | diff --git /dev/null b/tests/inputs-ignore/ignore-table-field.lua
new file mode 100644
--- /dev/null
+++ b/tests/inputs-ignore/ignore-table-field.lua
@@ -0,0 +1,20 @@
+local foo = {
+ -- stylua: ignore
+ x = 2,
+ y = 3,
+ z = " he " ,
+}
+
+local bar = {
+ x = 2,
+ -- stylua: ignore
+ y = 3,
+ z... | Allow ignore comments to be used in places other than before statements
Currently, the only place ignore comments will be registered if they are leading trivia before statements.
This can be confusing, especially when you place a comment somewhere but it does not do anything.
We should be able to handle ignore comm... | 2022-06-25T19:22:24Z | 0.13 | 2022-06-25T12:18:38Z | 69c9278e551be7681578e01e6ab16cf6b05c82c5 | [
"test_ignores"
] | [
"formatters::trivia_util::tests::test_token_contains_no_singleline_comments",
"tests::test_config_call_parentheses",
"formatters::trivia_util::tests::test_token_contains_no_singleline_comments_2",
"formatters::trivia_util::tests::test_token_contains_singleline_comments",
"tests::test_config_indent_type",
... | [] | [] | |
JohnnyMorganz/StyLua | 422 | JohnnyMorganz__StyLua-422 | [
"421"
] | 30c713bc68d31b45fcfba1227bc6fbd4df97cba2 | diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed issue through static linking where Windows binary would not execute due to missing `VCRUNTIME140.dll`. ([#413](https://git... | diff --git a/tests/test_ignore.rs b/tests/test_ignore.rs
--- a/tests/test_ignore.rs
+++ b/tests/test_ignore.rs
@@ -211,3 +211,48 @@ local bar = baz
local bar = baz
"###);
}
+
+#[test]
+fn test_multiline_block_ignore_multiple_comments_in_leading_trivia() {
+ insta::assert_snapshot!(
+ format(
... | Block ignore is not applied to all back-to-back blocks
When `--stylua: ignore start/end` comments are applied back-to-back, they take effect on every second ignored block. This might be considered as a non-issue because they can be merged into one single ignored block, but it might be inconvenient when they are separat... | Yeah, this is a bug - it seems as though we are not correctly re-opening an ignore section when we see the `--stylua: ignore start` comment.
This code is actually parsed as these separate statements:
```lua
--stylua: ignore start
local a = 1
---------------------------
--stylua: ignore end
--stylua: igno... | 2022-03-27T21:08:32Z | 0.12 | 2022-03-27T13:12:43Z | a369d02342f3b1432ff89c619c97129a57678141 | [
"test_multiline_block_ignore_multiple_comments_in_leading_trivia"
] | [
"formatters::trivia_util::tests::test_token_contains_singleline_comments",
"formatters::trivia_util::tests::test_token_contains_no_singleline_comments_2",
"formatters::trivia_util::tests::test_token_contains_no_singleline_comments",
"tests::test_config_call_parentheses",
"tests::test_config_column_width",
... | [] | [] |
JohnnyMorganz/StyLua | 131 | JohnnyMorganz__StyLua-131 | [
"78"
] | aa9d9319d0314a853c4f56d3c120525668dc1a8a | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -7,10 +7,14 @@(...TRUNCATED) | "diff --git /dev/null b/src/shape.rs\nnew file mode 100644\n--- /dev/null\n+++ b/src/shape.rs\n@@ -0(...TRUNCATED) | "Turns readable multi-line function calls into harder to read, single line ones, but are under the c(...TRUNCATED) | "I definitely also prefer the former styling here, so this should be looked into.\n\nI think part of(...TRUNCATED) | 2021-04-30T00:06:22Z | 0.7 | 2021-04-30T12:15:38Z | aa9d9319d0314a853c4f56d3c120525668dc1a8a | [
"test_luau"
] | [
"test_lua52"
] | [] | [] |
JohnnyMorganz/StyLua | 931 | JohnnyMorganz__StyLua-931 | [
"928"
] | d67c77b6f73ccab63d544adffe9cf3d859e71fa4 | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -7,6 +7,10 @@ (...TRUNCATED) | "diff --git a/src/cli/main.rs b/src/cli/main.rs\n--- a/src/cli/main.rs\n+++ b/src/cli/main.rs\n@@ -8(...TRUNCATED) | "after new release stdin does not repsect .stylua.toml by default\nunless must set config-path .. be(...TRUNCATED) | "Looks like a mistake in https://github.com/JohnnyMorganz/StyLua/blob/1daf4c18fb6baf687cc41082f1cc69(...TRUNCATED) | 2024-11-30T20:21:18Z | 2.0 | 2024-11-30T12:36:13Z | f581279895a7040a36abaea4a6c8a6f50f112cd7 | [
"tests::test_cwd_configuration_respected_when_formatting_from_stdin"
] | ["editorconfig::tests::test_collapse_simple_statement_always","editorconfig::tests::test_call_parent(...TRUNCATED) | [] | [] |
JohnnyMorganz/StyLua | 926 | JohnnyMorganz__StyLua-926 | [
"925"
] | 08e536f3a02d9a07b0991726897e0013ff78dd21 | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -7,6 +7,10 @@ (...TRUNCATED) | "diff --git a/src/cli/main.rs b/src/cli/main.rs\n--- a/src/cli/main.rs\n+++ b/src/cli/main.rs\n@@ -9(...TRUNCATED) | "CLI overrides not applied when formatting files in v2.0.0\nI tried to run it both from Windows and (...TRUNCATED) | "Hm, this does look like line endings changing for some reason. Which is weird, since I don't think (...TRUNCATED) | 2024-11-18T05:01:53Z | 2.0 | 2024-11-17T21:06:05Z | f581279895a7040a36abaea4a6c8a6f50f112cd7 | [
"tests::test_uses_cli_overrides_instead_of_found_configuration"
] | ["editorconfig::tests::test_call_parentheses_no_single_string","editorconfig::tests::test_call_paren(...TRUNCATED) | [] | [] |
JohnnyMorganz/StyLua | 916 | JohnnyMorganz__StyLua-916 | [
"831",
"915"
] | d7d532b4baf2bcf2adf1925d7248f659788e5b58 | "diff --git a/README.md b/README.md\n--- a/README.md\n+++ b/README.md\n@@ -229,7 +229,8 @@ StyLua ha(...TRUNCATED) | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -21,6 +21,9 @@(...TRUNCATED) | "feat: Use closest `stylua.toml` config to file being formatted\nIt would be nice if the formatter c(...TRUNCATED) | "> we stop at first .stylelua file, somehow it does not stop and merges\r\n\r\nthis sounds incorrec(...TRUNCATED) | 2024-11-17T19:57:54Z | 0.20 | 2024-11-17T16:13:53Z | 26047670e05ba310afe9c1c1f91be6749e1f3ac9 | ["tests::test_configuration_is_used_closest_to_the_file","tests::test_configuration_is_searched_next(...TRUNCATED) | ["editorconfig::tests::test_call_parentheses_no_single_table","editorconfig::tests::test_call_parent(...TRUNCATED) | [] | [] |
JohnnyMorganz/StyLua | 852 | JohnnyMorganz__StyLua-852 | [
"845"
] | bc3ce881eaaee46e8eb851366d33cba808d2a1f7 | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -23,6 +23,7 @@(...TRUNCATED) | "diff --git a/src/cli/main.rs b/src/cli/main.rs\n--- a/src/cli/main.rs\n+++ b/src/cli/main.rs\n@@ -7(...TRUNCATED) | "`--respect-ignores`: does not correctly ignore folders without the globbing pattern \nProblem: `.st(...TRUNCATED) | "We use the ignore crate to provide gitignore-style ignores: https://docs.rs/ignore/latest/ignore/. (...TRUNCATED) | 2024-01-20T20:13:59Z | 0.19 | 2024-01-20T12:37:21Z | bc3ce881eaaee46e8eb851366d33cba808d2a1f7 | [
"tests::test_respect_ignores_directory_no_glob"
] | ["editorconfig::tests::test_call_parentheses_always","editorconfig::tests::test_call_parentheses_no_(...TRUNCATED) | [] | [] |
JohnnyMorganz/StyLua | 752 | JohnnyMorganz__StyLua-752 | [
"750"
] | fdf9f0c5952cb1565ba6449929514eb94ac5ef3f | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -7,6 +7,10 @@ (...TRUNCATED) | "diff --git a/src/verify_ast.rs b/src/verify_ast.rs\n--- a/src/verify_ast.rs\n+++ b/src/verify_ast.r(...TRUNCATED) | "Panic when format luajit type with `--verify` flag\ninstalled by `cargo install stylua --features l(...TRUNCATED) | 2023-09-02T08:18:04Z | 0.18 | 2023-09-02T00:44:03Z | 095e2b0c79df0bac21915dd2deee9a0a25a9b382 | ["verify_ast::tests::test_equivalent_luajit_numbers","test_global","test_local","test_empty_root","t(...TRUNCATED) | ["editorconfig::tests::test_call_parentheses_always","editorconfig::tests::test_call_parentheses_no_(...TRUNCATED) | [] | [] | |
JohnnyMorganz/StyLua | 666 | JohnnyMorganz__StyLua-666 | [
"665"
] | 46457ad4e4130d07ee0f9a5cf95ac10023c8ceeb | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -11,6 +11,7 @@(...TRUNCATED) | "diff --git a/tests/tests.rs b/tests/tests.rs\n--- a/tests/tests.rs\n+++ b/tests/tests.rs\n@@ -127,3(...TRUNCATED) | "Line endings appear to not be converted when they occur in multiline comments (?)\nHeyo, we've run (...TRUNCATED) | Definitely unintended, let me take a look. Thanks for the report! | 2023-03-30T23:38:41Z | 0.17 | 2023-03-30T15:47:25Z | 5c6d59135f419274121349799a5227be467358b1 | ["test_global","test_root","test_local","test_stylua_toml","test_crlf_in_multiline_strings","test_cr(...TRUNCATED) | ["editorconfig::tests::test_call_parentheses_always","editorconfig::tests::test_call_parentheses_no_(...TRUNCATED) | [] | [] |
JohnnyMorganz/StyLua | 645 | JohnnyMorganz__StyLua-645 | [
"75"
] | 15c1f0d4880dbcfe37dd2828da10745f95a13825 | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -22,6 +22,10 @(...TRUNCATED) | "diff --git a/.gitattributes b/.gitattributes\n--- a/.gitattributes\n+++ b/.gitattributes\n@@ -1,3 +(...TRUNCATED) | "[Suggestion] Support .editorconfig\nGiven that [.editorconfig file](https://editorconfig.org/) prov(...TRUNCATED) | "I believe the way prettier does this is to allow an option to defer to the `.editorconfig` file. Wo(...TRUNCATED) | 2023-02-04T22:22:18Z | 0.16 | 2023-11-20T17:38:32Z | 12d3f3d31b203d90d615183d6ac356b3cb71b913 | [
"test_lua54"
] | ["formatters::trivia_util::tests::test_token_contains_no_singleline_comments","formatters::trivia_ut(...TRUNCATED) | [] | [] |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4