sahat/satellizer

View on GitHub

Showing 562 of 562 total issues

Avoid too many return statements within this function.
Open

                return true;
Severity: Major
Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return currentHistoryId ? currentHistoryId == 'root' : true;
    Severity: Major
    Found in examples/ionic/www/lib/ionic/js/ionic-angular.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return jsonify(token=token)
      Severity: Major
      Found in examples/server/python/app.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return 260;
        Severity: Major
        Found in examples/ionic/www/lib/ionic/js/ionic.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return 275;
          Severity: Major
          Found in examples/ionic/www/lib/ionic/js/ionic.js - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return response()->json(['token' => $this->createToken($user)]);
            Severity: Major
            Found in examples/server/php/app/Http/Controllers/AuthController.php - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return jsonify(token=token)
              Severity: Major
              Found in examples/server/python/app.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return transition;
                Severity: Major
                Found in examples/ionic/www/lib/ionic/js/angular-ui/angular-ui-router.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return jsonify(token=token)
                  Severity: Major
                  Found in examples/server/python/app.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return 206;
                    Severity: Major
                    Found in examples/ionic/www/lib/ionic/js/ionic.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return false;
                      Severity: Major
                      Found in examples/ionic/www/lib/satellizer/satellizer.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return jsonify(token=token)
                        Severity: Major
                        Found in examples/server/python/app.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return 216;
                          Severity: Major
                          Found in examples/ionic/www/lib/ionic/js/ionic.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return jsonify(token=token)
                            Severity: Major
                            Found in examples/server/python/app.py - About 30 mins to fix

                              Similar blocks of code found in 11 locations. Consider refactoring.
                              Open

                                      baseUrl: {
                                        get: function() { return config.baseUrl; },
                                        set: function(value) { config.baseUrl = value; }
                                      },
                              Severity: Major
                              Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 11 locations. Consider refactoring.
                              Open

                                      authToken: {
                                        get: function() { return config.authToken; },
                                        set: function(value) { config.authToken = value; }
                                      },
                              Severity: Major
                              Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 178..181
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Identical blocks of code found in 2 locations. Consider refactoring.
                              Open

                                         user.save(function(err) {
                                           var token = createJWT(user);
                                           res.send({ token: token });
                                         });
                              Severity: Minor
                              Found in examples/server/node/server.js and 1 other location - About 30 mins to fix
                              examples/server/node/server.js on lines 257..260

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 11 locations. Consider refactoring.
                              Open

                                      AuthProvider.prototype.facebook = function (options) {
                                          angular.extend(this.SatellizerConfig.providers.facebook, options);
                                      };
                              Severity: Major
                              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 257..259
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 11 locations. Consider refactoring.
                              Open

                                      AuthProvider.prototype.github = function (options) {
                                          angular.extend(this.SatellizerConfig.providers.github, options);
                                      };
                              Severity: Major
                              Found in examples/ionic/www/lib/satellizer/dist/satellizer.js and 10 other locations - About 30 mins to fix
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 251..253
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 254..256
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 260..262
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 263..265
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 266..268
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 269..271
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 272..274
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 275..277
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 278..280
                              examples/ionic/www/lib/satellizer/dist/satellizer.js on lines 281..283

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 11 locations. Consider refactoring.
                              Open

                                      tokenRoot: {
                                        get: function() { return config.tokenRoot; },
                                        set: function(value) { config.tokenRoot = value; }
                                      },
                              Severity: Major
                              Found in examples/ionic/www/lib/satellizer/satellizer.js and 10 other locations - About 30 mins to fix
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 166..169
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 170..173
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 174..177
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 182..185
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 186..189
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 190..193
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 194..197
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 198..201
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 202..205
                              examples/ionic/www/lib/satellizer/satellizer.js on lines 206..209

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 45.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Severity
                              Category
                              Status
                              Source
                              Language