Showing 1,485 of 3,294 total issues
Function fix
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fix: function( event ) {
if ( event[ jQuery.expando ] ) {
return event;
}
Function getProvidersForPath
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getProvidersForPath(filePath) {
var language = LanguageManager.getLanguageForPath(filePath).getId(),
context = PreferencesManager._buildContext(filePath, language),
installedProviders = getProvidersForLanguageId(language),
preferredProviders,
Function clone
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var i, l, srcElements, destElements,
clone = elem.cloneNode( true ),
inPage = jQuery.contains( elem.ownerDocument, elem );
Function addTextDelete
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var addTextDelete = function () {
var prev = prevNode();
if (prev && !prev.children) {
newEdit = {
type: "textReplace",
Function _getPrecedingPropValues
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _getPrecedingPropValues(ctx) {
var lastValue = "",
curValue,
propValues = [];
while (ctx.token.string !== ":" && TokenUtils.movePrevToken(ctx)) {
Function make
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function make () {
// don't do it more than once.
if (this._made) return
var pattern = this.pattern
Function propFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function propFilter( props, specialEasing ) {
var index, name, easing, value, hooks;
// camelCase, specialEasing and expand cssHook pass
for ( index in props ) {
Function updateVNode
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateVNode(node, ownerID, level, index, value, didAlter) {
var idx = (index >>> level) & MASK;
var nodeHas = node && idx < node.array.length;
if (!nodeHas && value === undefined) {
return node;
Function _applySingleChangeToRange
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
TextRange.prototype._applySingleChangeToRange = function (change) {
// console.log(this + " applying change to (" +
// (change.from && (change.from.line+","+change.from.ch)) + " - " +
// (change.to && (change.to.line+","+change.to.ch)) + ")");
Function prioritizeOpenFile
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prioritizeOpenFile(files, firstFile) {
var workingSetFiles = MainViewManager.getWorkingSet(MainViewManager.ALL_PANES),
workingSetFileFound = {},
fileSetWithoutWorkingSet = [],
startingWorkingFileSet = [],
Function setVisible
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setVisible(curEditor, visible) {
// short-circuit no-ops
if ((visible && curEditor === editor) || (!visible && !editor)) {
return;
}
Function setInspectionResults
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
LintingProvider.prototype.setInspectionResults = function (msgObj) {
let diagnostics = msgObj.diagnostics,
filePath = PathConverters.uriToPath(msgObj.uri),
errors = [];
Function close
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ModalBar.prototype.close = function (restoreScrollPos, animate, _reason) {
var result = new $.Deferred(),
self = this;
if (restoreScrollPos === undefined) {
Function download
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function download(url, downloadId) {
return _extensionManagerCall(function (extensionManager) {
var d = new $.Deferred();
// Validate URL
Function handleTimedOut
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleTimedOut(response) {
var detectedExclusions = PreferencesManager.get("jscodehints.detectedExclusions") || [],
filePath = response.file;
Function _readUserKeyMap
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _readUserKeyMap() {
var file = FileSystem.getFileForPath(_getUserKeyMapFilePath()),
result = new $.Deferred();
file.exists(function (err, doesExist) {
Function addBinding
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addBinding(command, keyBindings, platform) {
var commandID = "",
results;
if (!command) {
Function _removeRange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
MultiRangeInlineEditor.prototype._removeRange = function (range) {
// If this is the last range, just close the whole widget
if (this._ranges.length <= 1) {
this.close();
return; // note: the dispose() that would normally happen below is covered by close()
Function getFileInfo
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getFileInfo(session, preventPartialUpdates) {
var start = session.getCursor(),
end = start,
document = session.editor.document,
path = document.file.fullPath,
Function getTernHints
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTernHints(fileInfo, offset, isProperty) {
var request = buildRequest(fileInfo, "completions", offset),
i;
//_log("request " + dir + " " + file + " " + offset /*+ " " + text */);
try {