Showing 22 of 111 total issues
File controller.js
has 393 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Copyright (C) 2015 Laverna project Authors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Function exports
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(gulp, plugins) {
return function() {
var options = {base: './app/bower_components/'};
return merge.apply(merge, [
Function exports
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(gulp, plugins) {
return function() {
return gulp.src('./app/scripts/main.js')
// Require.js optimizer
.pipe(plugins.requirejsOptimize({
Function exports
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(gulp, plug, pkg) {
/**
* Use livereload server when debugging.
*/
File configs.js
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Copyright (C) 2015 Laverna project Authors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Function initEditor
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEditor: function() {
this.editor = CodeMirror.fromTextArea(document.getElementById('editor--input'), {
mode : {
name : 'gfm',
gitHubSpice : false
Function exports
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(gulp, plugins, pkg) {
return function() {
var platforms = [
'darwin-x64',
// 'linux-arm',
Function configure
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
configure: function() {
this.md
.use(sanitizer)
.use(imsize)
.use(math, {
Function checkChanges
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkChanges: function() {
var promises = [],
self = this;
this.configs.statRemote = false;
Function initEncrypt
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEncrypt: function() {
var promises = [],
profile = (this.profiles.length === 1 ? this.profiles[0] : 'notes-db'),
self = this;
Function show
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function(note, notebooks) {
var notebooksView;
note = note[0];
// Set document title
Function saveForageItem
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveForageItem: function(storeName, db, data) {
var defer = Q.defer();
// Convert data
if (!_.isUndefined(data.notebookId)) {
Function onScroll
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onScroll: _.debounce(function(e) {
// Don't do any computations
if (!e.doc.scrollTop) {
this.view.ui.previewScroll.scrollTop(0);
Function bind
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bind: function() {
var self = this;
// Help
Mousetrap.bind(this.configs.appKeyboardHelp, function(e) {
Function toggleBlock
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleBlock: function(type) {
var stat = this.getState(),
start = this.editor.getCursor('start'),
end = this.editor.getCursor('end'),
text,
Function getModel
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getModel: function(options) {
var Model = (this.changeDatabase(options)).prototype.model,
idAttr = Model.prototype.idAttribute,
data = {},
model;
Function onFsChange
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onFsChange: function(data) {
return Radio.request(data.storeName, 'get:model', {
id: data.data.id
})
Function createWindow
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createWindow: function() {
// Recover window state (width, height, and x&y position)
this.state = windowStateKeeper('main', {
width : 1000,
Function addToZip
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
addToZip: function(profile, notes, notebooks, tags, configs) {
Function _getArgs
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_getArgs: function(profile, filter, query, page, id) {