Andrey Proskurin
6744df20f3
Add knr brace style to README
2022-09-14 13:25:04 +02:00
Eugen Wissner
8d42254d47
Fix indentation of callchains with comments
...
Weird formatting and indentation of multiline callchains with comments
in the middle.
2022-08-06 08:55:43 +02:00
Bastiaan Veelo
2a4af7a2b2
Retain line ending by default. ( #553 )
2022-07-28 17:21:10 +02:00
Eugen Wissner
026a58e273
Very long chained calls in array literals are indented weirdly
2022-07-28 17:14:01 +02:00
Bastiaan Veelo
4947beec6b
CI
...
Add GitHub action.
2022-07-14 23:19:37 +02:00
belka-ew
d862d8aef1
Fix array literal indentation in foreach ( #554 )
2022-06-14 12:35:54 +00:00
skyline131313
036da91542
Update dub.json to remove dependency on `rdmd` ( #547 )
2022-06-13 16:23:56 +02:00
Max Haughton
ed5fc2ffd2
Merge pull request #551 from veelo/d_test_script
...
Port `test.sh` to platform independent D.
2022-05-30 00:15:49 +01:00
Bastiaan Veelo
b8da7c5cd4
Refactor courtesy WebFreak001.
...
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2022-05-27 19:47:47 +02:00
Bastiaan Veelo
f6d9d04e43
Port `test.sh` to platform independent D.
...
This executes also way faster by not spawning GNU diff.
2022-05-26 16:10:07 +02:00
Bastiaan Veelo
f81ddeadbd
obey `end_of_line` setting in all tokens ( #550 )
...
Multi-line tokens would be written with `LF`, regardless the `end_of_line` setting.
Fixes #228 and also produces end_of_line specified line-endings in strings.
2022-05-25 13:21:07 +02:00
Bastiaan Veelo
3e1e643972
Merge branch 'dlang-community:master' into master
2022-05-23 16:23:20 +02:00
Eugen Wissner
77e2ba4e3d
Fix array indentation as argument
2022-05-23 14:09:26 +02:00
RazvanN7
6a24f0dc7c
Upgrade libdparse to latest version
2022-01-26 14:05:44 +01:00
Martin Kinkelin
b776d5a9b9
Fix tests
2021-10-31 20:37:32 +09:00
Razvan Nitu
2beb819851
Merge pull request #535 from dlang-community/single-indent
...
Add single_indent option
2021-10-22 16:22:40 +03:00
Jan Jurzitza
f1e57135bb
Merge pull request #534 from dlang-community/knr_brace_style
2021-10-09 09:09:50 +02:00
Max Haughton
e5e11604f0
Merge pull request #542 from belka-ew/comment-before-contract
...
Fix comment before contract
2021-09-07 16:46:42 +01:00
Eugen Wissner
e8bd41c70d
Fix comment before contract
...
Fixes #451 .
2021-09-07 14:29:45 +02:00
Sönke Ludwig
b3b8ff1a43
Avoid possible null pointer access.
2021-08-16 18:09:57 +02:00
Amin Yahyaabadi
0e5615e13e
Fix the CLI help output about the `--config` option ( #541 )
2021-08-04 00:40:22 +03:00
belka-ew
f6490b31c9
Format multiline arrays first ( #538 )
2021-06-16 17:23:27 +03:00
Eugen Wissner
995c21ab87
Format do like body after function attributes
2021-06-14 21:06:32 +00:00
Eugen Wissner
821b9be9e9
Fix double array indentation inside parens
2021-06-12 05:39:30 +00:00
Eugen Wissner
ea36fbf58b
Add single_indent option
2021-05-18 06:36:57 +02:00
Sönke Ludwig
0f61586438
Add tests for "knr" brace style.
2021-04-16 13:57:59 +02:00
Sönke Ludwig
e35bde0815
Add Kernighan & Ritchie style brace formatting.
...
The original K&R style behaves like BraceStyle.otbs, except for function definitions that use Allman style.
2021-04-16 13:57:21 +02:00
WebFreak001
e79ba9f0c8
upgrade libdparse to <0.18.0
2021-04-06 20:14:47 +02:00
Preetpal Sohal
3479e73707
Fix installation instructions on README.md ( #531 )
...
* Fix installation instructions on README.md
Fixes Issue #530 .
2021-03-11 16:40:44 +02:00
Eugen Wissner
1f21a97713
Don't indent associative array keys as labels
2021-03-09 11:38:33 +01:00
Eugen Wissner
c4b6a7e7e3
Don't write a space after the return attribute
...
Fixes #521 .
2021-02-27 16:06:06 +01:00
Eugen Wissner
e6199aaa9b
Don't output an extra newline after a comment
...
with keep_line_breaks=true.
Fixes #509 and #490 .
2020-10-10 07:25:27 +02:00
Brian Schott
e880e00e73
Merge pull request #516 from dlang-community/issue-515
...
Fix #515
2020-10-07 14:14:03 -07:00
Hackerpilot
41e8c05558
Fix #515
2020-10-07 02:19:55 -07:00
Brian Schott
7659b1ae1a
Fix Issue 508 ( #511 )
...
Fix Issue 508
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2020-10-01 08:35:20 +02:00
Eugen Wissner
eab4cac12f
Regenerate line break hints after newline
...
Fixes #486 .
2020-09-04 00:14:25 +02:00
Eugen Wissner
94351246f6
Keep line break after function attributes
...
Fixes #504 .
2020-09-02 09:09:19 +02:00
Eugen Wissner
d100c40dab
Print colon in AA before identifiers
2020-08-27 09:43:25 +02:00
Eugen Wissner
58b2c6ebc6
Break line on multiline strings
...
Fixes #476 .
2020-08-10 15:25:59 +02:00
Mathis Beer
b5dbb0e031
Fix issue 483: indent continuing case statements on the same level
2020-07-22 10:27:52 +02:00
Mathis Beer
e4f2f20720
Fix issue 497: insert space before function/delegate in function type that returns template instantiated with parenless value argument
2020-07-20 08:04:51 +02:00
The Dlang Bot
d92a6799ac
Merge pull request #493 from WebFreak001/upgrade-libdparse
...
Upgrade libdparse to <0.16.0
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2020-06-28 08:33:28 +02:00
WebFreak001
e5eda5c14a
Upgrade libdparse to <0.16.0
2020-06-24 22:26:03 +02:00
The Dlang Bot
f80bffcf84
Merge pull request #491 from WebFreak001/add-minmax-libdparse
...
use test_with_package.d for libdparse for tests
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2020-06-09 23:18:25 +02:00
Jan Jurzitza
ad00b113a9
use test_with_package for libdparse test
...
test both minimum and maximum allowed libdparse versions with dub
2020-06-08 14:21:33 +02:00
The Dlang Bot
83f8a4c65d
Merge pull request #488 from WebFreak001/fix-482
...
switch statement alignment is implemented fix #482
merged-on-behalf-of: Petar Kirov <PetarKirov@users.noreply.github.com>
2020-05-06 06:42:34 +02:00
Jan Jurzitza
f59f25bb09
switch statement alignment is implemented fix #482
2020-05-05 14:06:55 +02:00
The Dlang Bot
09caf255e5
Merge pull request #475 from WebFreak001/fix-474
...
Fix #474
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2020-04-03 09:51:49 +02:00
Jan Jurzitza
34810aa928
Fix stuck-while TODO (this is a do-while loop)
2020-04-03 09:19:24 +02:00
Jan Jurzitza
cb1dfe091f
Check for token before access, fix #474
2020-04-02 13:39:29 +02:00