Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upModify `script` to prevent further violations of snake_case #25547
Conversation
highfive
commented
Jan 17, 2020
|
Heads up! This PR modifies the following files:
|
A couple more that you'll need to rebase to address. Otherwise I think this is a good choice :) |
| @@ -366,6 +366,7 @@ pub fn handle_get_browsing_context_id( | |||
| } | |||
|
|
|||
| // https://w3c.github.io/webdriver/#dfn-center-point | |||
| #[allow(non_snake_case)] | |||
This comment has been minimized.
This comment has been minimized.
pshaughn
Jan 18, 2020
Member
This one can be fully snake-cased; the violations are just variable names.
| @@ -900,7 +900,7 @@ impl StreamConsumer { | |||
|
|
|||
| /// Implements the steps to compile webassembly response mentioned here | |||
| /// <https://webassembly.github.io/spec/web-api/#compile-a-potential-webassembly-response> | |||
| #[allow(unsafe_code)] | |||
| #[allow(unsafe_code, non_snake_case)] | |||
This comment has been minimized.
This comment has been minimized.
pshaughn
Jan 18, 2020
Member
I think this one can be fully snake cased; the only violation I see is the parameter name _mimeType.
| @@ -349,6 +349,7 @@ pub fn load_whole_resource( | |||
| } | |||
|
|
|||
| /// https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request | |||
| #[allow(non_snake_case)] | |||
| pub(crate) fn create_a_potential_CORS_request( | |||
This comment has been minimized.
This comment has been minimized.
| @@ -393,6 +394,7 @@ pub fn normalize_value(value: ByteString) -> ByteString { | |||
| } | |||
| } | |||
|
|
|||
| #[allow(non_snake_case)] | |||
| fn is_HTTP_whitespace(byte: u8) -> bool { | |||
This comment has been minimized.
This comment has been minimized.
| @@ -62,6 +62,7 @@ impl BluetoothRemoteGATTCharacteristic { | |||
| } | |||
| } | |||
|
|
|||
| #[allow(non_snake_case)] | |||
| pub fn new( | |||
This comment has been minimized.
This comment has been minimized.
| @@ -51,6 +51,7 @@ impl BluetoothRemoteGATTDescriptor { | |||
| } | |||
| } | |||
|
|
|||
| #[allow(non_snake_case)] | |||
| pub fn new( | |||
This comment has been minimized.
This comment has been minimized.
| @@ -738,6 +741,7 @@ pub fn entries_to_matrix(entries: &[f64]) -> Fallible<(bool, Transform3D<f64>)> | |||
| } | |||
|
|
|||
| // https://drafts.fxtf.org/geometry-1/#validate-and-fixup | |||
| #[allow(non_snake_case)] | |||
| pub fn dommatrixinit_to_matrix(dict: &DOMMatrixInit) -> Fallible<(bool, Transform3D<f64>)> { | |||
This comment has been minimized.
This comment has been minimized.
|
Oh, I think I misunderstood the purpose of this commit! Those comments are still worth having somewhere to look at later, but they're not necessarily for this pr in particular. |
|
I think I'll do it here itself. It shouldn't take much time at this stage. |
|
@bors-servo r+ |
|
|
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
|
|
|
@bors-servo retry |
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
kunalmohan commentedJan 17, 2020
Remove
#![allow(non_snake_case)]fromscript/lib.rsand add#[allow(non_snake_case)]at each instance of violation../mach build -ddoes not report any errors./mach test-tidydoes not report any errors