Showing 5,781 of 10,536 total issues
Function Popovers
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Popovers = () => {
return (
<Fragment>
<PageHeader
title="Popovers"
Function Tooltips
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Tooltips = () => {
return (
<Fragment>
<PageHeader
title="Tooltips"
Function handleSubmit
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = e => {
e.preventDefault();
let isResponseOK = false;
fetch(APIBaseURL + '/users/changepassword', {
method: 'PUT',
Function badgeFormatter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const badgeFormatter = status => {
let color = '';
let icon = '';
let text = '';
switch (status) {
Function statusFormatter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const statusFormatter = status => {
let color = '';
let icon = '';
let text = '';
switch (status) {
Function KanbanHeader
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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>
Function statusFormatter
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
const RecentPurchasesTable = () => {
const [isSelected, setIsSelected] = useState(false);
return (
<Card className="mb-3">
Function on_get
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
upload = req.get_param('file')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_delete
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_post
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_post(req, resp):
"""Handles POST requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_put
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles POST requests"""
admin_control(req)
try: