Commit Graph

490 Commits

Author SHA1 Message Date
BBasile f585c383f1
update to dparse 0.10.x (#713) 2018-11-22 22:57:25 +01:00
Basile Burg aebb5b4a4c fix #696 - Unused variable fake positive with UFCS
Apparently it was a bug not only specific to the UFCS.
Now every use of the member access operator is handled.
2018-09-16 16:58:39 +02:00
WebFreak001 aeebbf85ae Fix #698 2018-09-13 16:42:21 +02:00
The Dlang Bot ed5bfe7269
Merge pull request #691 from BBasile/dparse-attrib-inloop
Update dparse to fix possible infinite loop and adapt to ParameterAttribute
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-08-30 11:52:03 +02:00
Basile Burg 7494c5fb14 Update dparse to fix possible infinite loop and adapt to ParameterAttribute 2018-08-29 18:19:58 +02:00
BBasile 1b503656d4
Set the check for useless init disabled by default 2018-08-22 16:32:40 +02:00
Basile Burg f0000f4a01 fix #685 - Useless final attribute detects false positives 2018-08-14 10:43:59 +02:00
Basile Burg 99390ef872 fix #677 - Add support for expression-based contracts 2018-07-28 21:30:03 +02:00
The Dlang Bot 83fb251d73
Merge pull request #670 from wilzbach/githash-windows
Improve auto-versioning
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-29 15:31:49 +02:00
Sebastian Wilzbach cd545d5090 Fix #671 - False positive in infinite range check 2018-06-25 23:45:13 +02:00
Sebastian Wilzbach d0a732113c Improve auto-versioning 2018-06-25 17:43:22 +02:00
Sebastian Wilzbach 103a327a60
Merge pull request #668 from BBasile/issue-665
fix #665 - The check for auto function without return doesn't handle "implicit auto functions"
2018-06-20 18:45:23 +02:00
Basile Burg af252569f7 fix #665 - The check for auto function without return doesn't handle "implicit auto functions" 2018-06-20 12:32:38 +02:00
Basile Burg a864eaafb7 fix #666 - False positive for "trust too much" 2018-06-20 12:08:39 +02:00
Basile Burg 727dd27662 Put the name of the variable which has a useless init between back ticks 2018-06-14 11:50:14 +02:00
The Dlang Bot 5a6101084f
Merge pull request #660 from BBasile/issue-659
fix #659 - has opEquals but not toHash warning even if opEquals is di…
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-06-12 21:53:59 +02:00
The Dlang Bot 40a0a9d9be
Merge pull request #661 from BBasile/issue-658
fix #658 - warning about non-const should not be emitted if the metho…
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-06-12 21:53:03 +02:00
Basile Burg aaf06fd500 fix #658 - warning about non-const should not be emitted if the methods are `@disable` 2018-06-12 11:18:55 +02:00
Basile Burg b5597e6bb6 fix #659 - has opEquals but not toHash warning even if opEquals is disabled 2018-06-12 11:10:06 +02:00
The Dlang Bot 32dd411ab5
Merge pull request #657 from BBasile/issue-656
fix #656 - Crash due to unsafe access in infinite range check
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-08 13:41:47 +02:00
Basile Burg c51dcd98a7 fix #656 - Crash due to unsafe access in infinite range check 2018-06-08 12:34:04 +02:00
Sebastian Wilzbach 3430b0cab9 Fix #648 - Use the current git version when building the Windows binaries 2018-06-04 23:11:33 +02:00
Basile Burg f78d3e72b9 fix #645 - False positive, Else branch identical to Then branch with incomplete IfStatement 2018-06-02 05:57:43 +02:00
Brian Schott 2eb544cca3
Merge pull request #639 from BBasile/issue-635
fix #635 - Check for documented `throw` could also detect calls to `enforce`
2018-05-26 22:17:55 -07:00
Basile Burg a0010d6a8a fix tab and create routine for gen exception type 2018-05-25 23:37:50 +02:00
Basile Burg 1cd9e9f1ea fix #640 - Warning for variable used in ctor but not in standard func 2018-05-25 21:43:50 +02:00
Basile Burg aa7bdf81c6 fix #635 - Check for documented `throw` could also detect calls to `enforce` 2018-05-25 10:08:41 +02:00
Basile Burg d7af30bfb1 update version number 2018-05-22 11:55:17 +02:00
Basile Burg 6647caf8a1 fix #632, fix #633 - false positive for static and package methods in the check for virtual calls in constructors 2018-05-16 23:57:26 +02:00
Basile Burg 67a8257d7b update dependencies, fix some possible crash during linting
fixes are in dparse and previous dsymbol version didn't work with newest dparse so it's updated as well.
2018-05-14 16:37:59 +02:00
Basile Burg 5918497ed0 bump version number 2018-04-23 18:34:00 +02:00
The Dlang Bot fb76b59c89
Merge pull request #615 from BBasile/issue-610
fix #610 - False Negative For Missing Template Param In Ddoc
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-23 10:39:27 +02:00
Basile Burg 8c44dd5092 Set all checkers class "final" 2018-04-22 20:33:58 +02:00
Basile Burg b737fc0c0f fix #610 - False Negative For Missing Template Param In Ddoc 2018-04-22 20:04:03 +02:00
Sebastian Wilzbach d96b48f765 Use git --describe tags as version string 2018-04-12 16:24:44 +02:00
BBasile b03adf1dff Change trust_too_much message which was slightly ambiguous (#611)
Change trust_too_much message which was slightly ambiguous
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-12 10:38:19 +02:00
BBasile b17f271b74 fix #607 - Dscanner should warn about missing throws section in ddoc (#609)
fix #607 - Dscanner should warn about missing throws section in ddoc
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-09 15:26:28 +02:00
Basile Burg 4231deb046 fix all cases of mixed tabs and spaces 2018-04-07 22:09:39 +02:00
The Dlang Bot af0bebd891
Merge pull request #605 from wilzbach/dub-valid-version
Generate a valid version for the DUB build
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-04-07 00:43:06 +02:00
The Dlang Bot 586a7ab262
Merge pull request #606 from wilzbach/fix-601
Fix #601 - dscanner should not complain about Params section when there's no ddoc
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-06 13:38:47 +02:00
Sebastian Wilzbach 9aec2bc485 Fix #601 - dscanner should not complain about Params section when there's no ddoc 2018-04-06 13:20:15 +02:00
Sebastian Wilzbach 558c1bf6cf Fix #438 - check for __gshared and immutable redundancies 2018-04-06 10:46:21 +02:00
Sebastian Wilzbach 5bce2daa4a Generate a valid version for the DUB build 2018-04-06 10:44:19 +02:00
Basile Burg 6fe77da02d fix #575 - Dscanner should allow opCmp with no toHash 2018-04-05 10:47:14 +02:00
The Dlang Bot a4d84a0995
Merge pull request #594 from BBasile/issue-278
fix #278 - Weird: UTF-16LE encoding is unsupported
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-05 07:14:33 +02:00
The Dlang Bot eafae0f6c0
Merge pull request #596 from BBasile/issue-195
fix #195 - Unrecognized CLI options gives huge stacktrace
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-04 21:03:34 +02:00
Basile Burg 1a2352d17f fix #195 - Unrecognized CLI options gives huge stacktrace 2018-04-04 16:48:35 +02:00
Basile Burg 7014d54a3f fix spaces indentation 2018-04-04 16:43:59 +02:00
Basile Burg 6e7c366e49 fix #278 - Weird: UTF-16LE encoding is unsupported 2018-04-04 16:37:23 +02:00
The Dlang Bot a619e6bba0
Merge pull request #582 from wilzbach/window-config-file
Fix #268 - Use the User's profile directory under Windows
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-04-03 09:48:08 +02:00
The Dlang Bot 68a1fac12b
Merge pull request #586 from wilzbach/fix-583
Fix #583 - False negative for missing parameter in Params
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
2018-04-03 09:46:11 +02:00
Brian Schott aae1c69c4a
Merge pull request #587 from wilzbach/config-dscanner
Don't use the dscanner prefix for the ModuleFilter in the config INI
2018-04-03 00:42:02 -07:00
Basile Burg 873c8f506a fix #588 - trust_too_much false positive with alias decl 2018-04-03 07:34:10 +02:00
Sebastian Wilzbach b9f5dbe22b Don't use the dscanner prefix for the ModuleFilter in the config INI 2018-04-03 06:49:46 +02:00
Sebastian Wilzbach 6ca45d8b3f Fix #583 - False negative for missing parameter in Params 2018-04-03 06:26:56 +02:00
Sebastian Wilzbach 75274faedb Fix #268 - Use the User's profile directory under Windows 2018-04-03 03:08:26 +02:00
BBasile cb31d2501e
add IZ safeAccess util and refactor several && chains with it (#577)
* add IZ safeAccess util and refactor several && chains with it

* show how to make inference working
2018-04-02 17:29:36 +02:00
BBasile 0e35538bbd Adds a check for too much trusted scope, close #545 (#581)
Adds a check for too much trusted scope, close #545
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-02 07:48:20 +02:00
Basile Burg bed35ad9b8 remove help for non existing option 2018-03-31 00:51:21 +02:00
Basile Burg 67e0f8a9e4 Use new config name override instead of breaking existing ini 2018-03-30 23:59:36 +02:00
The Dlang Bot 8b52e513b9
Merge pull request #576 from wilzbach/has-public-examples-deprecated
Ignore has_public_example for deprecated symbols
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-30 11:49:33 +02:00
Sebastian Wilzbach a8f4f71c46 Ignore has_public_example for deprecated symbols 2018-03-30 11:15:26 +02:00
Sebastian Wilzbach 06bc5323b7 Don't force the documentation of the template parameter if it's a used type in the parameter list 2018-03-28 16:12:34 +02:00
Sebastian Wilzbach 14ae261d55 Hot-fix for #570 (#572) 2018-03-24 20:24:39 +01:00
BBasile eb281030f5
Add a temporary function that warns or patches the old INI section (#570)
* Add a temporary function that warns or patches the old INI section

* fix tabs in help message
2018-03-23 16:03:40 +01:00
The Dlang Bot 9fa8756233
Merge pull request #450 from wilzbach/if_constraints_indent
Add check for if constraint indendation
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-23 00:26:44 +01:00
Sebastian Wilzbach 27b09eebfd Check for function parameters in mixins (#484)
* Check for function parameters in mixins

* Don't trigger errors on uncertain mesages
2018-03-22 23:53:47 +01:00
Basile Burg e807bd7456 fix case of self linting failure 2018-03-22 23:50:03 +01:00
Sebastian Wilzbach cb073c3cf0 Add check for if constraint indendation 2018-03-22 21:03:10 +01:00
Laurent Tréguier 2be1a1f22f Move everything under package `dscanner` (#526)
* Move everything under package `dscanner`

* Fix .gitignore

* Fix .dscanner.ini
2018-03-22 20:15:42 +01:00
Frank LENORMAND 8463973f91 Allow customizing the style check messages' format (#567)
* Allow customizing the style check messages' format

Closes #377

* Allow other parts of the code to customize the error format
2018-03-22 17:51:27 +01:00
Alien f9fba3a011 Make splitting of lines for testing agnostic of a specific style. (#546)
Make splitting of lines for testing agnostic of a specific style.
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-02-14 07:57:57 +01:00
The Dlang Bot 3f3028d7f2
Merge pull request #561 from wilzbach/stdx-allocator
Switch to use the frozen stdx-allocator package
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-02-11 20:43:16 +01:00
Sebastian Wilzbach efb0582d2c Switch to use the frozen stdx-allocator 2018-02-11 16:05:07 +01:00
Sebastian Wilzbach 0120aed594 Fix Issue 18409 - DScanner SEGFAULTS on CircleCI 2018-02-09 16:34:03 +01:00
Basile Burg 718d29c02e fix style warnings on itself 2018-01-29 14:26:23 +01:00
Basile Burg 10bf4725c0 update dependencies and adapt to TypeIdentifierPart & DeclaratorIdentList 2018-01-29 12:31:33 +01:00
RazvanN7 df012e9028 Make visiting alias public 2018-01-25 12:52:24 +02:00
The Dlang Bot e9c4587fd5
Merge pull request #495 from wilzbach/assert_without_msg
Add check for asserts without an explanatory message
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-12-16 04:16:24 +01:00
Basile Burg 91dfc8bd4f fixup f48862d7 2017-11-19 15:18:37 +01:00
Basile Burg f48862d7a5 fix #533 - "Could be declared const" should be avoided for declarations with "new" (#534)
fix #533 - "Could be declared const" should be avoided for declarations with "new"
merged-on-behalf-of: Richard Andrew Cattermole <alphaglosined@gmail.com>
2017-11-19 14:37:25 +01:00
WebFreak001 90cc58cdb3 fix #500 2017-11-03 15:40:31 +01:00
Jan Jurzitza 8d53f8887e More null checks (#517)
same as #513, 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 #513 (#514) 2017-08-13 14:14:37 +02:00
Jan Jurzitza 142e284588 foreach missing body crash fix (#515) 2017-08-13 14:14:02 +02:00
Jan Jurzitza 34f893d29f Add a findDeclarationOf overload that takes a callback (#512)
* 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 #510 from dlang-community/issue-452
fix #452 - 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 `_` (#511)
Fix #490
2017-08-06 12:30:32 +02:00
Basile Burg 511cee29dc
fix #452 - false pos for namz style for VariableDecl with the "enum" storage class 2017-08-06 02:09:06 +02:00
Basile Burg 55ecfbe479 fix #370 - False positive for duplicate variable name check with structs (#509)
fix #370 - 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 (#508) 2017-08-04 16:57:16 +02:00
Mark Barbone e7ea632ea4 No longer uses deprecated string.removechars 2017-08-02 15:32:48 -04:00
Jan Jurzitza a916a64fb7 Fix #501 (#502) 2017-07-28 21:05:19 +02:00
Basile Burg 7b91483943 fix #312 - spurious warnings about non-const toString inside const block (#505) 2017-07-28 00:30:03 +02:00
Basile Burg ce6056d4bc fix #275 - cant run tests under windows (#504)
* fix #275 - 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 (#503)
* fix deprecations messages related to message function

* update dsymbol as a git submodule too
2017-07-27 12:16:52 +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
Sebastian Wilzbach a85393612a Apply selective filtering for has_public_example as well 2017-06-30 04:40:20 +02:00
Sebastian Wilzbach 45ef861268 Fix #457 - Allow to apply checks only for specific modules (#460)
* Fix #457 - 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
Basile Burg f89d356601 Fixes cases of false or non positive with the useless init check (#475)
* fix #474 fix #473 fix #476 - Cases of false and non positive with the useless init check

* do not warn on documented variables

* fix #477 - 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
Sebastian Wilzbach ba751105a2 Merge pull request #470 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 #466 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 (#479)
* 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
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 (#465) 2017-06-19 14:21:18 +02:00
Basile Burg db46595870
Revert "set more def bucket count to get better perfs on huge modules (#462)"
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 (#462) 2017-06-17 13:57:22 +02:00
Sebastian Wilzbach cf3d702720 Fix deprecations (#458)
* 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 (#441) 2017-06-15 11:15:58 +02:00
Sebastian Wilzbach 18a8b6b15e Merge pull request #455 from dlang-community/issue-454
fix #454 - Ddoc for unions are not detected
2017-06-15 00:16:45 +02:00
Sebastian Wilzbach 345f26465c Allow duplicate braces in allman style (#449) 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 09205ddaf9 Add allman check (#446) 2017-06-12 13:33:23 +02:00
Sebastian Wilzbach dab25d5e31 Fix more problems in the sorted import checker (#445)
* Sorted imports: put ConditionalDeclaration and IfStatement in a separate scope

* Allow intermediate imports
2017-06-12 11:26:43 +02:00
Sebastian Wilzbach 6d34b149a9 Fix #422 - False negative: sorted imports with : (#444)
* Fix #422 - False negative: sorted imports with :

* Fix #422: Add another test
2017-06-12 10:29:20 +02:00
Sebastian Wilzbach 6fad779ec2 Fix #439 - Line length false positives in Phobos (#440) 2017-06-12 10:29:00 +02:00
Basile Burg 6e9e841a9a Add a check for useless initializers, close #285 (#429)
* Add a check for useless initializers, close #285

# Conflicts:
#	src/analysis/config.d

* remove duplicated oror condition

* remove useless protection

* also handle several case of assignation to init

* assign to init, forgot to test for ".init"

* update with new configuration initialization
2017-05-17 17:46:10 +02:00
Basile Burg 28945dec81 Merge pull request #428 from BBasile/issue-352
fix #352 - False positive: Parameter is never used, pointers
2017-05-17 14:50:02 +02:00
Basile Burg 40b183aed9 fix #431, Virtual call in ctor - problem with overloaded virtual methods (#432) 2017-05-12 15:25:58 +02:00
Basile Burg cd5dbd84e0
in storage class doesn't mean ref/assignable 2017-05-08 18:24:15 +02:00
Basile Burg 004847624b
fix #352 - False positive: Parameter is never used, pointers 2017-05-08 15:39:01 +02:00
Basile Burg 7a74a70e85
disable Phobos-specific checks by default, close #406 2017-05-08 01:30:29 +02:00
Basile Burg b615d3e299
implement a check for the virtual calls inside constructors, close #423 2017-04-16 03:58:10 +02:00
Hackerpilot 3c3fbe6725 Fix #416 2017-03-09 14:19:26 -08:00
Hackerpilot 43772fcc15 Fix #420. This is where a good weed joke would go if I had one. 2017-03-09 12:31:47 -08:00
Brian Schott eff9fb7571 Merge pull request #417 from sprinkle131313/master
Fix #403: Handle unsearchable file.
2017-03-07 14:36:53 -08:00
sprinkle131313 2dbda715b1 Fix #403: Handle unsearchable file. 2017-02-26 15:45:25 -05:00
Basile Burg 5bf8146944
fix #198 - Function casing warning on `extern(Windows)` 2017-02-24 12:06:24 +01:00
Brian Schott e8a8766c2f Merge pull request #407 from wilzbach/same-name-check-version
Same name check: differentiate between version blocks
2017-02-21 14:19:48 -08:00
Brian Schott f16b1e854a Merge pull request #390 from wilzbach/check-properly-documented-public-function
Add Ddoc check for properly documented public functions
2017-02-20 15:03:01 -08:00
Sebastian Wilzbach 4c74ac2bda Same name check: differentiate between version blocks 2017-02-20 14:56:19 +01:00
Sebastian Wilzbach 40b3f0d211 Handle doc parameters for templated functions better 2017-02-20 06:27:37 +01:00
Sebastian Wilzbach 4b0f61bb98 Missing return section: add test for auto functions 2017-02-20 05:43:58 +01:00
Sebastian Wilzbach 3103f58242 Address review 2017-02-20 05:42:04 +01:00
Sebastian Wilzbach 8c9f31289b Add Ddoc check for properly documented public functions (add libddoc) 2017-02-16 15:36:09 +01:00
LaurentTreguier 0726a9dcb8 Escape backslashes before quotes 2017-02-16 08:41:42 +01:00
Elronnd 868c8c46d3 Fix a typo in the css for the highlighter 2017-02-13 22:55:00 -07:00
Hackerpilot 87e42ae194 Update version number 2017-02-13 14:32:31 -08:00
Basile Burg d08c1e1eb5
fix #400 - TypeCtors, false positive for unmodified variable 2017-02-13 18:15:52 +01:00
Brian Schott 8a1dc98010 Merge pull request #396 from BBasile/issue-364
fix #364 - unused variables, detect enums used as template param or array dimension
2017-02-06 16:49:11 -08:00
Basile Burg 7686dd0ecc
prevent to check for final attribs inside templates
since they might be mixed or not, in structs or not
2017-02-04 02:38:20 +01:00
Basile Burg 0afddd2c4e
fix #364 - detect 2 cases where CT vars used in type of declaration 2017-01-19 10:32:06 +01:00
Basile Burg 2b8ba6ffca
fix sloppy test for private protection 2017-01-17 12:08:35 +01:00
Basile Burg 437b8e169d
improve error messages, fix mixed tbs/spaces, remove unused variable 2017-01-17 05:54:40 +01:00
Basile Burg fb2b2182e2
fix, unhanlded declarations caused wrong results 2017-01-16 20:46:01 +01:00
Basile Burg d9b6828205
fix false warning on top level struct/union 2017-01-16 17:07:14 +01:00
Basile Burg 9b97b7d929
add a checker for cases where final is a noop 2017-01-16 06:38:55 +01:00
Brian Schott 9a6b682859 Merge pull request #389 from wilzbach/explicitly_annotated_unittest
Add check for explictly annotated unittests
2017-01-03 15:02:16 -08:00
Brian Schott 6ce77ecaed Merge pull request #388 from wilzbach/local-imports-sortedness
Imports sortedness check: handle local imports in their separate scope
2017-01-03 14:59:42 -08:00
Brian Schott 7c9257ebe3 Merge pull request #381 from BBasile/issue-380
fix #380, templated enum seen as unused variable
2017-01-03 14:58:24 -08:00
Basile Burg 92037b5e7c
prevent possible segfault with instructions without params, like RDTSC 2016-12-24 19:55:33 +01:00
Basile Burg e5708325c1
apply Dscanner on the label ana module 2016-12-24 07:35:06 +01:00
Basile Burg e8c848352e
fix #392 - Usage of labels in asm blocks is not detected 2016-12-24 06:05:57 +01:00
Basile Burg 15b86bf159
fix #380, templated enum seen as unused variable 2016-12-21 21:16:42 +01:00
Sebastian Wilzbach 1c89a01f33 Address @BBasile's review 2016-12-16 00:52:17 +01:00
Sebastian Wilzbach 7f38c87f5d Add check for explictly annotated unittests 2016-12-15 17:34:06 +01:00
Sebastian Wilzbach 0e62267501 Imports sortedness check: handle local imports in their separate scope 2016-12-15 15:20:54 +01:00
Brian Schott c018b1ef57 Merge pull request #382 from wilzbach/import-sortedness
Add ImportSortedness checker
2016-12-12 15:01:24 -08:00
Brian Schott d5652002c4 Merge pull request #384 from WebFreak001/master
Allow stdin everywhere (fix #317)
2016-12-12 14:55:34 -08:00
WebFreak001 0aee4eaf40 Allow stdin everywhere fix #317 2016-12-12 21:52:36 +01:00
Basile Burg 55a6b2a758
prevent a case of false detection for auto functions 2016-12-11 00:42:47 +01:00
Sebastian Wilzbach be555a74b8 Add ImportSortedness checker 2016-12-10 20:22:40 +01:00
Brian Schott f283650c12 Merge pull request #379 from BBasile/autofunc-mixin-asserts
auto functions checker, fix several cases of false warnings
2016-12-05 16:17:46 -08:00
Basile Burg e041f6e5dd
fix, dont emit warn for body-less functions 2016-11-26 08:31:43 +01:00
Basile Burg cbeca3ba34
auto functions checker, check assert(false) and string literal mixin. 2016-11-26 06:59:40 +01:00
Hackerpilot bf3b942b9a Fix cast 2016-10-18 13:59:57 -07:00
Hackerpilot cb70ded2b2 Fix token dump output 2016-10-18 13:39:36 -07:00
Hackerpilot 7349e20b8a Fix #347 2016-10-12 19:31:05 -07:00
Hackerpilot 896d7da6f4 Update dsymbol and dparse 2016-10-12 19:28:51 -07:00
Basile Burg 734d47e9a2
add a check for the auto functions without return statement 2016-09-07 07:08:13 +02:00
Basile Burg f9bb76782c
fixup for #368, readme and source comment still stated the prev.behavior 2016-09-03 22:31:32 +02:00
Basile Burg f51a689a7d
add detection of undocumented enums and their members 2016-08-30 01:47:09 +02:00
Hackerpilot 5a790b4d41 Fix #368 2016-07-27 12:21:51 -07:00
Hackerpilot 40961297e7 Issue #365 2016-07-14 15:39:27 -07:00
Hackerpilot b9fa74ba7b Fix #360 2016-07-05 15:59:15 -07:00
Hackerpilot 0ccdfa2984 Update libdparse to improve handling of align attributes 2016-06-30 15:48:54 -07:00
Hackerpilot 18bfad3619 Update C++ linkage attribute handling 2016-06-30 14:50:48 -07:00
Hackerpilot e4426081dd Fix indentation 2016-06-30 14:50:28 -07:00
LaurentTreguier 7945792784 Correct small typo
It looks like there was a typo here...
2016-06-30 20:54:00 +02:00
Hackerpilot 5994c760a4 Fix #355 2016-06-10 18:27:59 -07:00
Hackerpilot d7ab1023a7 Fix #356 2016-06-10 15:28:50 -07:00
Ianis G. Vasilev 322a191d5d Added a mechanism for searching for dscanner.ini upwards through the file hierarchy 2016-05-20 01:45:23 +03:00
Hackerpilot 428043db71 Fix null pointer error in comma expression check 2016-05-19 00:37:01 -07:00
Basile Burg c101a6e1f7 Added an option that allows to skip the unittests analysis
allow each check to be individually skipped in the unit tests

useless assertions must always be detected
2016-05-12 17:14:32 +02:00
Hackerpilot f0bc0d933c Merge commit '162a5fb' 2016-05-11 16:41:53 -07:00
Hackerpilot 162a5fb332 Fix memory leaks 2016-05-11 16:41:42 -07:00
Hackerpilot 15c780fac4 Fix #341 2016-05-09 15:57:26 -07:00
Hackerpilot e7a1b1fd2f Fix parse error 2016-05-09 15:49:36 -07:00
Brian Schott c602036e0f Merge pull request #309 from dhasenan/master
Added a test for static if...else if mistakes.
2016-05-06 14:32:18 -07:00
Hackerpilot 3d6fdfe2a3 Fix #339 2016-05-06 14:24:10 -07:00
Hackerpilot 02f8f3c423 Enable the comma operator warning in synchronized statements 2016-05-04 03:24:32 -07:00
Hackerpilot 97c4e48ce5 Fix bug in token display 2016-05-04 03:24:11 -07:00
Sebastian Wilzbach c61800a7bc fix small typo in dscanner.ini 2016-04-27 12:27:23 +03:00
Hackerpilot 9b81989011 Fix #334 2016-04-18 14:09:10 -07:00
Hackerpilot 553394b621 Fix import 2016-04-18 14:02:27 -07:00
Hackerpilot a78c4610a2 Fix #314 2016-03-27 16:29:43 -07:00
Hackerpilot 8671674cd5 Update version number 2016-03-24 15:17:14 -07:00
Hackerpilot a18ebe0c86 Merge branch 'allocator_improvements' 2016-03-17 03:09:48 -07:00