lucica28
34e4073105
replace libdparse in objectconst functionality + unittests integration with dmd ( #17 )
...
* replace libdparse in objectconst functionality + unittests integration with dmd
* updated dmd
* run tests
* use templates
* visit aggregate declaration
* updated dmd
* solve linter seg fault
* get rid of dup + refactor
* fix typo
2024-01-24 13:25:41 +02:00
Lucian Danescu
150643c4d3
Replace libdparse in enum array functionality
2024-01-24 13:14:35 +02:00
Eduard Staniloiu
ab430835ab
Add dmd dependencies to build.bat
2024-01-24 12:54:38 +02:00
Eduard Staniloiu
ba99ca281a
Add dmd dependencies to dub.json
2024-01-24 12:53:55 +02:00
Eduard Staniloiu
c38077cd9b
Fix linter errors
2024-01-24 12:52:28 +02:00
Eduard Staniloiu
214bb4981c
Update action to build dlang fork
2024-01-24 12:52:28 +02:00
Eduard Staniloiu
6cf762624d
Add style checker ( #9 )
2024-01-24 12:52:28 +02:00
Razvan Nitu
d7623ebbb4
Fix failing tester + add unittest for imports ( #7 )
2024-01-24 12:52:28 +02:00
lucica28
5a9ed94d74
Removed libdparse from imports print functionality ( #3 )
2024-01-24 12:52:28 +02:00
Eduard Staniloiu
4a874cba99
Add GH Actions build script ( #4 )
2024-01-24 12:52:28 +02:00
Razvan Nitu
113228120b
Add dmd-as-a-library submodule ( #2 )
2024-01-24 12:52:24 +02:00
RazvanN7
2e499f4428
Update README
2024-01-24 12:50:16 +02:00
SixthDot
9076f7bab3
docs(dscanner/utils): Update obsolete url in comment ( #944 )
...
Co-authored-by: Petar Kirov <petar.p.kirov@gmail.com>
2024-01-01 11:08:09 +02:00
Jeremy Baxter
01e90ec4d8
Fix build on BSD
...
Removed the line `SHELL:=/usr/bin/env bash'. Most BSDs don't ship bash in the
base system by default and the build doesn't need it anyway.
Also added some more version statements to define useXDG for the other BSDs.
2023-12-26 13:10:01 +01:00
WebFreak001
8612841365
fix compilation on old compilers
2023-10-25 08:49:37 +02:00
WebFreak001
42033dcc55
add BaseAnalyzerArguments to keep ctor changes sane
...
also immediately makes tokens a part of it
This struct can for example precompute token indices for line endings
2023-10-25 08:49:37 +02:00
ricardaxel
1e8f1ec9e6
Allow skipping checks with @("nolint(...)") and @nolint("...") ( #936 )
...
Co-authored-by: Axel Ricard <contact@axelricard.fr>
Co-authored-by: WebFreak001 <gh@webfreak.org>
2023-10-13 02:45:59 +02:00
Axel Ricard
69d824f4f7
introduce variable expandedArgs
2023-10-11 00:34:00 +02:00
Axel Ricard
3bf3f25f9a
add --exclude cli option
...
This excludes given files or directory from linting
2023-10-11 00:34:00 +02:00
Axel Ricard
87f85c7db7
add some utils functions for path manipulation
2023-10-11 00:34:00 +02:00
Prajwal S N
159e9c9eec
feat(highlight): support multiple themes
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2023-09-24 19:36:21 +02:00
Robert Schadek
b43c8f45cf
Always Check Curly
...
Check that if|else|for|foreach|while|do|try|catch
are always followed by a BlockStatement aka. { }
closer
can not get the test to work
try to get the AutoFix in place
maybe a fix
nicer messages
some formatting
more tinkering
still nothing
autofix work now
AutoFix name
message to message_postfix
2023-09-24 19:35:46 +02:00
WebFreak001
fc1699bb97
simplify it.sh
2023-09-24 15:31:50 +02:00
WebFreak001
6491d792f5
support `@arguments.rst` for args through file
2023-09-24 15:31:50 +02:00
WebFreak001
a958f9ac7b
fix unused variable check for unitthreaded checks
...
such as `a.should == b`
2023-07-17 14:41:07 +02:00
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