scripts/apps/search/directives/SearchContainer.ts
Function SearchContainer
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function SearchContainer() {
const FILTERS_PANEL_PREFERENCES_KEY = 'search:filters_panel_open';
var filtersPanelPreferences = {
[FILTERS_PANEL_PREFERENCES_KEY]: {
'type': 'bool',
Function SearchContainerController
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SearchContainerController($scope, $location, pageTitle, preferencesService) {
const query = omit($location.search(), '_id', 'repo');
this.flags = $scope.flags || {};
this.flags.facets = !isEmpty(query);