Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add .editorconfig file so great editors automatically adhere to ws styleguide #1721

Merged
merged 2 commits into from

3 participants

@johan
Collaborator

EditorConfig does not help with style guide enforcement,
or ditto cleanup, but it does help editors do the right thing.

@jerone

+1 Please include. Driving me crazy switching from tabs to spaces every time! Isn't that hard to merge.

@arantius arantius merged commit d80f468 into master
@arantius arantius deleted the editorconfig branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
15 .editorconfig
@@ -0,0 +1,15 @@
+; EditorConfig is awesome: http://EditorConfig.org
+
+root = true ; only heed rules in Greasemonkey tree
+
+[*]
+charset = utf-8
+tab_width = 8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[LICENSE.mpl]
+indent_size = 5
View
2  components/scriptProtocol.js
@@ -110,7 +110,7 @@ ScriptProtocol.prototype.newChannel = function(aUri) {
} else {
return new ScriptChannel(aUri, script);
}
-
+
// Default fall-through case, send a 404. (By using a script channel
// w/out any script object.)(
return new ScriptChannel(aUri);
View
3  content/third-party/mpl-utils.js
@@ -65,5 +65,4 @@ function GM_windowForTab(aTab, aBrowser) {
.docShell
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindow);
-
-}
+}
View
2  locale/fr/greasemonkey.properties
@@ -29,7 +29,7 @@ parse.resource-failed=Failed to get @resource %1 from %2
remotescript.name-unknown=RemoteScript.install(): Script base name unknown.
remotescript.not-downloaded=RemoteScript.install(): Script is not downloaded.
remotescript.unsafe-url=Will not download unsafe URL:\n%1
-return-not-in-func-deprecated=Attention : l'utilisation de return hors d'une fonction est obsolète et peut causer des défaillances dans les futures versions de Greasemonkey.
+return-not-in-func-deprecated=Attention : l'utilisation de return hors d'une fonction est obsolète et peut causer des défaillances dans les futures versions de Greasemonkey.
warning.scripts-should-grant=Attention : tous les scripts devraient préviser des métadonnées @grant.
warning.scripts-should-grant.read-docs=Lire la documentation
warning.scripts-should-grant.read-docs.key=R
Something went wrong with that request. Please try again.