aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/rust_tidy.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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