src/search/SearchResultsView.js
Function _addPanelListeners
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SearchResultsView.prototype._addPanelListeners = function () {
var self = this;
this._panel.$panel
.off(".searchResults") // Remove the old events
.on("dblclick.searchResults", ".toolbar", function() {
File SearchResultsView.js
has 388 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
Function _render
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SearchResultsView.prototype._render = function () {
var searchItems, match, i, item, multiLine,
count = this._model.countFilesMatches(),
searchFiles = this._model.prioritizeOpenFile(this._initialFilePath),
lastIndex = this._getLastIndex(count.matches),
Function _showSummary
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SearchResultsView.prototype._showSummary = function () {
var count = this._model.countFilesMatches(),
lastIndex = this._getLastIndex(count.matches),
typeStr = (count.matches > 1) ? Strings.FIND_IN_FILES_MATCHES : Strings.FIND_IN_FILES_MATCH,
filesStr,
Function updateFileAndHeaderCheckboxes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateFileAndHeaderCheckboxes($clickedRow, isChecked) {
var $firstMatch = ($clickedRow.data("item-index") === 0) ? $clickedRow :
$clickedRow.prevUntil(".file-section").last(),
$fileRow = $firstMatch.prev(),
$siblingRows = $fileRow.nextUntil(".file-section"),