Commit Graph

1428 Commits

Author SHA1 Message Date
RazvanN7 2400d9c9e7 Bump liddoc and libdparse versions 2021-06-05 17:55:17 +02:00
WebFreak001 7809598da0 fix if_constraints_indent with broken/null tokens
Subtraction from t.line (which is unsigned) caused the while loop
to run nearly infinitely before, starving the system of memory as it
was allocating memory.

fixes #829
2021-05-10 18:28:24 +00:00
Geod24 2963358eb4 Update the emsi_containers dependency to v0.8.0 2020-09-04 10:25:45 +02:00
Brian Schott 17edb1a1be
Merge pull request #818 from dlang-community/issue-817
Update libdparse to fix Issue 817
2020-09-02 03:25:21 -07:00
Hackerpilot 214eb067bd Fix one more dependency 2020-08-28 00:06:04 -07:00
Hackerpilot 08c015a004 Fix some dependency problems 2020-08-27 22:24:39 -07:00
Brian Schott 588aa6c030
Merge pull request #819 from CyberShadow/unused_result
Add unused_result check
2020-08-25 01:24:11 -07:00
Vladimir Panteleev e61ce45856
Add unused_result check 2020-08-25 06:26:31 +00:00
Hackerpilot 139561ff14 Fix a bad 'git add' 2020-08-20 00:42:51 -07:00
Hackerpilot 45a0db73a2 Update libdparse to fix #817 2020-08-20 00:19:12 -07:00
Brian Schott 2a1f96f3dd
Merge pull request #816 from dlang-community/issue-815
Fix #815
2020-08-11 14:19:15 -07:00
Hackerpilot 2174832e9f Fix tabs/spaces 2020-08-06 17:27:16 -07:00
Hackerpilot 3b590c377a Fix #815 2020-08-06 15:11:04 -07:00
Jan Jurzitza a40492bc92 Bump libdparse to up to 0.15.x 2020-07-22 18:21:27 +02:00
Brian Schott 04b8ed1076
Merge pull request #812 from dlang-community/document-I-switch
Document some of the undocumented command-line switches in --help output.
2020-07-17 04:06:02 -07:00
Hackerpilot 0f37040b6f Fix the wording of the -I documentation 2020-07-17 01:23:18 -07:00
Hackerpilot b305f4fbfa Document some of the undocumented command-line switches 2020-07-16 18:38:59 -07:00
Brian Schott 64280ca261
Merge pull request #809 from dlang-community/disable-import-check
Disable the local imports check by default
2020-06-23 01:14:09 -07:00
Hackerpilot 4bca597f4b Update the documentation for the local import rule 2020-06-22 22:18:12 -07:00
Hackerpilot 1bc03367b4 Disable the local imports check by default 2020-06-22 19:01:05 -07:00
Jan Jurzitza affa29a426
Merge pull request #807 from WebFreak001/add-minmax-dub
check libdparse & dsymbol with min/max dub version
2020-06-10 07:55:56 +02:00
Jan Jurzitza ad32a631d4
fix travis syntax 2020-06-09 21:56:36 +00:00
Jan Jurzitza d76ac70893 check libdparse & dsymbol with min/max dub version 2020-06-08 14:33:57 +02:00
Brian Schott 6d91031302
Merge pull request #804 from andre2007/reportFile
--reportFile added
2020-04-14 12:31:48 -07:00
andre2007 da64499c52 --reportFile added 2020-04-13 20:47:18 +02:00
Jan Jurzitza 8a4a3d2d7e
Merge pull request #803 from WebFreak001/upgrade-libdparse
upgrade to libdparse 0.14.0
2020-04-09 20:20:51 +02:00
Jan Jurzitza 5aec9ef5a0 upgrade to libdparse 0.14.0 2020-04-09 12:05:49 +02:00
Jan Jurzitza 4ca84493d9
Merge pull request #802 from WebFreak001/fix-license
change license in dub.json to match dub format
2020-04-08 20:48:58 +02:00
WebFreak001 2c9ead0316 change license in dub.json to match dub format 2020-04-07 22:20:51 +02:00
Brian Schott 032b6001a1
Merge pull request #798 from MoonlightSentinel/fix-bat
Fix compilation error for unittests on windows
2020-03-27 00:43:01 -07:00
Jan Jurzitza f628524b9b
Merge pull request #800 from patha454/patch-1
Exclude `.git` from search paths.
2020-03-27 08:02:09 +01:00
H Paterson 064be72ee7
Fix imports
Because I'm rubbish at programming.
2020-03-21 18:58:07 +13:00
H Paterson 7f10a0598a
Fix find function
Use `canFind`, not `find` - which returns the post-string, not a boolean.
2020-03-21 18:56:58 +13:00
H Paterson 497a900f21
Exclude all hidden directories. 2020-03-21 18:52:00 +13:00
H Paterson 346d11f5e0
Exclude `.git` from search paths.
Currently dscanner searches for files in the target directory ending in `.d` or `.di`.

