Bug 1372427 - add "dot-location" rule so that dots are on the same line as properties. r=MattN

MozReview-Commit-ID: A6IKfSiVXAN

--HG--
extra : rebase_source : 63be6025fee7a141e3169e2dffd7321e697edcc0
This commit is contained in:
Jonathan Guillotte-Blouin 2017-06-13 16:34:54 -07:00
Родитель 47c81bbc84
Коммит f4d5635b00
7 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -40,5 +40,6 @@ module.exports = {
complexity: ["error", {
max: 20,
}],
"dot-location": ["error", "property"],
},
};

Просмотреть файл

@ -130,13 +130,13 @@ function log(aMessage) {
function sendNotification(aType, aData) {
if (typeof aData == "string") {
let strWrapper = Cc["@mozilla.org/supports-string;1"].
createInstance(Ci.nsISupportsString);
let strWrapper = Cc["@mozilla.org/supports-string;1"]
.createInstance(Ci.nsISupportsString);
strWrapper.data = aData;
aData = strWrapper;
} else if (typeof aData == "number") {
let intWrapper = Cc["@mozilla.org/supports-PRInt64;1"].
createInstance(Ci.nsISupportsPRInt64);
let intWrapper = Cc["@mozilla.org/supports-PRInt64;1"]
.createInstance(Ci.nsISupportsPRInt64);
intWrapper.data = aData;
aData = intWrapper;
} else if (aData) {

Просмотреть файл

@ -58,8 +58,8 @@ FormHistoryStartup.prototype = {
Services.ppmm.loadProcessScript("chrome://satchel/content/formSubmitListener.js", true);
Services.ppmm.addMessageListener("FormHistory:FormSubmitEntries", this);
let messageManager = Cc["@mozilla.org/globalmessagemanager;1"].
getService(Ci.nsIMessageListenerManager);
let messageManager = Cc["@mozilla.org/globalmessagemanager;1"]
.getService(Ci.nsIMessageListenerManager);
// For each of these messages, we could receive them from content,
// or we might receive them from the ppmm if the searchbar is
// having its history queried.

Просмотреть файл

@ -8,9 +8,9 @@ Cu.import("resource://gre/modules/FormHistory.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://testing-common/ContentTaskUtils.jsm");
var gAutocompletePopup = Services.ww.activeWindow.
document.
getElementById("PopupAutoComplete");
var gAutocompletePopup = Services.ww.activeWindow
.document
.getElementById("PopupAutoComplete");
assert.ok(gAutocompletePopup, "Got autocomplete popup");
var ParentUtils = {

Просмотреть файл

@ -17,13 +17,13 @@ var dirSvc = Cc["@mozilla.org/file/directory_service;1"]
// Send the profile-after-change notification to the form history component to ensure
// that it has been initialized.
var formHistoryStartup = Cc["@mozilla.org/satchel/form-history-startup;1"].
getService(Ci.nsIObserver);
var formHistoryStartup = Cc["@mozilla.org/satchel/form-history-startup;1"]
.getService(Ci.nsIObserver);
formHistoryStartup.observe(null, "profile-after-change", null);
function getDBVersion(dbfile) {
var ss = Cc["@mozilla.org/storage/service;1"].
getService(Ci.mozIStorageService);
var ss = Cc["@mozilla.org/storage/service;1"]
.getService(Ci.mozIStorageService);
var dbConnection = ss.openDatabase(dbfile);
var version = dbConnection.schemaVersion;
dbConnection.close();

Просмотреть файл

@ -63,8 +63,7 @@ function* run_test_steps() {
});
// Add the observer
var os = Cc["@mozilla.org/observer-service;1"].
getService(Ci.nsIObserverService);
var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);
os.addObserver(TestObserver, "satchel-storage-changed");
/* ========== 2 ========== */

Просмотреть файл

@ -18,7 +18,7 @@ var aaListener = {
function run_test() {
do_test_pending();
let search = Cc["@mozilla.org/autocomplete/search;1?name=form-history"].
getService(Ci.nsIAutoCompleteSearch);
let search = Cc["@mozilla.org/autocomplete/search;1?name=form-history"]
.getService(Ci.nsIAutoCompleteSearch);
search.startSearch("aa", "", null, aaListener);
}