Commit Graph

1216 Commits

Author SHA1 Message Date
Jan Jurzitza 8d53f8887e More null checks ()
same as , just for a few more constructs. The switch statement already had the same thing in
2017-08-13 19:06:23 +02:00
Jan Jurzitza c98fa77f95 Fix () 2017-08-13 14:14:37 +02:00
Jan Jurzitza 142e284588 foreach missing body crash fix () 2017-08-13 14:14:02 +02:00
Jan Jurzitza 34f893d29f Add a findDeclarationOf overload that takes a callback ()
* Add a findDeclarationOf overload that takes a callback
This makes getting the declarations when working with dscanner as a library much easier. Another possible improvement for the future could be directly passing File objects or an input range of Files

* Fix formatting of delegate in findDeclarationOf
2017-08-12 23:14:18 +02:00
Richard Andrew Cattermole 45563536d1 Merge pull request from dlang-community/issue-452
fix  - false pos for naming style of a VariableDecl with the "enum" storage class
2017-08-12 01:05:10 +12:00
Jan Jurzitza 0d48f27873 Don't warn about unused identifers named `_` ()
Fix 
2017-08-06 12:30:32 +02:00
Basile Burg 511cee29dc
fix - false pos for namz style for VariableDecl with the "enum" storage class 2017-08-06 02:09:06 +02:00
Basile Burg 55ecfbe479 fix - False positive for duplicate variable name check with structs ()
fix  - False positive for duplicate variable name check with structs
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-08-05 19:10:08 +02:00
Basile Burg e4b0ecc7cf final attrib checker - handle static () 2017-08-04 16:57:16 +02:00
The Dlang Bot cee82acabd Merge pull request from mb64/master
No longer uses deprecated string.removechars
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-08-03 12:10:57 +02:00
Mark Barbone e7ea632ea4 No longer uses deprecated string.removechars 2017-08-02 15:32:48 -04:00
Jan Jurzitza a916a64fb7 Fix () 2017-07-28 21:05:19 +02:00
Basile Burg de0b719106 fixup for last bat update - use var instead of plain text () 2017-07-28 13:20:09 +02:00
Basile Burg 7b91483943 fix - spurious warnings about non-const toString inside const block () 2017-07-28 00:30:03 +02:00
Basile Burg ce6056d4bc fix - cant run tests under windows ()
* fix  - cant run tests under windows

* fix typo
2017-07-27 16:01:02 +02:00
Basile Burg 7ee23b3d73 fix deprecations messages related to message function ()
* fix deprecations messages related to message function

* update dsymbol as a git submodule too
2017-07-27 12:16:52 +02:00
Sebastian Wilzbach 0b064a000e Merge pull request from dlang-community/update-dparse-2
update dparse for the --ast option
2017-07-12 11:00:12 +02:00
Basile Burg 3cb40148c1
update dparse for the --ast option 2017-07-12 10:24:19 +02:00
Sebastian Wilzbach 8304e8540c assert_without_msg: Check for std.exception.enforce 2017-07-08 10:20:05 +02:00
Sebastian Wilzbach 5ba4a7bffa Add check for asserts without an explantory message 2017-07-08 03:30:50 +02:00
Brian Schott eae0305292 Merge pull request from dlang-community/bat-bin
output in bin when using the bat and DUB
2017-07-05 00:22:59 -07:00
Basile Burg 672c665d51 DUB project, out put to bin 2017-07-04 09:58:00 +02:00
Basile Burg 169f784aae output in bin when using the bat 2017-07-04 09:18:58 +02:00
Sebastian Wilzbach fb032b0a71 Merge pull request from wilzbach/has_public_example-selective
Apply selective filtering for has_public_example as well
2017-07-01 22:14:12 +02:00
Sebastian Wilzbach a85393612a Apply selective filtering for has_public_example as well 2017-06-30 04:40:20 +02:00
Sebastian Wilzbach 45ef861268 Fix - Allow to apply checks only for specific modules ()
* Fix  - Allow to apply checks only for specific modules

* update inifiled to 1.0.2

* Compile dependencies separately, s.t. their unittests don't get executed
2017-06-30 04:31:07 +02:00
The Dlang Bot 9bf010a6e7 Merge pull request from wilzbach/update-libdparse
Update libdparse to 0.7.1-beta.5
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-06-29 14:29:07 +02:00
Sebastian Wilzbach 6ca85419eb Update libdparse to 0.7.1-beta.5 2017-06-29 09:24:56 +02:00
Basile Burg f89d356601 Fixes cases of false or non positive with the useless init check ()
* fix  fix  fix  - Cases of false and non positive with the useless init check

