Commit Graph

414 Commits

Author SHA1 Message Date
Hackerpilot 5aedb2b84b Fix #321 2018-02-02 00:52:30 -08:00
Hackerpilot 1ca3bd9255 Fix #314 2018-01-29 14:18:59 -08:00
Hackerpilot 19e774ebf7 Un-comment the debug functionality of the indentation stack 2018-01-29 14:17:43 -08:00
RazvanN7 d88e1fa5dd Make alias visit public in src/dfmt/ast_info.FormatVisitor 2018-01-25 13:30:34 +02:00
Stefan Koch d8f9cfeae1 Put a space behind static and shared constructors as well 2017-12-11 18:07:21 +01:00
Stefan Koch ddd86f96d8 make --spaces_before_functoion_parameters work in more cases as well as on constructors 2017-12-04 16:02:22 +01:00
The Dlang Bot 82ec339251
Merge pull request #306 from stefan-koch-sociomantic/fix_sbfp
fix space_before_function_parameters
merged-on-behalf-of: stefan-koch-sociomantic <stefan-koch-sociomantic@users.noreply.github.com>
2017-11-30 06:49:33 +01:00
Stefan Koch aa45bda1a8 fix space_before_function_parameters 2017-11-29 17:20:00 +01:00
The Dlang Bot 4feb467dab
Merge pull request #304 from kotet/issue-303
Add support for `static foreach`
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2017-11-29 07:17:03 +01:00
Stefan Koch b69e966df6 Fix issue #301
By adding private and static as valid import prefix
2017-11-28 10:56:55 +01:00
Kotet abc3e6d47e Use std.algorithm.comparison.among instead of a lot of comparisons 2017-11-27 07:32:05 +09:00
Kotet a163eb105f Add support for `static foreach`
Fix #303
2017-11-25 13:20:49 +09:00
Stefan Koch 0847016346 add views/VERSION target to generate the version-number from git 2017-11-03 14:08:53 +01:00
Brian Schott 6de8ff2037
Merge pull request #298 from stefan-koch-sociomantic/fix_sbfp
[UrgentBugifx] Fix space before function parameters
2017-10-29 01:12:49 -07:00
Stefan Koch ec2e223b9a fix bug in --space_before_function_parameters 2017-10-27 16:44:54 +02:00
Hackerpilot 00fda4f5eb Fix #248 2017-10-25 13:26:35 -07:00
Stefan Koch 2de336c39e document --space_before_function_parameters 2017-10-20 13:14:27 +02:00
Stefan Koch 02ba81333e add --space_before_function_parameters 2017-10-11 16:29:14 +02:00
The Dlang Bot 87fd168e06 Merge pull request #289 from stefan-koch-sociomantic/perf_fixes
small perf fix chaching the eol string instead of switching all the time
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-10-07 10:24:47 +02:00
Stefan Koch 7c0e4747ed small perf fix chaching the eol string instead of switching all the time 2017-10-06 17:04:01 +02:00
kas-luthor 2645e9cc1f Look for .editorconfig in cwd and parent directories when readinf from STDIN and no explicit config dir given on command line 2017-09-01 09:15:13 +02:00
Brian Schott a93efb66fb Merge pull request #271 from CZDanol/master
Fix -c flag not looking into the *bottom level folder
2017-05-12 14:49:49 -07:00
Hackerpilot 019d42a4dc Fix #273 2017-03-07 16:12:27 -08:00
Daniel 'Danol' Čejchan 98aad22f67 Fix -c flag not looking into the top level folder 2017-01-17 12:57:05 +01:00
Brian Schott 4a4704896b Merge pull request #265 from leandro-lucarella-sociomantic/patch-1
Fix typo in help message
2016-12-05 16:15:20 -08:00
Leandro Lucarella d95d69e31b Fix typo in help message
`.editconfig` should be `.editorconfig` instead.
2016-11-14 16:59:18 +01:00
Basile Burg 593b9885ff fix #263, Impossible to build under Windows with phobos 2.072 2016-11-11 23:04:28 +01:00
Hackerpilot 7961bfc15f #261 2016-11-07 13:18:12 -08:00
Hackerpilot 821f9439e4 Fix #251 2016-06-30 17:41:13 -07:00
ZombineDev e92b90bbf8 Fix compilation in Windows for CRuntime_Microsoft
Use _setmode instead of setmode, because it works for all supported C runtimes on Windows.
This should fix compilation errors for dmd -m32coff, m64, and ldc2 (LDC uses only CRuntime_Microsoft).
2016-06-14 18:39:21 +03:00
Brian Schott 90b68b7e57 Merge pull request #242 from shishkander/issue240
Add option to specify where to look for .editorconfig files.
2016-05-04 15:26:31 -07:00
Andrii Shyshkalov afd5799eb1 Add option to specify where to look for .editorconfig files.
Adds a --config|c option which takes a directory in which the search for
.editorconfig files will start.

