michielbdejong/solid-panes

View on GitHub

Showing 243 of 327 total issues

Function transactionTable has 50 lines of code (exceeds 25 allowed). Consider refactoring.
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%;'
Severity: Minor
Found in src/transaction/pane.js - About 2 hrs to fix

    Function render has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function render () {
          subject = kb.canon(subject)
          if (!p || !p.parentNode || !p.parentNode.parentNode) return false
    
          var newTable
    Severity: Minor
    Found in src/outline/manager.js - About 1 hr to fix

      Function addNewPredicateObject has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      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)
      
      
      Severity: Minor
      Found in src/outline/userInput.js - About 1 hr to fix

        Function transactionTable has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              var transactionTable = function (dom, list) {
                var table = dom.createElement('table')
                table.setAttribute(
                  'style',
                  'margin-left: 100; font-size: 9pt; width: 85%;'
        Severity: Minor
        Found in src/transaction/period.js - About 1 hr to fix

          Function QuerySource has 48 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function QuerySource () {
            /**
             * stores all of the queries currently held by this source,
             * indexed by ID number.
             */
          Severity: Minor
          Found in src/outline/queryByExample.js - About 1 hr to fix

            Function literalModification has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                literalModification: function literalModification (selectedTd) {
                  UI.log.debug(
                    'entering literal Modification with ' +
                      selectedTd +
                      selectedTd.textContent
            Severity: Minor
            Found in src/outline/userInput.js - About 1 hr to fix

              Function setSelected has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              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') {
              Severity: Minor
              Found in src/outline/manager.js - About 1 hr to fix

                Function displayFormsForRelation has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        var displayFormsForRelation = function displayFormsForRelation (
                          pred,
                          allowCreation
                        ) {
                          var sts = kb.statementsMatching(subject, pred)
                Severity: Minor
                Found in src/ui/pane.js - About 1 hr to fix

                  Function expand has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  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=' +
                  Severity: Minor
                  Found in src/outline/manager.js - About 1 hr to fix

                    Function pasteFromClipboard has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                    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!')
                    Severity: Minor
                    Found in src/outline/userInput.js - About 1 hr to fix

                      Function propertyTree has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                      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
                      Severity: Minor
                      Found in src/dataContentPane.js - About 1 hr to fix

                        Function loadPadData has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            var loadPadData = function () {
                              // @@ TODO Remove casting of fetcher
                              ;(fetcher as any).nowOrWhenFetched(padDoc.uri, undefined, function (
                                ok: boolean,
                                body: string,
                        Severity: Minor
                        Found in src/pad/padPane.ts - About 1 hr to fix

                          Function label has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            label: function (subject, context) {
                              var kb = context.session.store
                              var ns = UI.ns
                          
                              //   See also the source pane, which has lower precedence.
                          Severity: Minor
                          Found in src/humanReadablePane.js - About 1 hr to fix

                            Function notificationsView has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Pane.prototype.notificationsView = function (s, doc) {
                                  var postNotificationContainer = doc.createElement('div')
                                  postNotificationContainer.id = 'postNotificationContainer'
                                  postNotificationContainer.className =
                                    'notification-container view-container'
                            Severity: Minor
                            Found in src/microblogPane/microblogPane.js - About 1 hr to fix

                              Function globalAppTabs has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                async function globalAppTabs (options = {}) {
                                  console.log('globalAppTabs @@')
                                  const div = dom.createElement('div')
                                  const me = UI.authn.currentUser()
                                  if (!me) {
                              Severity: Minor
                              Found in src/outline/manager.js - About 1 hr to fix

                                Function onDragStart has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  onDragStart: function (x, y, td) {
                                    /* seeAlso nsDragAndDrop.js::nsDragAndDrop.startDrag */
                                    // ToDo for myself: understand the connections in firefox, x, screenX
                                
                                    this.dragTarget = td
                                Severity: Minor
                                Found in src/outline/dragDrop.js - About 1 hr to fix

                                  Function doRender has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      async function doRender (
                                        container: HTMLElement,
                                        subject: NamedNode | null,
                                        dom: HTMLDocument
                                      ) {
                                  Severity: Minor
                                  Found in src/profile/profile.view.ts - About 1 hr to fix

                                    Function moveOn has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    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:
                                    Severity: Minor
                                    Found in src/audio/audioPane.js - About 1 hr to fix

                                      Function reallyDelete has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              var reallyDelete = function () {
                                                // callback after deletion
                                                var mbconfirmDeletePost = function (a, success) {
                                                  if (success) {
                                                    that.notify('Post deleted.')
                                      Severity: Minor
                                      Found in src/microblogPane/microblogPane.js - About 1 hr to fix

                                        Function setACL2 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        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
                                        Severity: Minor
                                        Found in src/schedule/schedulePane.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language