Showing 243 of 327 total issues
Function transactionTable
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var transactionTable = function (dom, list, filter) {
var table = dom.createElement('table')
table.setAttribute(
'style',
'padding-left: 0.5em; padding-right: 0.5em; font-size: 9pt; width: 85%;'
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render () {
subject = kb.canon(subject)
if (!p || !p.parentNode || !p.parentNode.parentNode) return false
var newTable
Function addNewPredicateObject
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addNewPredicateObject: function addNewPredicateObject (e) {
if (UI.utils.getTarget(e).className !== 'bottom-border-active') return
var This = outline.UserInput
var target = UI.utils.getTarget(e)
Function transactionTable
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var transactionTable = function (dom, list) {
var table = dom.createElement('table')
table.setAttribute(
'style',
'margin-left: 100; font-size: 9pt; width: 85%;'
Function QuerySource
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function QuerySource () {
/**
* stores all of the queries currently held by this source,
* indexed by ID number.
*/
Function literalModification
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
literalModification: function literalModification (selectedTd) {
UI.log.debug(
'entering literal Modification with ' +
selectedTd +
selectedTd.textContent
Function setSelected
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setSelected (node, newValue) {
// UI.log.info('selection has ' +selection.map(function(item){return item.textContent;}).join(', '));
// UI.log.debug('@outline setSelected, intended to '+(newValue?'select ':'deselect ')+node+node.textContent);
// if (newValue === selected(node)) return; //we might not need this anymore...
if (node.nodeName !== 'TD') {
Function displayFormsForRelation
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var displayFormsForRelation = function displayFormsForRelation (
pred,
allowCreation
) {
var sts = kb.statementsMatching(subject, pred)
Function expand
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function expand (uri) {
if (arguments[3]) return true // already fetched indicator
var cursubj = kb.canon(subject) // canonical identifier may have changed
UI.log.info(
'@@ expand: relevant subject=' +
Function pasteFromClipboard
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pasteFromClipboard: function pasteFromClipboard (address, selectedTd) {
function termFrom (fromCode) {
var term = outline.clipboard[fromCode].shift()
if (term === null) {
UI.log.warn('no more element in clipboard!')
Function propertyTree
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function propertyTree (subject) {
// print('Proprty tree for '+subject)
var rep = myDocument.createElement('table')
var lastPred = null
var sts = subjects[sz.toStr(subject)] // relevant statements
Function loadPadData
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadPadData = function () {
// @@ TODO Remove casting of fetcher
;(fetcher as any).nowOrWhenFetched(padDoc.uri, undefined, function (
ok: boolean,
body: string,
Function label
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
label: function (subject, context) {
var kb = context.session.store
var ns = UI.ns
// See also the source pane, which has lower precedence.
Function notificationsView
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Pane.prototype.notificationsView = function (s, doc) {
var postNotificationContainer = doc.createElement('div')
postNotificationContainer.id = 'postNotificationContainer'
postNotificationContainer.className =
'notification-container view-container'
Function globalAppTabs
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function globalAppTabs (options = {}) {
console.log('globalAppTabs @@')
const div = dom.createElement('div')
const me = UI.authn.currentUser()
if (!me) {
Function onDragStart
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onDragStart: function (x, y, td) {
/* seeAlso nsDragAndDrop.js::nsDragAndDrop.startDrag */
// ToDo for myself: understand the connections in firefox, x, screenX
this.dragTarget = td
Function doRender
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function doRender (
container: HTMLElement,
subject: NamedNode | null,
dom: HTMLDocument
) {
Function moveOn
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var moveOn = function (current, level) {
return new Promise(function (resolve) {
level = level || 0
if (!options.chain) return resolve(null)
// Ideally navigate graph else cheat with URI munging:
Function reallyDelete
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var reallyDelete = function () {
// callback after deletion
var mbconfirmDeletePost = function (a, success) {
if (success) {
that.notify('Post deleted.')
Function setACL2
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var setACL2 = function setACL2 (docURI, allWrite, callbackFunction) {
var aclDoc = kb.any(
kb.sym(docURI),
kb.sym('http://www.iana.org/assignments/link-relations/acl')
) // @@ check that this get set by web.js