* do not warn on documented variables

* fix  - Custom type initialized to init should not trigger a warn

* allow struct.init when know struct has `@disable` ctor

* fix last false detection in phobos

* prevent check in the "compiles" trait

* - use canFind when filter.empty was negated
- FQN the struct names
- prevent a double query in the canBeInit AA
- import the whole also package
- there was not test on non-initilized variables

* fix, self-linting missed a case that was not yet fixed

* fix more undetected warns during self linting

* use a flag instead of a stack + apply skipTests

* convert spaces to tabs
2017-06-28 08:08:33 +02:00
The Dlang Bot 3aeee9a108 Merge pull request from wilzbach/disable-unused-check
Temporarily disable the unused check for DScanner
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-06-28 03:17:13 +02:00
Sebastian Wilzbach ad9491b844 Temporarily disable the unused check for DScanner 2017-06-28 03:03:29 +02:00
Sebastian Wilzbach ba751105a2 Merge pull request from dlang-community/has_public_example
Add has_public_example check
2017-06-28 02:22:35 +02:00
The Dlang Bot 38c4d2d0eb Merge pull request from wilzbach/fix-unused_label
Fix AssertError on unknown label in unused_label
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-06-27 22:24:26 +02:00
Sebastian Wilzbach 61d52156aa Run DScanner on itself ()
* Enable DScanner checking on Travis
* Fix linter warnings
* Set opequals_tohash_check to disabled
* Set could_be_immutable to 'disabled'
* Split expression back into multiple lines
* Set style to disabled
* Fix Makefile target
2017-06-25 15:05:03 +03:00
Sebastian Wilzbach e065d07573 Add has_public_example check
A check for public declaration without a documented unittest.
2017-06-25 09:30:44 +02:00
clYd3r 721f2bc907 Add syntax highlighting to the readme () 2017-06-24 15:40:18 +03:00
Sebastian Wilzbach 7de68bf5f9 Make Dscanner usable as a library () 2017-06-20 10:40:57 +03:00
Sebastian Wilzbach 36397a579d Fix AssertError on unknown label in unused_label 2017-06-19 22:17:43 +02:00
Sebastian Wilzbach 6df62b7b4d Fix line_length checker for multiLine literals () 2017-06-19 14:21:18 +02:00
Sebastian Wilzbach ee62a9cee1 Merge pull request from ZombineDev/revert-pr459
Revert "Workaround 17506 by excluding treemap.d ()"
2017-06-18 22:02:08 +02:00
ZombineDev 778411c12b Revert "Workaround 17506 by excluding treemap.d ()"
This reverts commit 80b831adda.
The workaround is no longer necessary as the problematic
feature has been reverted from dmd-nightly.
2017-06-18 22:25:32 +03:00
Basile Burg db46595870
Revert "set more def bucket count to get better perfs on huge modules ()"
This reverts commit d8ee9a3e4b.
2017-06-18 03:08:22 +02:00
Basile Burg d8ee9a3e4b set more def bucket count to get better perfs on huge modules () 2017-06-17 13:57:22 +02:00
Sebastian Wilzbach 80b831adda Workaround 17506 by excluding treemap.d ()
* Workaround 17506 by excluding treemap.d
* Add Bugzilla and GitHub references for workaround 17506
2017-06-16 08:22:14 +03:00
Sebastian Wilzbach cf3d702720 Fix deprecations ()
* Properly import core.exception in analysis/helpers
* Remove the old std.string.removechars from useless_assert
2017-06-15 14:18:17 +03:00
Sebastian Wilzbach 764921634e Add check for redundant attributes () 2017-06-15 11:15:58 +02:00
Sebastian Wilzbach 18a8b6b15e Merge pull request from dlang-community/issue-454
fix  - Ddoc for unions are not detected
2017-06-15 00:16:45 +02:00
Sebastian Wilzbach 345f26465c Allow duplicate braces in allman style () 2017-06-13 15:37:53 +02:00
Basile Burg 596135f596
fix 454 - Ddoc for unions are not detected 2017-06-13 08:45:21 +02:00
Sebastian Wilzbach 8a53adc22a Merge pull request from dlang-community/update-dparse
update libdparse
2017-06-13 03:33:10 +02:00