Showing 5,781 of 10,536 total issues
Function SlickCarousel
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SlickCarousel = () => {
return (
<Fragment>
<PageHeader
title="Slick Carousel"
Function Events
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Events = () => {
const { loading, data: events } = useFakeFetch(rawEvents);
return (
<Card>
Function getOption
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let getOption = () => {
return {
tooltip: {
trigger: 'axis',
axisPointer: {
Function worker
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(combined_equipment):
####################################################################################################################
# Step 1: get all output meters associated with the combined equipment
####################################################################################################################
print("Step 1: get all output meters associated with the combined equipment " + str(combined_equipment['name']))
Function EcommerceWidgets
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const EcommerceWidgets = () => {
const { products, shoppingCart, appliedPromo } = useContext(ProductContext);
const calculatedShippingCost = parseFloat(
shoppingCart
Function ModalLabelContent
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ModalLabelContent = () => {
return (
<>
{labels.slice(0, 3).map(label => {
return (
Function worker
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(shopfloor):
####################################################################################################################
# Step 1: get all input meters associated with the shopfloor
####################################################################################################################
print("Step 1: get all input meters associated with the shopfloor " + str(shopfloor['name']))
Function worker
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(shopfloor):
####################################################################################################################
# Step 1: get all input meters associated with the shopfloor
####################################################################################################################
print("Step 1: get all input meters associated with the shopfloor " + str(shopfloor['name']))
Function worker
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(combined_equipment):
####################################################################################################################
# Step 1: get all input meters associated with the combined equipment
####################################################################################################################
print("Step 1: get all input meters associated with the combined equipment " + str(combined_equipment['name']))
Function worker
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(combined_equipment):
####################################################################################################################
# Step 1: get all input meters associated with the combined equipment
####################################################################################################################
print("Step 1: get all input meters associated with the combined equipment " + str(combined_equipment['name']))
Function generate_excel
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def generate_excel(report,
name,
reporting_start_datetime_local,
reporting_end_datetime_local,
language):
Function on_post
has 37 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 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
admin_control(req)
try:
raw_json = req.stream.read().decode('utf-8')
Function on_put
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_put(req, resp, id_):
"""Handles PUT requests"""
admin_control(req)
if not id_.isdigit() or int(id_) <= 0:
Function on_post
has 37 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 37 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 37 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 createData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var createData = function(typeNumber, errorCorrectionLevel, dataList) {
var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel);
var buffer = qrBitBuffer();
Function PushStateLocationService
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var PushStateLocationService = /** @class */ (function (_super) {
__extends$2(PushStateLocationService, _super);
function PushStateLocationService(router) {
var _this = _super.call(this, router, true) || this;
_this._config = router.urlService.config;
Function link
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, elem, attrs) {
scope.knob = scope.$eval(attrs.knobData);
var renderKnob = function(){