aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
Commit message (Collapse)AuthorAgeFilesLines
* Convert tidy to a non-egg Python packageMartin Robinson2023-06-151-85/+0
| | | | | | | | | | | It seems that servo-tidy is only used by webrender in my GitHub searches. WebRender could simply use `rustfmt` and the tidy on pypi hasn't been updated since 2018. Converting tidy to a normal Python package removes the maintenance burden of continually fixing the easy install configuration. Fixes #29094. Fixes #29334.
* Merge forbidden panic check into test-tidyMartin Robinson2023-03-221-0/+4
| | | | | | | | | This cleans up the GitHub actions yaml a bit and ensures that developers are running this check locally before submitting changes. In addition, it allows adding tests for this check. Finally, this change fixes the tidy tests by upgrading voluptuous for Python 3.10 as well as by reverting an inadvertent change for NixOS compatibility on one of the dummy testing files.
* Remove azure canvas backendDaniel Alley2020-02-251-4/+4
| | | | closes #25833
* Add lint check for `&DomRoot<T>`lberrymage2019-12-211-1/+1
| | | | | `&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
* Update MPL license to https (part 1)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* Automatically verify that derive() lists are alphabetically orderedClément DAVID2017-08-231-0/+1
|
* tidy: add extra space after keyword checkPavel Sergeev2017-07-201-0/+6
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-1/+1
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-1/+1
|
* Make tidy check that opening and closing braces that begin a line do so with ↵coalman2017-04-181-0/+9
| | | | proper alignment.
* added tidy check for -> ()lucantrop2017-03-131-1/+1
|
* Add 'use statements with extraneous spaces' tidy checkvwvww2017-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Add 'use statements with extraneous spaces' tidy check I added simple check routine for 'use statements with extraneous spaces' and codes that breaks the check routine in rust_tidy.rs. * Added a code that using 'use statements with extraneous spaces' code in rust_tidy.rs * Added assertion code in test_tidy.py. * check_rust function in tidy.py now recognizes the simple case in the 'use statements with extraneous spaces'. * Ran tidy check on rust code and modified a code(tests/unit/style/parsing/inherited_text.rs) that is not passing on this new tidy check. TODO: this code has to be refactored to support more general cases. - [X] ./mach test-tidy does not report any errors - [X] These changes fix #14898 (github issue number if applicable).
* Rust tidy: disallow assignment = in the beginning of lineJure Podgoršek2017-01-061-0/+3
|
* test-tidy: Check for space between function name and `(`Daan Sprenkels2016-10-311-1/+3
| | | | | | | | Disallow an extraneous space in a function call between the function name and the opening parenthesis in Rust code, while ignoring macro declarations. This commit fixes #13980.
* Issue #13350 Report tidy error for space after (Hugo Thiessard2016-09-231-0/+8
|
* Add style check, test, and code fixes for an else brace check.Travis Dean2016-07-041-0/+6
|
* Tidy test for ignoring attributesRavi Shankar2016-06-161-0/+1
|
* Auto merge of #11190 - mrmiywj:Root-tidy-checker, r=jdmbors-servo2016-06-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add &Root<T> checker 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 #11137 (github issue number if applicable). Either: - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11190) <!-- Reviewable:end -->
| * add &Root<T> checkermrmiywj2016-06-051-1/+1
| | | | | | | | | | | | update rust_tidy tests update rust_tidy.rs and test_tidy.py
* | Report use statements that use {} with only one entryCullen Rhodes2016-05-271-0/+1
|/
* add tidy test for 'missing space after :' in stuctsaeischeid2016-05-111-0/+4
|
* Report lines starting with &&.Zbynek Winkler2016-04-221-1/+4
|
* Package tidyaskeing2016-04-141-0/+37
- Modified the testing commands - Added the requirements - Moved python/tidy/tests to python/tidy/servo_tidy_tests for self tidy tests