When --config|c is used together with explicit filenames of files to format,
.editorconfig is searched only in --config directory, and not in directories
where files are.

Fixes #240.
2016-05-04 12:49:21 +02:00
Hackerpilot d6861cc5a2 Fix #241 2016-04-28 15:23:00 -07:00
Basile Burg 2d18ded428 fix imports for dmd 2.071 + update win bat 2016-04-14 21:08:24 +02:00
Hackerpilot 0f7727e31b Fix #235 2016-03-27 23:29:38 -07:00
Hackerpilot 789019fc86 Update parser and fix imports for 2.071 2016-03-27 22:37:15 -07:00
Gautam Kotian 1392ef52cf Fix typo 2016-02-29 23:56:24 +01:00
Gautam Kotian d7737c0da5 Add missing parameters in function documentation 2016-02-28 00:13:00 +01:00
Gautam Kotian 649ee08e62 Fix typo in function name 2016-02-28 00:12:11 +01:00
Gautam Kotian be6f5706ae Fix typos 2016-02-28 00:11:19 +01:00
Hackerpilot 65ac0871fd Fix #229 2016-02-25 14:02:12 -08:00
Hackerpilot fd214032a4 Fix bug with multi-line string literals 2016-02-01 00:35:26 -08:00
Hackerpilot 3bc810dcd4 Update libdparse 2016-01-29 02:00:18 -08:00
Hackerpilot 851affb63c Docopt-style help output 2016-01-26 23:55:56 -08:00
Hackerpilot 845358bb61 Prefer breaking on ternary operators 2016-01-26 13:05:59 -08:00
Hackerpilot c1f189b124 Run dfmt on itself 2016-01-26 13:02:06 -08:00
Hackerpilot 0ea6b340a4 Fix #226 2016-01-26 12:56:19 -08:00
Hackerpilot e6fe5df515 Improve line wrapping heuristics 2016-01-25 05:24:09 -08:00
Hackerpilot 0eea53a628 Fix #225 2016-01-22 19:06:09 -08:00
Hackerpilot e2d23726b9 Fix #224 2016-01-22 18:48:36 -08:00
Hackerpilot 268657831b Fix #219 2016-01-22 04:53:20 -08:00
Hackerpilot 98f443d3f1 Fix #220 2016-01-22 04:48:29 -08:00
Hackerpilot ee8fcd41f4 Fix #223 2016-01-22 01:51:44 -08:00
Hackerpilot 08c2d0c5e8 Fix #222 2016-01-21 22:11:32 -08:00
Hackerpilot db2ad1354b Fix #221 2016-01-20 17:00:46 -08:00
Hackerpilot 3c6ea77a12 Fix an incredibly annoying bug where line break info was being ignored when wrapping at commas 2016-01-20 03:28:31 -08:00
Hackerpilot cac45e3607 Fix formatting issue 2016-01-20 02:58:42 -08:00
Hackerpilot e8a6b40432 Fix issue where constraints would not be detected correctly while formatting. 2016-01-20 02:43:10 -08:00
Hackerpilot 4c5dfb5881 Fix option printing 2016-01-19 20:09:01 -08:00
Hackerpilot 387826ba37 Fix option printing 2016-01-19 19:48:28 -08:00
Hackerpilot 6327175fde Fix build 2016-01-19 05:26:23 -08:00
Hackerpilot ad8debe030 0.5.0-alpha 2016-01-19 05:24:16 -08:00
Hackerpilot 93c80460cd Run dfmt on itself 2016-01-19 05:22:32 -08:00
Hackerpilot 24be6ddc2e Run dfmt on itself and debug some wrapping calculations 2016-01-19 05:20:31 -08:00
Hackerpilot 7ec932a1e3 Indentation rework 2016-01-19 03:58:19 -08:00
Hackerpilot bf0843f321 Attempt to improve indentation code 2016-01-19 01:45:30 -08:00
Hackerpilot 7fa11c8505 Initial work on #215 2016-01-18 17:59:26 -08:00
Hackerpilot 4fe021df97 Increment version number 2016-01-18 15:33:35 -08:00
Hackerpilot ca49180a95 Fix #213 2016-01-18 15:32:49 -08:00
Hackerpilot 7a9a895f64 Fix #210 and run dfmt on itself 2016-01-18 15:10:39 -08:00
Hackerpilot 65a55493da Fix #212 2016-01-18 14:18:09 -08:00
Hackerpilot 75c3278a32 Fix #216 2016-01-18 14:06:47 -08:00
Hackerpilot c53eb5e0e4 bump version number 2016-01-15 18:03:45 -08:00
Hackerpilot bab1a5f592 Fix #209 2016-01-15 18:01:48 -08:00
Hackerpilot 382258eb97 Fix #208 2016-01-15 16:29:00 -08:00
Hackerpilot f14c6e1226 Fix #207 2016-01-14 16:02:24 -08:00
Hackerpilot ebb2db9303 Version bump 2016-01-14 14:40:54 -08:00
Hackerpilot 3e5307f081 Fix #206 2016-01-14 14:40:16 -08:00
Hackerpilot 2402978c3a Fix #205 2016-01-14 14:22:23 -08:00
Hackerpilot 0d041834db Fix version number 2016-01-14 03:29:52 -08:00
Hackerpilot 9fc36fe587 Fix #204 2016-01-13 20:52:26 -08:00
Hackerpilot 8c3e151561 Better line breaking for UFCS chains 2016-01-13 04:52:32 -08:00
Johan Engelen dd3b48ade0 Fix EOL output on Windows. Stdout has to be set to binary mode. 2016-01-13 00:59:03 +01:00
Hackerpilot c80e1a067e Fix #199 2016-01-11 14:30:40 -08:00
Hackerpilot 8035beec4f Run dfmt on itself 2015-12-14 15:31:53 -08:00
Hackerpilot b3faa3103c Fix #194 2015-12-14 15:24:48 -08:00
Stefan Koch 7406027c52 add printOption to help 2015-12-09 16:23:08 +00:00
Hackerpilot b8a96bfd7d Update libdparse 2015-10-29 16:19:51 -07:00
Hackerpilot ce5953aaff Remove redundant 'inplace' documentation 2015-10-21 16:24:45 -07:00
Hackerpilot 5ce683bab2 0.4.1 2015-10-21 16:11:04 -07:00
Martin Nowak cf6ffb4399 allow short opt -i for --inplace 2015-10-21 13:45:02 +02:00
Hackerpilot f9b1997283 Fix #190 2015-10-09 14:21:30 -07:00
Hackerpilot 46db867c41 Fix regression 2015-09-18 10:46:20 -07:00
Hackerpilot a9426cb44f Fix #189 2015-09-17 22:58:39 -07:00
Hackerpilot ac17371c10 0.4.0 2015-09-17 03:11:57 -07:00
Hackerpilot 0ecdc7f3d1 Fix #188 2015-09-17 03:01:29 -07:00
Hackerpilot d771955ad3 Fix #186 2015-09-17 02:52:35 -07:00
Hackerpilot b7f045fd5e Fix #182 2015-09-16 17:58:26 -07:00
Hackerpilot 0389d798d7 Fix #187 2015-09-16 17:20:16 -07:00
Hackerpilot b0d6da28f5 Fix #185 2015-09-16 17:07:39 -07:00
Brian Schott 23df06cdc9 Merge pull request #179 from Hackerpilot/issue-172
#172
2015-08-24 13:32:11 -07:00
Hackerpilot 43cfa09e7e Fix #177 2015-08-24 13:28:16 -07:00
Hackerpilot 699ae10458 #172 2015-08-24 12:44:52 -07:00
Andreas Zwinkau eea508f930 enum can also be used in is() expressions
fixes #174
2015-08-21 19:13:08 +02:00
Hackerpilot 17eedb50c0 Fix #166 2015-08-10 16:37:09 -07:00
Hackerpilot 47a972693d Fix #162 2015-08-10 16:19:43 -07:00
Hackerpilot 6fb035ff8b Fix #169 2015-08-10 16:04:56 -07:00
Hackerpilot 8639e4c287 Clean up indentation code 2015-08-10 15:36:44 -07:00
Hackerpilot 5695b3b951 Finish removing outdent_labels option 2015-06-08 03:11:58 -07:00
Hackerpilot 9c843c2c0a Version numbers 2015-06-08 03:08:59 -07:00
Hackerpilot bef02a3b55 Implement #130 2015-06-08 03:05:11 -07:00
Hackerpilot 959405eda5 Implement #97 2015-06-08 02:25:49 -07:00
Hackerpilot 8fbb3a513c Fix #76 2015-06-04 19:20:58 -07:00
Hackerpilot 363cb13b22 Merge branch 'master' into 0.4.0 2015-06-04 18:32:39 -07:00
Hackerpilot adce51e3f6 Implement #102 2015-06-04 18:32:28 -07:00
Hackerpilot dabde52b9c Bring back the 'dfmt off'/'dfmt on' feature that was missing from this branch for some stupid reason 2015-06-04 18:15:12 -07:00
Hackerpilot 1f58018912 0.3.6 2015-06-04 17:58:56 -07:00
Hackerpilot 97d405a4ab Fix #158 2015-06-04 17:57:44 -07:00
Hackerpilot 6c3c4b8d00 Fix #158 2015-06-04 17:56:52 -07:00
Hackerpilot 8889dff850 Fix #156 2015-05-20 02:48:48 -07:00
Hackerpilot 070bbcdd1d Fix #155 2015-05-13 14:43:42 -07:00
Hackerpilot 4fff6dc635 Fix #153 2015-05-13 14:39:34 -07:00
Hackerpilot c194335be9 Fix #154 2015-05-13 14:21:35 -07:00
Hackerpilot 98686f7dd1 Fix #152 2015-05-12 16:40:33 -07:00
Hackerpilot f28acb7ead 0.3.5 2015-05-08 00:13:50 -07:00
Hackerpilot 5f424b085f Revert "Fix #125"
This reverts commit 2f7d42087c.
2015-05-08 00:06:05 -07:00
Hackerpilot 6639b00eef Fix #150 2015-05-07 23:56:50 -07:00
Hackerpilot cdfb21ab77 Merge branch 'master' of https://github.com/Hackerpilot/dfmt 2015-05-07 23:51:30 -07:00
Hackerpilot 56ea97efbb Fix #151 2015-05-07 23:51:15 -07:00
Hackerpilot 2f7d42087c Fix #125 2015-04-29 12:19:29 -07:00
Hackerpilot bf84542b1f 0.3.4 2015-04-29 12:16:37 -07:00
Hackerpilot b868dbcaa6 Fix #148 2015-04-29 11:39:37 -07:00
Hackerpilot e16c7bd465 0.3.3 2015-04-29 00:58:36 -07:00
Hackerpilot 53dd109d75 Fix #146 2015-04-28 22:39:47 -07:00
Hackerpilot f34a6b6d07 Fix #147 2015-04-28 22:26:49 -07:00
Hackerpilot c90356428f 0.3.2 2015-04-27 16:00:10 -07:00
Hackerpilot 74400b677c Fix #142 2015-04-27 15:46:19 -07:00
Hackerpilot bb3ee5df18 Fix #140 2015-04-27 15:34:35 -07:00
Hackerpilot 04f6684a50 Fix #139 2015-04-24 17:28:06 -07:00
Hackerpilot 7109c5b4f2 Fix #138 2015-04-24 13:15:53 -07:00
Hackerpilot 238112f5b5 Update version number 2015-04-23 17:08:41 -07:00
Hackerpilot af29d10dc6 Fix #135 2015-04-23 16:56:06 -07:00
Hackerpilot 3111871465 Fix #136 2015-04-23 16:53:31 -07:00
Hackerpilot ebf358abba Fix version numbers 2015-04-21 14:44:34 -07:00
Hackerpilot 1b15ae6e05 Support end_of_line option. #16 2015-04-20 09:59:23 -07:00
Hackerpilot 512cd5fb73 2.066 and LDC compatability 2015-04-20 01:08:08 -07:00
Hackerpilot 700aaff7da Fix #35 2015-04-20 00:56:24 -07:00
Hackerpilot bcc4adb7cc Fix #127 2015-04-20 00:30:13 -07:00
Hackerpilot 87866f8fcd Fix #31 2015-04-20 00:07:33 -07:00
Hackerpilot d0e255e62d Editorconfig support 2015-04-19 21:51:37 -07:00