Commit Graph

15222 Commits

Author SHA1 Message Date
llogiq
e8ca19da24 fixed modules/visibility 2015-06-01 22:36:56 +02:00
llogiq
30de91d3e9 moved in_macro to (new) utils.rs 2015-06-01 22:30:34 +02:00
llogiq
1ee2e4ffe8 Fixed block check, also added macro test to collapsible_if and inline_always 2015-06-01 15:09:17 +02:00
llogiq
9aec247ff3 Merge pull request #81 from Manishearth/len_zero
Len zero extended with check for is_empty() (so we should no longer get false positives).
2015-06-01 14:09:20 +02:00
llogiq
7f5891184d merged upstream master 2015-06-01 13:55:55 +02:00
llogiq
cdca2c93c1 now the method lookup actually works (and I understand why! 😄), reduces unnecessary loops, and has a few comments 2015-06-01 12:49:36 +02:00
llogiq
c5dfcaeeaf Merge branch 'master' into len_zero 2015-06-01 07:52:22 +02:00
llogiq
4c76465154 Merge pull request #68 from Manishearth/macro_expn
macro expn detection in mut_mut.rs
2015-06-01 07:44:27 +02:00
llogiq
21cd0c7e70 check for is_empty() method to get rid of false positives 2015-06-01 07:40:33 +02:00
Matthew Hall
423a9666ca Implements #45 - any number mod 1 will be 0 2015-05-31 13:43:31 +01:00
llogiq
77838d6ba7 New lint for issue
#72
2015-05-30 15:10:19 +02:00
Manish Goregaokar
b99fab8162 Merge pull request #76 from mattyhall/master
Add lint for ifs that could be collapsed
2015-05-29 20:29:08 +05:30
Matthew Hall
7e16822925 Add lint for ifs that could be collapsed
"Collapsible" ifs are ones which contain only a then block, and the then
block consists of an if that only has a then block.
2015-05-29 15:41:25 +01:00
llogiq
cd2e621c60 made in_macro distinguish intra-crate and extra-crate macros, as the latter have no working source (note: may fail in the face of compiler plugins doing whatever they like with spans), also one more run-pass test 2015-05-26 13:52:40 +02:00
Manish Goregaokar
eb421ca202 Merge pull request #71 from sourcejedi/patch-1
Fix copy+paste in description of LEN_ZERO
2015-05-26 16:02:04 +05:30
llogiq
fee230c07e Merge pull request #70 from Manishearth/issue_69
Issue #69 fixed
2015-05-26 01:46:30 +02:00
llogiq
0d651c72ff made macro test even simpler, added a few tests 2015-05-26 01:45:15 +02:00
llogiq
73e3ef6d0e fixed issue #69 2015-05-25 22:50:41 +02:00
llogiq
a67e0f6e2f first prototype of macro expn detection in mut_mut.rs 2015-05-25 07:22:41 +02:00
Alan Jenkins
a133dc4451 Fix copy+paste in description of LEN_ZERO 2015-05-24 19:06:54 +01:00
llogiq
62f0fe0cc0 Merge pull request #66 from Manishearth/refactoring
another refactoring…
2015-05-23 12:43:24 +02:00
llogiq
b51ca1c3db Formatting fixed 2015-05-23 12:32:29 +02:00
llogiq
0ed8e4e968 another refactoring, using more fitting Option methods, improving formatting, etc. 2015-05-23 00:49:13 +02:00
llogiq
450c0fb40c Merge pull request #65 from Manishearth/cmp_owned
check for str type of .to_owned() callee
2015-05-21 16:41:57 +02:00
llogiq
7440b0a111 Merge pull request #64 from Manishearth/refactoring
refactored Option usage and fn argument types, improved formatting
2015-05-21 16:39:30 +02:00
llogiq
4b1c72c949 check for str type of .to_owned() callee 2015-05-21 16:37:38 +02:00
llogiq
6e07acf44e Merge pull request #63 from Manishearth/cmp_owned
new lint: cmp_owned
2015-05-21 16:00:45 +02:00
llogiq
158935a38d refactored Option usage and fn argument types, improved formatting 2015-05-21 15:59:58 +02:00
llogiq
5b1287f017 added description to README 2015-05-21 14:57:20 +02:00
llogiq
4292dc77a7 new lint: cmp_owned 2015-05-21 14:51:43 +02:00
llogiq
57a6b93ed0 Merge pull request #62 from Manishearth/len_zero_is_empty
Here goes nothing... 😄
2015-05-20 10:38:08 +02:00
llogiq
483a546e74 added messages to test error comments 2015-05-20 09:34:02 +02:00
Manish Goregaokar
4a7cd0772e Update .travis.yml 2015-05-20 12:34:45 +05:30
llogiq
e8ca3c6eae new lints len_zero and len_without_is_empty 2015-05-20 08:52:19 +02:00
Manish Goregaokar
303c8f7b5e Update README.md 2015-05-18 16:02:25 +05:30
Manish Goregaokar
e457500cc7 Merge pull request #33 from ctjhoa/master
Fix and improve README
2015-05-18 16:00:55 +05:30
Camille TJHOA
04f48455e5 Specify languages for examples 2015-05-18 12:22:46 +02:00
Camille TJHOA
b533b084f3 Fix typo 2015-05-18 12:22:46 +02:00
Camille TJHOA
bac950b4d6 Fix and improve README 2015-05-18 12:22:45 +02:00
Manish Goregaokar
3b82a28ce7 Merge pull request #59 from Manishearth/mut_mut
Mut mut no longer matches ty_ptr, better error messages
2015-05-18 15:50:04 +05:30
llogiq
5556d89f56 removed ty_ptr match 2015-05-18 11:36:56 +02:00
llogiq
b9414637e2 better messages 2015-05-18 10:52:43 +02:00
llogiq
7260be49fc Merge pull request #58 from Manishearth/mut_mut
mut_mut now more robust (thanks to Manishearth, see issue #9)
2015-05-18 10:43:59 +02:00
llogiq
1f8453ab73 mut_mut now more robust (thanks to Manishearth, see issue #9) 2015-05-18 10:41:15 +02:00
llogiq
887c518d07 Merge pull request #57 from Manishearth/mut_mut
New lint: mut_mut
2015-05-18 09:07:03 +02:00
llogiq
96bfade4f1 New lint: mut_mut (closes issue #9) 2015-05-18 09:02:24 +02:00
llogiq
cd62ef3450 Merge pull request #56 from Manishearth/identity_op
new lint: identity_op, refactored bit_masks a bit
2015-05-15 19:16:40 +02:00
llogiq
edf747ab76 new lint: identity_op, refactored bit_masks a bit 2015-05-15 18:46:43 +02:00
llogiq
6f527ea810 Merge pull request #55 from Manishearth/ineffective_bit_mask
Added 'ineffective bit mask' lint
2015-05-15 14:13:34 +02:00
llogiq
6bec4f35df Added 'ineffective bit mask' lint 2015-05-15 14:09:29 +02:00