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 upeditor modelines should be a tidy error #10719
Closed
Labels
Comments
|
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. gets us set to fix servo#10719 by uncommenting a few lines Includes tests for new functionality.
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. gets us set to fix servo#10719 by uncommenting a few lines Includes tests for new functionality.
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
edunham
added a commit
to edunham/servo
that referenced
this issue
Apr 19, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
bors-servo
added a commit
that referenced
this issue
Apr 22, 2016
Remove some Emacs & Vim modelines This might be a bad idea, especially on the webidl side. However, we started talking about the idea that modelines are a lint error (#10719), and these changes would be required before enabling a modeline lint. If it bitrots, it's easy to recreate with ``` find * -type f -exec sed '/- Mode:/d' -i {} + find * -type f -exec sed '/ vim:/d' -i {} + git checkout -- python/tidy/servo_tidy/tidy.py git checkout -- python/tidy/servo_tidy_tests/spec.webidl git commit -a ``` <!-- 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/10723) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Apr 23, 2016
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 -->
bors-servo
added a commit
that referenced
this issue
Apr 23, 2016
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 -->
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 9, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 9, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality. Conflicts: python/tidy/servo_tidy/licenseck.py python/tidy/setup.py
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 9, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 9, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 9, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
UK992
added a commit
to UK992/servo
that referenced
this issue
Aug 12, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
samuknet
added a commit
to samuknet/servo
that referenced
this issue
Sep 6, 2016
fixes servo#10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes servo#10719 Includes tests for new functionality.
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this issue
Oct 1, 2019
…:modelines); r=Wafflespeanut This might be a bad idea, especially on the webidl side. However, we started talking about the idea that modelines are a lint error (servo/servo#10719), and these changes would be required before enabling a modeline lint. If it bitrots, it's easy to recreate with ``` find * -type f -exec sed '/- Mode:/d' -i {} + find * -type f -exec sed '/ vim:/d' -i {} + git checkout -- python/tidy/servo_tidy/tidy.py git checkout -- python/tidy/servo_tidy_tests/spec.webidl git commit -a ``` Source-Repo: https://github.com/servo/servo Source-Revision: dff217c2e3ff0b77eeebf62d36c2bf57c044cf14 UltraBlame original commit: afc9690e74e56a8b818fd238fe4e85bde0e75a65
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this issue
Oct 1, 2019
…:modelines); r=Wafflespeanut This might be a bad idea, especially on the webidl side. However, we started talking about the idea that modelines are a lint error (servo/servo#10719), and these changes would be required before enabling a modeline lint. If it bitrots, it's easy to recreate with ``` find * -type f -exec sed '/- Mode:/d' -i {} + find * -type f -exec sed '/ vim:/d' -i {} + git checkout -- python/tidy/servo_tidy/tidy.py git checkout -- python/tidy/servo_tidy_tests/spec.webidl git commit -a ``` Source-Repo: https://github.com/servo/servo Source-Revision: dff217c2e3ff0b77eeebf62d36c2bf57c044cf14 UltraBlame original commit: afc9690e74e56a8b818fd238fe4e85bde0e75a65
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this issue
Oct 1, 2019
…:modelines); r=Wafflespeanut This might be a bad idea, especially on the webidl side. However, we started talking about the idea that modelines are a lint error (servo/servo#10719), and these changes would be required before enabling a modeline lint. If it bitrots, it's easy to recreate with ``` find * -type f -exec sed '/- Mode:/d' -i {} + find * -type f -exec sed '/ vim:/d' -i {} + git checkout -- python/tidy/servo_tidy/tidy.py git checkout -- python/tidy/servo_tidy_tests/spec.webidl git commit -a ``` Source-Repo: https://github.com/servo/servo Source-Revision: dff217c2e3ff0b77eeebf62d36c2bf57c044cf14 UltraBlame original commit: afc9690e74e56a8b818fd238fe4e85bde0e75a65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Somewhere in https://github.com/servo/servo/blob/master/python/tidy/servo_tidy/tidy.py we should check for editor detritus like
see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables, http://vim.wikia.com/wiki/Modeline_magic , and take a look through servo for any other editors' leftovers to catch if they exist.
As of #10723, we actually want to keep the modelines in
/tests/wpt. Naive modeline checking is present but disabled in 93c3a6e; it needs to be extended to ignore checks within a specific directory just like other functions in the script.Note that the PR to fix this will need to include or follow removal of modelines from the rest of the project.