adobe/brackets

View on GitHub
src/search/FindBar.js

Summary

Maintainability
D
1 day
Test Coverage

Function open has 168 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    FindBar.prototype.open = function () {
        var self = this;

        // Normally, creating a new Find bar will simply cause the old one to close
        // automatically. This can cause timing issues because the focus change might
Severity: Major
Found in src/search/FindBar.js - About 6 hrs to fix

    File FindBar.js has 432 lines of code (exceeds 250 allowed). Consider refactoring.
    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"),
    Severity: Minor
    Found in src/search/FindBar.js - About 6 hrs to fix

      Function showSearchHints has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          FindBar.prototype.showSearchHints = function () {
              var self = this;
              var searchFieldInput = self.$("#find-what");
              this.searchField = new QuickSearchField(searchFieldInput, {
                  verticalAdjust: searchFieldInput.offset().top > 0 ? 0 : this._modalBar.getRoot().outerHeight(),
      Severity: Minor
      Found in src/search/FindBar.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status