Commit Graph

66 Commits

Author SHA1 Message Date
Hackerpilot 20dca2a0c7 Add JSON report output for the Sonar plugin 2014-08-20 18:49:44 -07:00
Hackerpilot 05bc2e5ac3 Merge branch 'master' of https://github.com/Hackerpilot/Dscanner 2014-08-20 17:26:52 -07:00
Hackerpilot 1689e22626 Improving warning categorization 2014-08-20 17:26:46 -07:00
Hackerpilot b292799a07 ASM style checker improvements 2014-08-19 20:50:57 +00:00
Hackerpilot 0ec0598927 Inline ASM support. 2014-08-15 18:31:14 -07:00
Hackerpilot b1bf15c96d Fix message sorting order 2014-08-14 14:22:40 -07:00
Hackerpilot d3daf6e6ad Mark unary expressions as 'interesting' if they have a '*' prefix. Fixes #194 2014-08-13 18:51:53 -07:00
Hackerpilot f2d121b71f Implement check for logical or and logical and operands 2014-08-13 14:37:35 -07:00
Hackerpilot 31e9c74b2a Update my super-secret identity 2014-07-24 18:17:43 -07:00
Hackerpilot cfd6192bc6 Merge branch 'master' of https://github.com/Hackerpilot/Dscanner 2014-07-24 18:12:42 -07:00
Hackerpilot 798cdbffbf Implement static analysis check for members and properties that shadow built-in properties 2014-07-24 18:12:31 -07:00
Brad Anderson eb8cbd8c2c Tweak non-const method warning
They shouldn't necessarily be const, it's just usually a good idea.
2014-07-23 18:20:34 -06:00
Hackerpilot 7d5dd3bfde Implement #191 2014-07-23 15:06:07 -07:00
Hackerpilot 622c5e75cb Warn about opCmp without opEquals 2014-07-23 14:13:27 -07:00
sinkuu 8623c27498 Fix BackwardsRangeCheck fails on noninteger slice 2014-07-09 19:53:57 +09:00
sinkuu 0acd33f48b Fix PokemonExceptionCheck causes segfault on nested attributes 2014-07-09 19:53:57 +09:00
Hackerpilot 53cff7824e Fix #129 2014-07-08 15:00:00 -07:00
sinkuu 613f2027c7 Fix crash with empty file 2014-06-28 17:10:23 +09:00
Hackerpilot d71fd8addc Merge branch 'master' of https://github.com/Hackerpilot/Dscanner
Conflicts:
	std/d/parser.d
2014-06-25 19:04:23 -07:00
Hackerpilot 84a0e706c2 Project restructuring 2014-06-25 19:03:57 -07:00
Matthew Brennan Jones 74e087aac3 Made warning and test messages more consistent.
Made all warnings end in a period.
Made all names have single quotes.
Made all test success messages the same.
2014-06-25 10:37:30 -07:00
Matthew Brennan Jones d4a72712a9 Updated checker to check for opEquals without toHash, as well as toHash without opEquals. 2014-05-31 13:38:16 -07:00
Matthew Brennan Jones 2a4fcbbd9d Added checker for having opEquals without toHash. 2014-05-30 20:47:56 -07:00
Matthew Brennan Jones ed188ee9be Small cleanup of style and junk comments. 2014-05-29 17:19:25 -07:00
Matthew Brennan Jones 34b312b45e Fixed issue where warnings on line zero would break unit tests. 2014-05-29 16:14:52 -07:00
Hackerpilot f8c9f5c955 Issue warning on LastCatch as well 2014-05-28 10:50:02 -07:00
Hackerpilot 8d34ba7144 Fix incorrect unused parameter warnings in function types 2014-05-27 04:56:40 +00:00
Hackerpilot 59ca571012 Use binary literals for bit masks 2014-05-26 01:30:51 +00:00
Hackerpilot 06f9891b62 Prevent false positive in slice error 2014-05-26 01:24:04 +00:00
Matthew Brennan Jones 657ef65952 Added pure and nothrow to the duplicate attribute checker. 2014-05-25 13:06:38 -07:00
Matthew Brennan Jones fad096cdff Added more attributes to the duplicate checker. 2014-05-24 18:24:37 -07:00
Matthew Brennan Jones 22104911d4 Added basic checker for duplicate attributes. 2014-05-23 20:37:48 -07:00
Hackerpilot 12d6120e10 Remove unnecessary blank lines from output 2014-05-19 14:48:23 -07:00
Hackerpilot 7a2d5f7e73 Fixed bug in unused parameter check 2014-05-18 00:48:35 +00:00
Hackerpilot 525790aefc Fix unit tests 2014-05-18 00:22:22 +00:00
Matthew Brennan Jones 277e478466 Cleanup of test functions. 2014-05-17 12:17:44 -07:00
Matthew Brennan Jones 8231a0d1b8 Added basic unit tests to some analyzers. 2014-05-16 18:47:13 -07:00
Hackerpilot 43a8284c07 Relax exception check so that it only warns on catching Throwable and Error. Fix #159 2014-05-14 18:02:18 -07:00
Hackerpilot 8b4b2b342f Thrown variables are used 2014-05-13 14:08:07 -07:00
Hackerpilot 35e568a756 Fix unused parameter warnings for in and out parameters 2014-05-12 18:09:02 -07:00
Hackerpilot 1c87c48aa0 Numbers in module names are also permitted by the Phobos style guide 2014-05-12 18:08:14 -07:00
Hackerpilot fd60696a24 Fix segfault 2014-05-12 16:39:59 -07:00
Hackerpilot e0dc18a8b5 Fixed several issues with the unused variable finder and relaxed the number format rule 2014-05-12 16:03:05 -07:00
Hackerpilot b105a0f6a2 Remove more false positives in unused variable detection 2014-05-12 10:53:27 -07:00
Hackerpilot 87732c6657 Added unused variable check, and then used it to remove some unused variables 2014-05-10 02:56:01 -07:00
Hackerpilot 8954fff8e4 Fixed decimal lexing and renamed stdx to std 2014-04-23 14:26:37 -07:00
Hackerpilot 39f14f89f5 Merge branch 'new_branch_name'
Conflicts:
	analysis/run.d
	stdx/d/ast.d
2014-04-21 15:33:29 -07:00
Hackerpilot 7c22e9a849 Added check for identical if/else blocks and obvious self-assignment 2014-04-21 15:26:54 -07:00
Hackerpilot 06cf70b34c Fix hex literals in foreach loops 2014-04-21 15:25:45 -07:00
Matthew Brennan Jones 1d2c529b24 Added missing check for <>=, the deprecated floating point operator. 2014-04-13 12:21:44 -07:00