Repository navigation
Modify script to prevent further violations of snake_case - #25547
Conversation
|
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 :) |
| } | ||
|
|
||
| // https://w3c.github.io/webdriver/#dfn-center-point | ||
| #[allow(non_snake_case)] |
There was a problem hiding this comment.
This one can be fully snake-cased; the violations are just variable names.
| /// 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)] |
There was a problem hiding this comment.
I think this one can be fully snake cased; the only violation I see is the parameter name _mimeType.
|
|
||
| /// https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request | ||
| #[allow(non_snake_case)] | ||
| pub(crate) fn create_a_potential_CORS_request( |
There was a problem hiding this comment.
I think we usually leave "cors" lowercase, and can snake_case this
| } | ||
|
|
||
| #[allow(non_snake_case)] | ||
| fn is_HTTP_whitespace(byte: u8) -> bool { |
There was a problem hiding this comment.
http could be lowercase here
| } | ||
|
|
||
| #[allow(non_snake_case)] | ||
| pub fn new( |
There was a problem hiding this comment.
This can be snake-case, it's just the parameter instanceID
| } | ||
|
|
||
| #[allow(non_snake_case)] | ||
| pub fn new( |
There was a problem hiding this comment.
like the above comment, just the instanceID parameter
|
|
||
| // https://drafts.fxtf.org/geometry-1/#validate-and-fixup | ||
| #[allow(non_snake_case)] | ||
| pub fn dommatrixinit_to_matrix(dict: &DOMMatrixInit) -> Fallible<(bool, Transform3D<f64>)> { |
There was a problem hiding this comment.
I think this one's just the is2D local variable.
|
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+ |
|
📌 Commit f7db4b7 has been approved by |
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. -->
|
💔 Test failed - status-taskcluster |
|
@bors-servo retry |
|
💔 Test failed - status-taskcluster |
|
@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. -->
|
💔 Test failed - status-taskcluster |
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. -->
|
💔 Test failed - status-taskcluster |
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. -->
|
☀️ Test successful - status-taskcluster |
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