Showing 5,781 of 10,536 total issues

Function Popovers has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Popovers = () => {
  return (
    <Fragment>
      <PageHeader
        title="Popovers"
Severity: Minor
Found in myems-web/src/components/bootstrap-components/Popovers.js - About 1 hr to fix

    Function Tooltips has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const Tooltips = () => {
      return (
        <Fragment>
          <PageHeader
            title="Tooltips"
    Severity: Minor
    Found in myems-web/src/components/bootstrap-components/Tooltips.js - About 1 hr to fix

      Function handleSubmit has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const handleSubmit = e => {
          e.preventDefault();
          let isResponseOK = false;
          fetch(APIBaseURL + '/users/changepassword', {
            method: 'PUT',
      Severity: Minor
      Found in myems-web/src/components/MyEMS/auth/ChangePasswordForm.js - About 1 hr to fix

        Function badgeFormatter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const badgeFormatter = status => {
          let color = '';
          let icon = '';
          let text = '';
          switch (status) {
        Severity: Minor
        Found in myems-web/src/components/e-commerce/Orders.js - About 1 hr to fix

          Function statusFormatter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            const statusFormatter = status => {
              let color = '';
              let icon = '';
              let text = '';
              switch (status) {
          Severity: Minor
          Found in myems-web/src/components/MyEMS/Microgrid/MicrogridTable.js - About 1 hr to fix

            Function KanbanHeader has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const KanbanHeader = () => {
              return (
                <Row noGutters className="bg-100 rounded-soft px-card py-2 mt-2 mb-3 ">
                  <Col className="d-flex align-items-center">
                    <h5 className="mb-0">Falcon</h5>
            Severity: Minor
            Found in myems-web/src/components/kanban/KanbanHeader.js - About 1 hr to fix

              Function statusFormatter has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                const statusFormatter = status => {
                  let color = '';
                  let icon = '';
                  let text = '';
                  switch (status) {

                Function RecentPurchasesTable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                const RecentPurchasesTable = () => {
                  const [isSelected, setIsSelected] = useState(false);
                
                  return (
                    <Card className="mb-3">
                Severity: Minor
                Found in myems-web/src/components/widgets/RecentPuchasesTable.js - About 1 hr to fix

                  Function on_get has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      def on_get(req, resp):
                          access_control(req)
                          start_datetime_local = req.params.get('startdatetime')
                          end_datetime_local = req.params.get('enddatetime')
                          status = req.params.get('status')
                  Severity: Minor
                  Found in myems-api/core/webmessage.py - About 1 hr to fix

                    Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def on_post(req, resp):
                            """Handles POST requests"""
                            admin_control(req)
                            try:
                                raw_json = req.stream.read().decode('utf-8')
                    Severity: Minor
                    Found in myems-api/core/energystoragecontainer.py - About 1 hr to fix

                      Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def on_post(req, resp):
                              """Handles POST requests"""
                              admin_control(req)
                              try:
                                  upload = req.get_param('file')
                      Severity: Minor
                      Found in myems-api/core/emailmessage.py - About 1 hr to fix

                        Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            def on_post(req, resp):
                                """Handles POST requests"""
                                admin_control(req)
                                try:
                                    raw_json = req.stream.read().decode('utf-8')
                        Severity: Minor
                        Found in myems-api/core/rule.py - About 1 hr to fix

                          Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              def on_post(req, resp):
                                  """Handles POST requests"""
                                  admin_control(req)
                                  try:
                                      raw_json = req.stream.read().decode('utf-8')
                          Severity: Minor
                          Found in myems-api/core/rule.py - About 1 hr to fix

                            Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                def on_post(req, resp, id_):
                                    """Handles POST requests"""
                                    admin_control(req)
                                    try:
                                        raw_json = req.stream.read().decode('utf-8')
                            Severity: Minor
                            Found in myems-api/core/microgrid.py - About 1 hr to fix

                              Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  def on_post(req, resp, id_):
                                      """Handles POST requests"""
                                      admin_control(req)
                                      try:
                                          raw_json = req.stream.read().decode('utf-8')
                              Severity: Minor
                              Found in myems-api/core/microgrid.py - About 1 hr to fix

                                Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def on_post(req, resp, id_):
                                        """Handles POST requests"""
                                        admin_control(req)
                                        try:
                                            raw_json = req.stream.read().decode('utf-8')
                                Severity: Minor
                                Found in myems-api/core/microgrid.py - About 1 hr to fix

                                  Function on_delete has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      def on_delete(req, resp, id_):
                                          admin_control(req)
                                          if not id_.isdigit() or int(id_) <= 0:
                                              raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST',
                                                                     description='API.INVALID_MICROGRID_ID')
                                  Severity: Minor
                                  Found in myems-api/core/microgrid.py - About 1 hr to fix

                                    Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        def on_post(req, resp, id_):
                                            """Handles POST requests"""
                                            admin_control(req)
                                            try:
                                                raw_json = req.stream.read().decode('utf-8')
                                    Severity: Minor
                                    Found in myems-api/core/microgrid.py - About 1 hr to fix

                                      Function on_post has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          def on_post(req, resp):
                                              """Handles POST requests"""
                                              admin_control(req)
                                              try:
                                                  raw_json = req.stream.read().decode('utf-8')
                                      Severity: Minor
                                      Found in myems-api/core/shopfloor.py - About 1 hr to fix

                                        Function on_put has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            def on_put(req, resp, id_):
                                                """Handles POST requests"""
                                                admin_control(req)
                                        
                                                try:
                                        Severity: Minor
                                        Found in myems-api/core/user.py - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language