aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/test_tidy.py
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #13447 - gterzian:check_webidls_folder_files, r=Wafflespeanutbors-servo2016-10-021-0/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have tidy ensure that the there are no extra files in the webidls folder #13427 <!-- Please describe your changes on the following line: --> Have tidy ensure that the there are no extra files in the webidls folder #13427 --- <!-- 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 #13427 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13447) <!-- Reviewable:end -->
| * tidy: checking directories for unexpected file extensionsGregory2016-10-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | update config, check_dir func to use config pass only_changed_files and exclude_dirs as args simplify config better conditional remove unused default, amend error message undo doc change
* | using word license in test name for consistencyMatt Schmoyer2016-10-011-1/+1
|/
* Issue #13350 Report tidy error for space after (Hugo Thiessard2016-09-231-0/+3
|
* Fix ordering `use` statements with bracesUK9922016-09-091-0/+1
|
* Tidy: Handle empty filesUK9922016-08-291-0/+5
|
* Check for license only in Cargo.tomlUK9922016-08-251-1/+1
|
* Some cleanups in tidyRavi Shankar2016-08-231-3/+3
|
* Check for errors in tidy config fileUK9922016-08-201-0/+7
|
* Check for blank line after shebang and grab actual comment block instead of ↵UK9922016-08-121-0/+5
| | | | hard-coded one
* Improve tidy's license validation logicedunham2016-08-121-0/+4
| | | | | | | | | | | fixes https://github.com/servo/servo/issues/10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes https://github.com/servo/servo/issues/10719 Includes tests for new functionality.
* Add lint for `[` instead of `[[` in shells scriptsAneesh Agrawal2016-08-051-0/+2
|
* Add lint to ensure substitutions use the full formAneesh Agrawal2016-08-051-0/+1
| | | | | Check that any variable substitutions use the full ${VAR} form, not just $VAR (but don't check for quoting yet).
* Add lint for backticks in shell scriptsAneesh Agrawal2016-08-051-0/+1
| | | | | | The "$(some_command arg1 arg2)" form is preferred to the `some_command arg1 arg2` form because it nests unambiguously. Add a lint for this to tidy.
* Auto merge of #12295 - jimberlage:12158/shell-linting, r=aneeshusabors-servo2016-08-041-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add linting for shell scripts <!-- Please describe your changes on the following line: --> This changes tidy to check shell scripts for the proper shebang and options. It does not check that variables are formatted correctly. It also adds a check for the MPL 2.0 license in shell scripts. --- <!-- 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 #12158 (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/12295) <!-- Reviewable:end -->
| * Add linting for shell scriptsJim Berlage2016-07-221-0/+6
| | | | | | | | | | | | This changes tidy to check shell scripts for the proper shebang and options. It does not check that variables are formatted correctly. It also adds a check for the MPL 2.0 license in shell scripts.
* | Auto merge of #12567 - servo:tidy-self-test-result, r=jdmbors-servo2016-07-241-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Return failure if the tidy self-tests fail. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12567) <!-- Reviewable:end -->
| * | Return failure if the tidy self-tests fail.Ms2ger2016-07-231-1/+1
| |/
* / Issue #12564: Fix "./mach test-tidy --self-test".Simon Martin2016-07-231-3/+4
|/
* [tidy] check for duplicate keys in .json filesOwen Coutts2016-07-081-0/+5
|
* [tidy] Add test for existing json functionalityOwen Coutts2016-07-071-0/+5
|
* Add style check, test, and code fixes for an else brace check.Travis Dean2016-07-041-0/+1
|
* Removed unused function and minor cleanupRavi Shankar2016-06-161-1/+1
|
* Auto merge of #11621 - h4xr:mach_fix, r=Wafflespeanutbors-servo2016-06-141-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | Make mach test-tidy consider ignored dirs Made changes so that mach test-tidy considers the ignored directories Fixes #11386 <!-- 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/11621) <!-- Reviewable:end -->
| * Make mach consider ignored dirsSaurabh Badhwar2016-06-151-0/+10
| | | | | | | | Address indentation changes
* | Auto merge of #11190 - mrmiywj:Root-tidy-checker, r=jdmbors-servo2016-06-051-0/+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-0/+1
| | | | | | | | | | | | update rust_tidy tests update rust_tidy.rs and test_tidy.py
* | Warn about empty lines following an open brace.Josh Matthews2016-05-271-0/+1
| |
* | 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/+2
|
* Adding parameter to tidy for skipping print text when running testsaskeing2016-04-261-10/+10
|
* Test for tidy.check_lock function #9152Maciej Skrzypkowski2016-04-251-0/+12
|
* Auto merge of #10786 - zwn:tidy-modelines, r=Manishearthbors-servo2016-04-221-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | tidy check for vim and emacs modelines See #10719. It skips *.webidl files for now since I am not sure where they come from and if they should be edited in tree or not. <!-- 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/10786) <!-- Reviewable:end -->
| * tidy check for vim and emacs modelines.Zbynek Winkler2016-04-211-0/+8
| | | | | | | | See https://github.com/servo/servo/issues/10719.
* | Report lines starting with &&.Zbynek Winkler2016-04-221-0/+1
| |
* | Ensure that we aren't missing any errors in the tidy self-test.Josh Matthews2016-04-201-0/+13
|/
* Modified test_spec_link of test_tidy for packaged tidyaskeing2016-04-171-3/+4
|
* Test for check_spec function, for tidy.py #9152Maciej Skrzypkowski2016-04-171-0/+5
|
* Modified the servo_tidy_tests for both "./mach" and "make test"askeing2016-04-141-1/+3
| | | | - fix `cd python/tidy; make test` fail issue
* Package tidyaskeing2016-04-141-0/+73
- Modified the testing commands - Added the requirements - Moved python/tidy/tests to python/tidy/servo_tidy_tests for self tidy tests