Commit graph

35 commits

Author SHA1 Message Date
Ms2ger
a55e1d1974 Remove spurious spaces from lints/mod.rs. 2015-01-01 21:25:31 +01:00
Rohan Prinja
7ac58f202f break up lints.rs into separate files 2015-01-01 13:50:55 +05:30
Manish Goregaokar
0410d3d9b2 plugins: Add seanmonstar's to_string() lint 2014-12-31 10:34:44 +01:00
Simon Sapin
a29cb0e5d0 Move the define_css_keyword_enum macro to the style crate. 2014-12-29 21:52:12 +01:00
Simon Sapin
2e35d4e987 Add a match_ignore_ascii_case! macro that does not allocate.
It should replace `match foo.to_ascii_lower().as_slice() { ...}`

@Manishearth I changed map.get to map.find in the lint to work around an ICE:

    task 'rustc' panicked at 'couldn't find node id 0 in the AST map'

Does this look OK?
2014-12-29 16:19:10 +01:00
Simon Sapin
45a08c94a4 Implement ToCss for types in style::properties::common_values::specified 2014-12-29 16:19:09 +01:00
bors-servo
56d1b16d1b auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallister
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
2014-12-27 22:12:45 -07:00
Manish Goregaokar
93c350e6e3 plugins: Fix transmute lint message 2014-12-27 21:35:49 +05:30
Manish Goregaokar
50c246bdc5 Fix warnings post-upgrade 2014-12-27 03:28:35 +05:30
Manish Goregaokar
21a888341d Ensure that Reflectors are the first field 2014-12-27 02:53:36 +05:30
Manish Goregaokar
d761877ef6 Add inheritance-checking lint 2014-12-27 02:53:35 +05:30
Manish Goregaokar
21607f066c Add internal plugin for creating Reflectable implementations 2014-12-27 02:43:13 +05:30
Manish Goregaokar
dd8360fb10 Use inline(always) for trace() 2014-12-27 02:43:12 +05:30
Simon Sapin
e689f9c160 Remove usage of deprecated HashMap::get_copy 2014-12-18 11:17:09 +00:00
Ms2ger
466faac2a5 Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00
Chris Manchester
d25bc49772 Return early and decline analysis when linting within unsafe functions for must_root analysis.
Removes a handful of whitelist annotations obsoleted by this change. fixes #3658
2014-12-09 02:10:39 -05:00
Claes 'Letharion' Gyllensvärd
2737db3ad7 Remove bitfield! macro in favour of bitflags! 2014-11-18 19:26:10 +01:00
Jack Moffitt
d1b433a3b3 Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a 2014-11-13 11:17:43 +10:00
Manish Goregaokar
52983ed97c Silence lint for self.global in XHR 2014-11-06 06:37:44 +05:30
Manish Goregaokar
4a8af307d1 Catch all types of local bindings in check_stmt 2014-11-06 01:30:29 +05:30
Manish Goregaokar
6c9ee378f5 Add documentation to plugins crate 2014-11-06 00:46:12 +05:30
Manish Goregaokar
f6e14119b6 Remove suggestion to use #[must_root] for functions 2014-10-31 11:57:42 +05:30
Manish Goregaokar
38cbf86c8f Make auto-derived JSTraceable have #[inline] methods 2014-10-16 10:20:20 +05:30
Manish Goregaokar
c45550de73 Add unifying #[dom_struct] attribute (fixes #3667) 2014-10-16 10:18:56 +05:30
Tim Taubert
5b72087944 Add #[privatize] to allow enforcing private fields for struct definitions 2014-10-13 11:13:12 +02:00
Simon Sapin
b3245fa407 Upgrade to rustc d2b30f7d3 2014-09-23 2014-09-29 17:41:45 +01:00
bors-servo
c2d6d8084c Merge pull request #3480 from zwarich/trailing-whitespace
Fix trailing whitespace tidy errors

Reviewed-by: larsbergstrom
2014-09-25 17:00:34 -06:00
Cameron Zwarich
ce2484a7ce Fix trailing whitespace tidy errors 2014-09-25 13:48:07 -07:00
Cameron Zwarich
5399e117de Add the MPL back to components/plugins/lints.rs
This license was accidentally removed in 5b866e9e.
2014-09-25 13:45:39 -07:00
Manish Goregaokar
6f6a62e967 Address review comments 2014-09-24 19:35:41 +05:30
Manish Goregaokar
cc44a3b064 Use JSTraceable everywhere 2014-09-24 05:44:49 +05:30
Manish Goregaokar
3b7e07699e Add #[jstraceable] syntax extension 2014-09-24 01:15:22 +05:30
Manish Goregaokar
5b866e9e46 Fix CEF 2014-09-23 17:37:28 +05:30
Manish Goregaokar
2a4f9fd8a3 Add license headers 2014-09-23 17:37:27 +05:30
Manish Goregaokar
fcb25a35ec Rename macros crate to plugins 2014-09-23 17:37:27 +05:30