teco-kit/p4a-sensorAPI

View on GitHub

Showing 239 of 308 total issues

Function Hilitor has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Hilitor(id, tag)
{

  var targetNode = document.getElementById(id) || document.body;
  var hiliteTag = tag || "EM";
Severity: Major
Found in examples/presentation/plugin/search/search.js - About 2 hrs to fix

    Function updateBackground has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function updateBackground( includeAll ) {
    
            var currentBackground = null;
    
            // Reverse past/future classes when in RTL mode
    Severity: Major
    Found in examples/presentation/js/reveal.js - About 2 hrs to fix

      Function add has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          add: function( elem, types, handler, data, selector ) {
      
              var handleObjIn, eventHandle, tmp,
                  events, t, handleObj,
                  special, handlers, type, namespaces, origType,
      Severity: Major
      Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

        Function matcherFromGroupMatchers has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
            var bySet = setMatchers.length > 0,
                byElement = elementMatchers.length > 0,
                superMatcher = function( seed, context, xml, results, outermost ) {
                    var elem, j, matcher,
        Severity: Major
        Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

          Function done has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function done( status, nativeStatusText, responses, headers ) {
                      var isSuccess, success, error, response, modified,
                          statusText = nativeStatusText;
          
                      // Called once
          Severity: Major
          Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

            Function setMatcher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
                if ( postFilter && !postFilter[ expando ] ) {
                    postFilter = setMatcher( postFilter );
                }
                if ( postFinder && !postFinder[ expando ] ) {
            Severity: Major
            Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

              Function RevealNotes has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var RevealNotes = (function() {
              
                  function openNotes() {
                      var jsFileLocation = document.querySelector('script[src$="notes.js"]').src;  // this js file path
                      jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, '');   // the js folder path
              Severity: Major
              Found in examples/presentation/plugin/notes/notes.js - About 2 hrs to fix

                Function evothings has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var evothings = (function(evothings)
                {
                    /* ------------------ Script loading ------------------ */
                
                    var scriptLoadingCounter = 0;
                Severity: Major
                Found in examples/blescan/libs/evothings/evothings.js - About 2 hrs to fix

                  Function configure has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function configure( options ) {
                  
                          var numberOfSlides = dom.wrapper.querySelectorAll( SLIDES_SELECTOR ).length;
                  
                          dom.wrapper.classList.remove( config.transition );
                  Severity: Major
                  Found in examples/presentation/js/reveal.js - About 2 hrs to fix

                    Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            superMatcher = function( seed, context, xml, results, outermost ) {
                                var elem, j, matcher,
                                    matchedCount = 0,
                                    i = "0",
                                    unmatched = seed && [],
                    Severity: Major
                    Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                      Function updateSlides has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function updateSlides( selector, index ) {
                      
                              // Select all slides and convert the NodeList result to
                              // an array
                              var slides = toArray( dom.wrapper.querySelectorAll( selector ) ),
                      Severity: Major
                      Found in examples/presentation/js/reveal.js - About 2 hrs to fix

                        Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                "CHILD": function( type, what, argument, first, last ) {
                                    var simple = type.slice( 0, 3 ) !== "nth",
                                        forward = type.slice( -4 ) !== "last",
                                        ofType = what === "of-type";
                        
                        
                        Severity: Major
                        Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                          Function Deferred has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Deferred: function( func ) {
                                  var tuples = [
                                          // action, add listener, listener list, final state
                                          [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                          [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                          Severity: Major
                          Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                            Function onDocumentKeyDown has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function onDocumentKeyDown( event ) {
                            
                                    // If there's a condition specified and it returns false,
                                    // ignore this event
                                    if( typeof config.keyboardCondition === 'function' && config.keyboardCondition() === false ) {
                            Severity: Major
                            Found in examples/presentation/js/reveal.js - About 2 hrs to fix

                              Function onDeviceAdded has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    browserDeviceMotion.onDeviceAdded = function(win, options) {
                              
                              
                                      // Build Services
                                      device.sensors = {};
                              Severity: Major
                              Found in examples/presentation/driver/deviceMotion2.js - About 2 hrs to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                        if ( forward && useCache ) {
                                                            // Seek `elem` from a previously-cached index
                                                            outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                            cache = outerCache[ type ] || [];
                                                            nodeIndex = cache[0] === dirruns && cache[1];
                                Severity: Critical
                                Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                                  Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      domManip: function( args, callback ) {
                                  
                                          // Flatten any nested arrays
                                          args = concat.apply( [], args );
                                  
                                  
                                  Severity: Major
                                  Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                                    Function onDeviceAdded has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          browserDeviceMotion.onDeviceAdded = function(win, options) {
                                    
                                    
                                            // Build Services
                                            device.sensors = {};
                                    Severity: Major
                                    Found in examples/presentation/driver/deviceMotion1.js - About 2 hrs to fix

                                      Function init has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          init = jQuery.fn.init = function( selector, context ) {
                                              var match, elem;
                                      
                                              // HANDLE: $(""), $(null), $(undefined), $(false)
                                              if ( !selector ) {
                                      Severity: Major
                                      Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix

                                        Function ajaxConvert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                            var conv2, current, conv, tmp, prev,
                                                converters = {},
                                                // Work with a copy of dataTypes in case we need to modify it for conversion
                                                dataTypes = s.dataTypes.slice();
                                        Severity: Major
                                        Found in examples/blescan/libs/jquery-2.1.1.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language