Commit graph

1532 commits

Author SHA1 Message Date
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
WebFreak001
e94c4fad77 upgrade libdparse and DCD dependencies 2022-12-30 17:10:16 +01:00
WebFreak001
3dd2b5b485 Update GDC to fix CI 2022-10-14 14:30:10 +02:00
WebFreak001
2220812b96 Moved DSymbol into DCD 2022-10-14 14:30:10 +02:00
Cameron Ross
1656e77b9c Fix $DC paths with spaces 2022-08-21 18:11:34 +02:00
WebFreak001
8761fa1e38 downgrade dsymbol and libdparse
fixes introduced std.experimental.allocator issues
2022-07-06 14:17:47 +02:00
Jan Jurzitza
e639f8bcbe Change rdmd to $DC -run
Fix #821
2022-06-13 16:19:08 +02:00
Razvan Nitu
4f995ee76b
Update libdparse to latest version to fix ldc failure (#866) 2022-04-29 14:26:09 +02:00
WebFreak001
e027965176 fix null pointer access in unused.d 2022-03-07 22:53:04 +01:00
Razvan Nitu
1597733f12
Merge pull request #855 from edi33416/make_inc_compilation
Modify makefile to use incremental compilation
2022-02-21 10:08:28 +02:00
Eduard Staniloiu
91ab2af247 Address feedback 2022-02-18 22:59:39 +02:00
WebFreak001
a8ca6ab4b7 upload bin folders as artifacts to test locally 2022-02-13 21:22:12 +01:00
WebFreak001
0316c9d70a fix libdparse deprecation in new check 2022-02-12 23:04:15 +01:00
WebFreak001
cdf881c103 add cyclomatic complexity check
Fix #684

Disabled by default.
2022-02-11 20:17:23 +01:00
Razvan Nitu
93f614ae49
Merge pull request #854 from WebFreak001/upgrade-libdparse
Upgrade to latest libdparse
2022-02-09 18:36:22 +02:00
Eduard Staniloiu
223580438a gdmd does not respect dmd -of format 2022-02-09 18:29:54 +02:00
Eduard Staniloiu
b9c5654712 Fix gdmd missing files bug 2022-02-09 17:50:14 +02:00
Eduard Staniloiu
13e4dc2ae8 Refactor makefile 2022-02-09 16:53:16 +02:00
Eduard Staniloiu
29a575d4aa Use order-only deps in makefile 2022-02-09 14:34:47 +02:00
WebFreak001
6d7ca32822 bump dsymbol to 0.13.0 2022-02-07 23:20:51 +01:00
WebFreak001
61b65a9a55 actually upgrade libdparse and dsymbol now 2022-02-07 20:05:42 +01:00
Eduard Staniloiu
02eb3d92c4 Modify makefile to use incremental compilation 2022-02-07 18:27:57 +02:00
WebFreak001
7f93ffaa1f add test that #499 is fixed 2022-02-02 21:31:28 +01:00
WebFreak001
631791e14d add tests for shortened function body extensions
Remove implementation in unused label (expressions can't have labels)
2022-02-02 21:02:29 +01:00
WebFreak001
a3fe7611a8 implement new ThrowExpression & shortened methods 2022-01-31 18:04:17 +01:00
Florian
873c0f2156
Add Github Actions setup to replace Travis (#853)
* Add missing files + import paths for libddoc/common to build.bat

* Add Github Actions setup to replace Travis

The configured workflow tests D-Scanner with different host compilers
(DMD / LDC / GDC) on different platforms ( Windows / OSX / Linux).

The tests include
- `build.bat test` (windows) or `make test`
- `dub test` for version ranges of `libdparse` and `dsymbol`
   (currently disabled because of unresolvable dependency constraints)
- `make lint`
- phobos linting
2022-01-28 17:54:35 +13:00
Shigeki Karita
7c54e445c6 Add max_line_length config 2022-01-21 13:24:35 +01:00