-
Notifications
You must be signed in to change notification settings - Fork 73
Remove blank lines after opening and before closing braces #1195
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
Merged
IndrajeetPatil
merged 25 commits into
main
from
f1032-remove-blank-lines-after-and-before-parens
May 20, 2024
Merged
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1057135
initial work on remove blank lines before and after braces
IndrajeetPatil 47b7da7
pre-commit
github-actions[bot] 0fcbc96
add tests for LBB
IndrajeetPatil 9464800
more tests
IndrajeetPatil 280b272
bandaid
IndrajeetPatil b687296
Merge branch 'main' into f1032-remove-blank-lines-after-and-before-pa…
IndrajeetPatil 8f4bda9
include tests with comments; remove strict param
IndrajeetPatil 304792d
Merge branch 'main' into f1032-remove-blank-lines-after-and-before-pa…
IndrajeetPatil 2df29fb
create new transformers for removing empty lines
IndrajeetPatil e0e2ed4
better naming
IndrajeetPatil 226615d
add tests with pipes
IndrajeetPatil 0d67987
also add tests for roxygen comments
IndrajeetPatil 1f60831
Merge branch 'main' into f1032-remove-blank-lines-after-and-before-pa…
IndrajeetPatil d1fb41e
run on R-release on Ubuntu
IndrajeetPatil a7056be
remove non-existing token
IndrajeetPatil 1e4b63d
Merge branch 'main' into f1032-remove-blank-lines-after-and-before-pa…
IndrajeetPatil e744159
use only a single transformer
IndrajeetPatil 2a98c4d
Update strict.Rmd
IndrajeetPatil 4b12010
add a test that mixes LBB with (
IndrajeetPatil 0a1c8b6
also add test for mixing `[ `and `(`
IndrajeetPatil 8c93aaf
Update pre-commit.yaml
IndrajeetPatil 671f3f4
Update pre-commit.yaml
IndrajeetPatil b480577
Revert "Update pre-commit.yaml"
IndrajeetPatil 18bae50
Update pre-commit.yaml
IndrajeetPatil f9d4ab4
merge with main
IndrajeetPatil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,13 @@ | |
{1 + 3} | ||
{2 + sin(pi)} | ||
} | ||
|
||
{ | ||
|
||
# some additions | ||
{1 + 3} | ||
{2 + sin(pi)} | ||
|
||
# nothing to see here | ||
|
||
} |
82 changes: 56 additions & 26 deletions
82
tests/testthat/indention_curly_brackets/multi_line_curly_only-in_tree
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,15 @@ | |
2 + sin(pi) | ||
} | ||
} | ||
|
||
{ | ||
# some additions | ||
{ | ||
1 + 3 | ||
} | ||
{ | ||
2 + sin(pi) | ||
} | ||
|
||
# nothing to see here | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,18 @@ a <- function(x, y, z) { | |
x[i] +1 | ||
} | ||
} | ||
|
||
|
||
if ( | ||
|
||
require("logspline") && | ||
require("rstanarm") | ||
|
||
|
||
|
||
) { | ||
|
||
NULL | ||
|
||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.