-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uses editorconfig to maintain consistent coding styles #6627
Conversation
My stats show more than 130 files shall be affected, you diff has only 42. stripCommentHeaders was not modified too. |
Lines 606 to 615 in d8ddde2
|
Actually not removed, but modified to fit new header format. |
Right, that should be done. It seems that the files in |
@yurydelendik Was it 131 files? 4 of them are from |
I think it was 132
|
@@ -1,5 +1,4 @@ | |||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |||
/* Copyright 2013 Mozilla Foundation | |||
/* Copyright 2014 Mozilla Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert changes of the year of copyright? It's hard to get it right and out of scope of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about this Reverting
It appears that this PR is still missing most of the files in https://github.com/mozilla/pdf.js/tree/master/extensions/firefox/content/. |
@@ -1,5 +1,4 @@ | |||
/** | |||
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla. | |||
/* Copyright 2014 Mozilla Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this change; and also the rest of the changes of Copyright year in the rest of this patch.
@@ -607,7 +605,6 @@ function stripCommentHeaders(content, filename) { | |||
// Strip out all the vim/license headers. | |||
var notEndOfComment = '(?:[^*]|\\*(?!/))+'; | |||
var reg = new RegExp( | |||
'\n/\\* -\\*- Mode' + notEndOfComment + '\\*/\\s*' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add '\n' to the next line, we want to not affect very first comment
also can you fix the comment above -- it does not reflect the purpose of the code below
Removes the following as they unnecessary /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
Hmm, grab-to-pan.js header is gone from viewer.js. @Rob--W is it okay or you prefer to keep it? We probably just need move copyright into main file header. |
@yurydelendik I don't mind either way. |
Added comment about that at #3775 (maybe @prometheansacrifice can look into that later :) Thank you for the patch. |
Uses editorconfig to maintain consistent coding styles
Fix for #6626