Commit graph

1560 commits

Author SHA1 Message Date
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
Hackerpilot
e5d99d4cb0 Update dependencies. Fixes #778 2019-10-09 11:27:03 -07:00
Eugen Wissner
1d476fa39d Support checkName in errorFormat 2019-09-25 10:13:07 +03:00
Brian Schott
d4dd5b9864
Merge pull request #773 from dlang-community/update-ctags-url
Fix the URL in the ctags output
2019-09-12 16:46:55 -07:00
Brian Schott
c7060997d5
Merge pull request #775 from andre2007/generic_issue
Added reportFormat sonarQubeGenericIssueData
2019-09-12 16:46:36 -07:00
Andre Pany
3b6bbad9fe Added reportFormat sonarQubeGenericIssueData 2019-09-11 12:53:26 +02:00
Hackerpilot
583fa7a898 Fix the URL in the ctags output 2019-08-23 11:19:23 -07:00
Basile-z
19e9b9093a
update dparse to 0.13.z (#771) 2019-07-11 18:22:23 +02:00
Eugene Wissner
3b9d608866 Track check name for error messages (#769)
* Track check name for error messages

* Assert BaseAnalyzer.getName() is implemented
2019-07-09 12:16:25 +02:00
Frank LENORMAND
94d102a5f6 Document --errorFormat (#767)
* Document the "--errorFormat" in the usage message

* Document the "--errorFormat" in the README
2019-07-02 23:00:16 +02:00
Eugene Wissner
9502af2494 Split unused variable and unused parameter checks (#768) 2019-07-02 22:56:52 +02:00
Hiroki Noda
e13c4f2f60 Use writeln instead of write to print the version (#764) 2019-06-03 09:34:17 +02:00
Basile-z
378cbcc6bd
fix #762 - False positive on "unused variable" with side effect (#763) 2019-05-29 11:11:03 +02:00
Sebastian Wilzbach
e5a73fa0ef
Merge pull request #761 from wilzbach/fix-760
Fix #760 - ignore deprecated symbols in the undocumented check
2019-05-15 00:57:15 +02:00
Sebastian Wilzbach
e2b5f852e6 Upgrade EMSI containers 2019-05-14 23:29:53 +02:00
Sebastian Wilzbach
93418e3aa9 Fix #760 - ignore deprecated symbols in the undocumented check 2019-05-14 23:29:53 +02:00
Sebastian Wilzbach
e8180d64a6 Use LDC for cross-compilation Win{32,64} binaries (#743)
* Build win64 binaries

* Allow adding DFLAGS

* bump ldc to 1.13

* Download & install the same LDC version

* Build win64 binaries in a separate job

* Fix release-windows for ARCH=64

* Re-enable ldc-beta

* Add more comments

* Use the LDC release build

* Remove note about requiring wine

* Split-up LDC setup in a separate file
2019-04-18 02:36:21 +02:00
Basile-z
4ad4b52c93
upgrade dependencies (#756) 2019-04-01 09:01:15 +02:00
Basile-z
139ecc32ee
fix warning about missing object.d when building with make+ldc|gdc (#757)
fix #614
2019-03-31 20:08:58 +02:00