Commit graph

1508 commits

Author SHA1 Message Date
WebFreak001
c8262f4220 fix auto_function autofix for auto ref fn() 2023-07-17 11:32:16 +02:00
WebFreak001
f22b2e587c Disable auto_function_check by default
Since it may be used to auto-infer function attributes
2023-07-17 11:32:16 +02:00
WebFreak001
5d67707744 more sane parentheses fix for delegates
not sure what I was thinking with the initial version
2023-07-13 16:42:36 +02:00
WebFreak001
7601fe65f9 fix diagnostic location for @UDA auto f() {} 2023-07-10 22:05:26 +02:00
WebFreak001
c1e051bfba fix infinite allocating in context formatter 2023-07-10 13:57:27 +02:00
WebFreak001
48db254fb0 fix if scopes and shortened function bodies 2023-07-10 00:52:04 +02:00
WebFreak001
d275361153 fix case/default scopes, fix #913 2023-07-10 00:52:04 +02:00
Jan Jurzitza
fed654441f
fix #916 autofix CLI, add integration test for it (#917) 2023-07-09 13:09:21 +02:00
Jan Jurzitza
4c759b072c
include resolved autofixes in --report output (#915) 2023-07-09 09:44:02 +02:00
WebFreak001
cae7d595b8 checkout IT files with LF line endings 2023-07-09 00:45:42 +02:00
WebFreak001
5d3296cc0b it: only rebuild dscanner outside CI
fix windows redirects
2023-07-09 00:45:42 +02:00
WebFreak001
d7e15903dd run integration tests in CI 2023-07-09 00:45:42 +02:00
WebFreak001
0590376045 add IDE integration tests 2023-07-08 23:09:33 +02:00
WebFreak001
3345a1953a improve public auto fix API 2023-07-08 23:09:33 +02:00
WebFreak001
43caad72a8 add CLI API to get autofixes at location 2023-07-08 23:09:33 +02:00
WebFreak001
53c9536332 add startIndex, endIndex support to format string 2023-07-08 23:09:33 +02:00
WebFreak001
4194e6af0c add dscanner fix command 2023-07-08 23:09:33 +02:00
WebFreak001
48cec8a6f4 implement indentation aware autofixes 2023-07-08 23:09:33 +02:00
WebFreak001
93aae57469 add autofix testing API 2023-07-08 23:09:33 +02:00
WebFreak001
f12319d5a8 add autofix whitespace collapsing API 2023-07-08 23:09:33 +02:00
WebFreak001
513b7dafc3 add auto-fix API 2023-07-08 23:09:33 +02:00
Christian Köstlin
35d2cf4177 feature: Provide predefined error format compatible with dmds output
an output parser that works with dmd / ldc just works (tm) witha
dscanner as well
2023-07-07 00:15:04 +02:00
WebFreak001
1201a68f66 Only call Win32 API to enable colored output once 2023-07-05 22:41:42 +02:00
WebFreak001
b0bb905a40 upgrade libdparse to 0.23.2 fix mixin-type VarDecl 2023-07-05 21:37:52 +02:00
WebFreak001
a676bb13fb fix selective imports 2023-07-02 13:33:11 +02:00
WebFreak001
78f2b5a420 add colored output option
also adds a simpler way to invoke D-Scanner for users that uses this new
UI by default: `dscanner lint FILES...`
2023-07-02 13:33:11 +02:00
WebFreak001
3b8110fdfa phobos still has its own dscanner.ini 2023-06-30 13:59:33 +02:00
WebFreak001
eceb2743a8 rename .dscanner.ini to dscanner.ini
There doesn't really seem to be any reason to keep it a non-standard path.

Fix #896
2023-06-30 13:59:33 +02:00
WebFreak001
146fec75d8 add index and endIndex to JSON formats 2023-06-29 17:43:30 +02:00
WebFreak001
b115a6333a also add byte indices to diagnostic ranges
For tools wanting to read from the source file this makes it much easier
to look up the code.
2023-06-29 17:43:30 +02:00
WebFreak001
bad253bad5 remove unused variables 2023-06-29 14:57:32 +02:00
WebFreak001
e3604d6ce6 only report linter warnings once 2023-06-29 14:57:32 +02:00
WebFreak001
83eb9c5c2e add built-in report formats incl. GitHub Actions
use on ourself and enable unused variables test to do first test in CI
2023-06-29 14:57:32 +02:00
WebFreak001
5c2035ff76 add end line/column to warnings 2023-06-29 13:19:36 +02:00
WebFreak001
5a53c538d0 make mismatched args not warn on named arguments
makes expressions be assumed as valid argument names
2023-05-23 12:15:52 +02:00
WebFreak001
4b2124e82d upgrade libdparse to 0.23.0 2023-05-23 12:15:52 +02:00
WebFreak001
93f338a5e7 fix logger warnings, for real this time
We should probably add a linter case for this
2023-05-19 23:12:16 +02:00
WebFreak001
f37faf85dd fix BodyOnDisabledFuncsCheck edge cases 2023-05-09 04:10:43 +02:00
Mai-Lapyst
e2cc6e1ad2 Adds an check for @disabled functions that have an body; closes #897 2023-05-09 04:10:43 +02:00
Jan Jurzitza
5f1cf31ee0
hide dsymbol warnings, fix #890 (#900) 2023-05-09 03:34:08 +02:00
brianush1
d0c670a415 fix static warnings and add tests for function_attribute_check 2023-05-09 02:19:42 +02:00
brianush1
ba4617efac add unittest for FunctionAttributeCheck 2023-05-09 02:19:42 +02:00
brianush1
14ba4af4bd fix #791 2023-05-09 02:19:42 +02:00
Su
9b171c46d2
don't use deprecated properties (#894) 2023-02-28 00:48:14 +01:00
WebFreak001
d5d6920502 Add dub.selections.json, upgrade libdparse 0.22.0
Note: currently a warning is emitted when building, because dscanner now
depends on libdparse 0.22.0, but dsymbol doesn't support it officially
yet. We just force it with dub.selections.json to build with 0.22.0 for
executable builds.
2023-02-15 12:10:33 +01:00
Jan Jurzitza
9abcf49544
Merge pull request #888 from zyedidia/fix-885
Fixes https://github.com/dlang-community/D-Scanner/issues/885
2023-02-01 10:54:36 +01:00
Zachary Yedidia
cd6dae90bc Update readme CI badge 2023-02-01 10:52:44 +01:00
Zachary Yedidia
3437e30cac Add unit test 2023-01-31 23:32:52 -08:00
Zachary Yedidia
62297fdf7b Include aliasName in resolveSymbol 2023-01-31 23:29:25 -08:00
Zachary Yedidia
40235d3f9d
Fix noreturn discard warning (#887)
Fixes https://github.com/dlang-community/D-Scanner/issues/886
2023-01-31 22:16:48 +01:00