michielbdejong/solid-ui

View on GitHub

Showing 270 of 337 total issues

Function loadController has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function loadController (
  doc: NamedNode,
  kb: IndexedFormula,
  subject: NamedNode,
  noun: string,
Severity: Minor
Found in src/acl/acl-control.ts - About 1 hr to fix

    Function makeACLGraphbyCombo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function makeACLGraphbyCombo (
      kb: $rdf.IndexedFormula,
      x: $rdf.NamedNode,
      byCombo: ComboList,
      aclDoc: $rdf.NamedNode,
    Severity: Minor
    Found in src/acl/acl.ts - About 1 hr to fix

      Function readACL has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function readACL (
        x: $rdf.NamedNode,
        aclDoc: $rdf.NamedNode,
        kb2: $rdf.IndexedFormula = kb,
        getDefaults?: boolean
      Severity: Minor
      Found in src/acl/acl.ts - About 1 hr to fix

        Function tryReload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var tryReload = function () {
              console.log('try reload - timeout = ' + retryTimeout)
              updater.reload(updater.store, padDoc, function (ok, message, xhr) {
                reloading = false
                if (ok) {
        Severity: Minor
        Found in src/pad.js - About 1 hr to fix

          Function turnOnInput has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var turnOnInput = function () {
                creatorAndDate(lhs, me, '', null)
          
                field = dom.createElement('textarea')
                middle.innerHTML = ''
          Severity: Minor
          Found in src/chat/thread.js - About 1 hr to fix

            Function cameraOLD has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            UI.media.cameraOLD = function (context, _gotBlob) {
              function takeSnapshot () {
                var dom = context.dom
                var img = dom.createElement('img')
                var ctx
            Severity: Minor
            Found in src/media-capture.js - About 1 hr to fix

              Function insertPreviousMessages has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                async function insertPreviousMessages (backwards) {
                  const extremity = backwards ? earliest : latest
                  let date = extremity.messageTable.date // day in mssecs
              
                  date = await dateFolder.loadPrevious(date, backwards) // backwards
              Severity: Minor
              Found in src/chat/infinite.js - About 1 hr to fix

                Function turnOnInput has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var turnOnInput = function () {
                      creatorAndDate(lhs, me, '', null)
                
                      field = dom.createElement('textarea')
                      middle.innerHTML = ''
                Severity: Minor
                Found in src/messageArea.js - About 1 hr to fix

                  Function applyColumnSort has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function applyColumnSort (rows, column, sortFunction, reverse) {
                      var columnKey = column.getKey()
                  
                      // Sort the rows array.
                      rows.sort(function (row1, row2) {
                  Severity: Minor
                  Found in src/table.js - About 1 hr to fix

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

                      public render (): HTMLElement {
                        this.rootElement.innerHTML = ''
                        if (this.isUsingDefaults) {
                          this.renderStatus(`The sharing for this ${this.noun} is the default for folder `)
                          if (this.defaultHolder) {
                    Severity: Minor
                    Found in src/acl/access-controller.ts - About 1 hr to fix

                      Function editFormButton has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      forms.editFormButton = function (
                        dom,
                        container,
                        form,
                        store,
                      Severity: Minor
                      Found in src/widgets/forms.js - About 1 hr to fix

                        Function _trySetImage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        buttons._trySetImage = function _trySetImage (element, thing, iconForClassMap) {
                          const kb = UI.store
                        
                          const explitImage = buttons.findImage(thing)
                          if (explitImage) {
                        Severity: Minor
                        Found in src/widgets/buttons.js - About 1 hr to fix

                          Function updateMany has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                function updateMany (ds, is, callback) {
                                  var docs = []
                                  is.forEach(st => {
                                    if (!docs.includes(st.why.uri)) docs.push(st.why.uri)
                                  })
                          Severity: Minor
                          Found in src/widgets/forms.js - About 1 hr to fix

                            Function propertiesForClass has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            forms.propertiesForClass = function (kb, c) {
                              var ns = UI.ns
                              var explicit = kb.each(undefined, ns.rdf('range'), c)
                              ;[
                                ns.rdfs('comment'),
                            Severity: Minor
                            Found in src/widgets/forms.js - About 1 hr to fix

                              Function deleteThisItem has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  async function deleteThisItem () {
                                    if (ordered) {
                                      console.log('pre delete: ' + debugString(list.elements))
                                      for (let i = 0; i < list.elements.length; i++) {
                                        if (list.elements[i].sameTerm(object)) {
                              Severity: Minor
                              Found in src/widgets/forms.js - About 1 hr to fix

                                Function buildCheckboxForm has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function buildCheckboxForm (dom, kb, lab, del, ins, form, store, tristate) {
                                Severity: Major
                                Found in src/widgets/forms.js - About 1 hr to fix

                                  Function booleanField has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                    dom,
                                    container,
                                    already,
                                    subject,
                                    form,
                                  Severity: Major
                                  Found in src/widgets/forms.js - About 1 hr to fix

                                    Function newButton has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                      dom,
                                      kb,
                                      subject,
                                      predicate,
                                      theClass,
                                    Severity: Major
                                    Found in src/widgets/forms.js - About 1 hr to fix

                                      Function makeSelectForOptions has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        dom,
                                        kb,
                                        subject,
                                        predicate,
                                        possible,
                                      Severity: Major
                                      Found in src/widgets/forms.js - About 1 hr to fix

                                        Function promptForNew has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                          dom,
                                          kb,
                                          subject,
                                          predicate,
                                          theClass,
                                        Severity: Major
                                        Found in src/widgets/forms.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language