Git has some hidden files in `.git`, which log commits to files. These files share the same name as the tracked file: For example `.git/logs/refs/heads/somedfile.d` actually contains Git data, not D code.

A naive call to dscanner using `dscanner --syntaxCheck` or `dscanner --styleCheck` (therefore also `dub lint...`) will attempt to check these Git files, resulting in spurious errors, such as:
```sh
./.git/logs/refs/heads/charstream.d(1:1)[error]:
./.git/logs/refs/heads/charstream.d(1:118)[warn]: Line is longer than 120 characters
```

I believe Git is a common enough tool that we're justified to handle this case inside D scanner, rather than asking the user to write configuration files with dodge the `.git` folder.
2020-03-21 18:28:59 +13:00
MoonlightSentinel 139a498404
Fix compilation error for unittests on windows
`build.bat test` failed because the explicit string import path
(`-Jbin`) was missing.
2020-03-15 00:16:20 +01:00
Brian Schott 54e073e308
Merge pull request #797 from MoonlightSentinel/unused
Fix issue #794: False positive for parameter used in __traits(...)
2020-03-08 13:43:27 -07:00
MoonlightSentinel 00a0eedad5
Fix issue #794: False positive for parameter used in __traits(...)
This applies the already implemented solution for variables (#790) to
parameters by moving the __traits() logic in a new shared superclass.

It's explicitly excluded from UnusedIdentifier because I cannot think
of a good reason to silently allow unused labels.
2020-03-08 02:07:05 +01:00
Sebastian Wilzbach 9364d6f15f
Merge pull request #790 from MoonlightSentinel/unused-enum
Fix #788: Enum value used inside __traits(...) flagged as unused
2020-02-10 19:31:28 +01:00
MoonlightSentinel 4f417b64a1 Fix #788: Enum value used inside __traits(...) flagged as unused 2020-01-26 19:17:12 +01:00
andre2007 241a38be1a
Merge pull request #789 from PetarKirov/update-submodules
Update submodules to the latest versions and fix their URLs
2020-01-24 13:15:58 +01:00
Petar Kirov d96b5776f4 Update submodules to the latest versions and fix their URLs
[dlang-community/containers@v0.8.0-alpha.17...v0.8.0-alpha.19][0]
[dlang-community/dsymbol@v0.9.0...v0.9.1][1]
[dlang-community/libddoc@v0.7.0...v0.7.1][2]
[dlang-community/libdparse@v0.13.1...v0.13.2][3]

[0]: https://github.com/dlang-community/containers/compare/v0.8.0-alpha.17...v0.8.0-alpha.19
[1]: https://github.com/dlang-community/dsymbol/compare/v0.9.0...v0.9.1
[2]: https://github.com/dlang-community/libddoc/compare/v0.7.0...v0.7.1
[3]: https://github.com/dlang-community/libdparse/compare/v0.13.1...v0.13.2
2020-01-24 13:52:16 +02:00
Jan Jurzitza 6875f8e863
Fix empty error messages in issue 786 (#787)
Fix empty error messages in issue 786

Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2020-01-04 23:05:46 +01:00
Jan Jurzitza 0a640d6286
Merge branch 'master' into array-error 2020-01-04 22:23:06 +01:00
MoonlightSentinel be5acfcae8 Fix empty error messages in issue 786
The message was assigned to Message.key and hence not printed.
2020-01-04 15:10:58 +01:00
Sebastian Wilzbach 3a7c231d1b
Merge pull request #784 from MoonlightSentinel/patch-1
Makefile: Allow setting git from the environment
2019-11-28 12:18:28 +01:00
Florian 7831b19b37
Makefile: Allow setting git from the environment 2019-11-28 12:06:08 +01:00
Sebastian Wilzbach 31757b782b
Merge pull request #783 from marler8997/envBash
Use bash from PATH
2019-11-13 10:07:10 +01:00
Jonathan Marler 569b60675d Use bash from path
I use NixOS which supports multiple versions of bash by storing each one in its own unique directory.  The version is selected through symbolic links and the PATH variable.  This means using the /usr/bin/env mechanism to invoke programs rather than hardcoded absolute paths to programs.
2019-11-12 22:11:27 -07:00
Brian Schott a218127ab3
Merge pull request #779 from dlang-community/fix-778
Update dependencies. Fixes #778
2019-10-17 16:24:04 -07:00