-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Various Revisions #8
Conversation
}; | ||
}; | ||
|
||
describe('apm uninstall', function() { |
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.
Codacy has a fix for the issue: Replace 'apm·uninstall',·function
with "apm·uninstall",·function·
describe('apm uninstall', function() { | |
describe("apm uninstall", function () { |
spyOnToken(); | ||
atomHome = temp.mkdirSync('apm-home-dir-'); | ||
process.env.ATOM_HOME = atomHome; | ||
atomReposHome = temp.mkdirSync('apm-repos-home-dir-'); |
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.
Codacy has a fix for the issue: Replace 'apm-repos-home-dir-'
with "apm-repos-home-dir-"
atomReposHome = temp.mkdirSync('apm-repos-home-dir-'); | |
atomReposHome = temp.mkdirSync("apm-repos-home-dir-"); |
return function(error) { | ||
var templatePath; | ||
if (error != null) { | ||
return callback(error); |
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.
Codacy has a fix for the issue: Insert ··
return callback(error); | |
return callback(error); |
var currentDir; | ||
silenceOutput(); | ||
spyOnToken(); | ||
currentDir = temp.mkdirSync('apm-init-'); |
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.
Codacy has a fix for the issue: Replace 'apm-init-'
with "apm-init-"
currentDir = temp.mkdirSync('apm-init-'); | |
currentDir = temp.mkdirSync("apm-init-"); |
userconfig: config.getUserConfigPath(), | ||
globalconfig: config.getGlobalConfigPath() | ||
}; | ||
return npm.load(npmOptions, function() { |
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.
Codacy has a fix for the issue: Insert ·
return npm.load(npmOptions, function() { | |
return npm.load(npmOptions, function () { |
return expect(lines.join("\n")).not.toContain('.bin'); | ||
}); | ||
}); | ||
describe('enabling and disabling packages', function() { |
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.
Codacy has a fix for the issue: Replace 'enabling·and·disabling·packages',·function
with "enabling·and·disabling·packages",·function·
describe('enabling and disabling packages', function() { | |
describe("enabling and disabling packages", function () { |
app.get('/node/v10.20.1/node-v10.20.1.tar.gz', function(request, response) { | ||
return response.sendFile(path.join(__dirname, 'fixtures', 'node-v10.20.1.tar.gz')); | ||
}); | ||
app.get('/node/v10.20.1/node-v10.20.1-headers.tar.gz', function(request, response) { |
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.
Codacy has a fix for the issue: Replace '/node/v10.20.1/node-v10.20.1-headers.tar.gz',·function
with ⏎········"/node/v10.20.1/node-v10.20.1-headers.tar.gz",⏎········function·
app.get('/node/v10.20.1/node-v10.20.1-headers.tar.gz', function(request, response) { | |
app.get( |
}); | ||
server = http.createServer(app); | ||
live = false; | ||
server.listen(3000, '127.0.0.1', function() { |
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.
Codacy has a fix for the issue: Replace '127.0.0.1',·function
with "127.0.0.1",·function·
server.listen(3000, '127.0.0.1', function() { | |
server.listen(3000, "127.0.0.1", function () { |
return options.alias('d', 'dev').boolean('dev').describe('dev', 'Link to ~/.atom/dev/packages'); | ||
}; | ||
|
||
Link.prototype.run = function(options) { |
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.
Codacy has a fix for the issue: Insert ·
Link.prototype.run = function(options) { | |
Link.prototype.run = function (options) { |
return; | ||
} | ||
try { | ||
metadata = JSON.parse(fs.readFileSync(path.join(packageDirectory, 'package.json'))); |
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.
Codacy has a fix for the issue: Replace fs.readFileSync(path.join(packageDirectory,·'package.json'))
with ⏎··········fs.readFileSync(path.join(packageDirectory,·"package.json"))⏎········
metadata = JSON.parse(fs.readFileSync(path.join(packageDirectory, 'package.json'))); | |
metadata = JSON.parse( |
var configPath, ref, ref1, ref2; | ||
List.__super__.constructor.call(this); | ||
this.userPackagesDirectory = path.join(config.getAtomDirectory(), 'packages'); | ||
this.devPackagesDirectory = path.join(config.getAtomDirectory(), 'dev', 'packages'); |
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.
Codacy has a fix for the issue: Replace config.getAtomDirectory(),·'dev',·'packages'
with ⏎········config.getAtomDirectory(),⏎········"dev",⏎········"packages"⏎······
this.devPackagesDirectory = path.join(config.getAtomDirectory(), 'dev', 'packages'); | |
this.devPackagesDirectory = path.join( |
(function() { | ||
var apm, child_process, fs, path, temp; | ||
|
||
child_process = require('child_process'); |
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.
Codacy has a fix for the issue: Replace 'child_process'
with "child_process"
child_process = require('child_process'); | |
child_process = require("child_process"); |
|
||
_ = require('underscore-plus'); | ||
|
||
plist = require('@atom/plist'); |
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.
Codacy has a fix for the issue: Replace '@atom/plist'
with "@atom/plist"
plist = require('@atom/plist'); | |
plist = require("@atom/plist"); |
this.syntaxVariables = SyntaxVariablesTemplate; | ||
for (key in settings) { | ||
value = settings[key]; | ||
replaceRegex = new RegExp("\\{\\{" + key + "\\}\\}", 'g'); |
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.
Codacy has a fix for the issue: Replace 'g'
with "g"
replaceRegex = new RegExp("\\{\\{" + key + "\\}\\}", 'g'); | |
replaceRegex = new RegExp("\\{\\{" + key + "\\}\\}", "g"); |
return runs(function() { | ||
var config; | ||
expect(console.log).toHaveBeenCalled(); | ||
expect(console.log.argsForCall[0][0]).toMatch(/Not Disabled:\s*not-installed/); |
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.
Codacy has a fix for the issue: Replace /Not·Disabled:\s*not-installed/
with ⏎··········/Not·Disabled:\s*not-installed/⏎········
expect(console.log.argsForCall[0][0]).toMatch(/Not Disabled:\s*not-installed/); | |
expect(console.log.argsForCall[0][0]).toMatch( |
@@ -0,0 +1,311 @@ | |||
// Generated by CoffeeScript 1.12.7 | |||
(function() { |
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.
Codacy has a fix for the issue: Insert ·
(function() { | |
(function () { |
|
||
zlib = require('zlib'); | ||
|
||
_ = require('underscore-plus'); |
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.
Codacy has a fix for the issue: Replace 'underscore-plus'
with "underscore-plus"
_ = require('underscore-plus'); | |
_ = require("underscore-plus"); |
@@ -0,0 +1,127 @@ | |||
// Generated by CoffeeScript 1.12.7 | |||
(function() { |
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.
Codacy has a fix for the issue: Insert ·
(function() { | |
(function () { |
Just a brief comment, the Amin decided to pin a separate copy of node-gyp so it would always be hoisted to top-level. This was done over at the atom-community/apm repo. Thes copy won't actually be used in real-world usage, only the copy required by npm will actually be used, so I recommend keeping it the same version so it will dedupe with npm's dependency of node-gyp. If we really want newer node-gyp, in a more meaningful way, I have a branch over at atom-community/apm that bumps to npm 7, and here is a PR someone submitted to that repo to get ready for npm 8: atom-community/apm#123 |
This PR is far to out of date to even be considered from merging. But the efforts made within are still perfectly valid, and encouraged to be retake to anyone who has time. Eventually I myself would really like to take another shot at this, but doing so properly:
|
This PR covers several points of concern for the repo.
While this is still in progress the already completed/intended to be complete areas are:
var
are being replaced with the appropriatelet
orconst
express
4.17.1 => 4.18.1node-gyp
5.1.1 => 9.1.0Some things that should still be high priority to complete even if not present in this PR.
git-utils
to rely on our own fork. Although our fork doesn't seem to contain the tagged version referenced in our dependency. And downgrading to5.7.0
produces many errors, and will likely have to be revisited.jasmine-focused
, which relies on a specific commit ofkevinsawicki/jasmine-node
which itself is forked frommhevery/jasmine-node
meanwhilejasmine
supports node just fine at modern versions and could likely save us some headache of finding documentation. But unfortunately our current tests rely on some features that no longer or have never existed on normaljasmine
, so those will have to get significant rewrites to work.Otherwise this PR will remain a draft until work is done on properly decaffeinating and properly rewriting the Express code.
Feel free to add more here, especially around dependencies, as I'd like to get everything updated that we can without to many mysterious test failures, and switch over to all of our forks for dependencies as much as possible.