Showing 5,781 of 10,536 total issues
Function qrAlphaNum
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var qrAlphaNum = function(data) {
var _mode = QRMode.MODE_ALPHA_NUM;
var _data = data;
Function Queue
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Queue = /** @class */ (function () {
function Queue(_items, _limit) {
if (_items === void 0) { _items = []; }
if (_limit === void 0) { _limit = null; }
this._items = _items;
Function exec
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UrlMatcher.prototype.exec = function (path, search, hash, options) {
var _this = this;
if (search === void 0) { search = {}; }
var match = memoizeTo(this._cache, 'pattern', function () {
return new RegExp([
Function start
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function() {
if (runner) {
return runner;
}
Function _addFilesFromItems
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
value: function _addFilesFromItems(items) {
var _this5 = this;
return function () {
var result = [];
Function init
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.init = function () {
if (
this.v < this.o.min
|| this.v > this.o.max
Function transformOptions
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transformOptions(sourceOptions, start, end, timezone) {
var success = sourceOptions.success;
var data = $.extend({}, sourceOptions.data || {}, {
singleevents: true,
Function link
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attributes) {
var height, init, onDatasetChanged, onOptionsChanged, plot, plotArea, width, _ref, _ref1;
plot = null;
width = attributes.width || '100%';
height = attributes.height || '100%';
Function collapse
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.collapse = function(a) {
var d = b.getItemFromChildElem(document.activeElement);
b.expandList.length = [];
b.expandIndentList.length = [];
if (b.isItemExpanded(a)) {
Function editStore
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editStore = function(store) {
var modalInstance = $uibModal.open({
windowClass: "animated fadeIn",
templateUrl: 'views/settings/store/store.model.html',
controller: 'ModalEditStoreCtrl',
Function addStore
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.addStore = function() {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/store/store.model.html',
controller: 'ModalAddStoreCtrl',
windowClass: "animated fadeIn",
Function SettingsChangePassword
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SettingsChangePassword = () => {
const [oldPassword, setOldPassword] = useState('');
const [newPassword, setNewPassword] = useState('');
const [confirmPassword, setConfirmPassword] = useState('');
const [isDisabled, setIsDisabled] = useState(true);
Function LandingRightSideNavItem
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LandingRightSideNavItem = () => {
const [showRegistrationModal, setShowRegistrationModal] = useState(false);
return (
<Nav navbar className="ml-auto">
Function editMicrogridPowerconversionsystem
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.editMicrogridPowerconversionsystem = function(microgridpowerconversionsystem) {
var modalInstance = $uibModal.open({
templateUrl: 'views/settings/microgrid/microgridpowerconversionsystem.model.html',
controller: 'ModalEditMicrogridPowerconversionsystemCtrl',
windowClass: "animated fadeIn",
Function refreshInterval
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.refreshInterval = setInterval(() => {
let isResponseOK = false;
if (typeof this.props.distributionSystemID !== 'undefined') {
fetch(APIBaseURL + '/reports/distributionsystem?distributionsystemid=' + this.props.distributionSystemID, {
method: 'GET',
Function FalconPricingAlt
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const FalconPricingAlt = () => {
// State
const [isYearly, setIsYearly] = useState(true);
return (
Function worker
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def worker(virtual_meter):
cnx_energy_db = None
cursor_energy_db = None
try:
Function onSpaceCascaderChange
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let onSpaceCascaderChange = (value, selectedOptions) => {
setSelectedSpaceName(selectedOptions.map(o => o.label).join('/'));
setSelectedSpaceID(value[value.length - 1]);
let isResponseOK = false;
Function on_get
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp):
if 'API-KEY' not in req.headers or \
not isinstance(req.headers['API-KEY'], str) or \
len(str.strip(req.headers['API-KEY'])) == 0:
access_control(req)
Function on_get
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def on_get(req, resp):
if 'API-KEY' not in req.headers or \
not isinstance(req.headers['API-KEY'], str) or \
len(str.strip(req.headers['API-KEY'])) == 0:
access_control(req)