Showing 742 of 2,674 total issues
Function ACTIONS.CALENDAR.IS_EVENT_RUNNING
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[ACTIONS.CALENDAR.IS_EVENT_RUNNING]: async (self, action, scope, columnIndex, rowIndex) => {
// find if one event match the condition
const events = await self.calendar.findCurrentlyRunningEvent(
action.calendars,
action.calendar_event_name_comparator,
Function updateUser
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async updateUser(state, e) {
e.preventDefault();
store.setState({
ProfilePatchStatus: RequestStatus.Getting
});
Function get
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function get(options) {
const optionsWithDefault = { ...DEFAULT_OPTIONS, ...options };
// add ability to get house
const includeExpand = [];
Function handleGoogleHomeMessage
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function handleGoogleHomeMessage(data, rawMessage, cb) {
const service = this.serviceManager.getService('google-actions');
try {
const body = {
...data.data,
Function login
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async login(state, e) {
if (e) {
e.preventDefault();
}
if (!validateEmail(state.gatewayLoginEmail)) {
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render({}, {}) {
return (
<div>
<p>
<Text id="editScene.triggersCard.mqttReceived.description" />
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render({ ipMask, disabled }) {
const { networkInterface, enabled, mask, name } = ipMask;
const editable = !networkInterface;
return (
<tr>
Function Gateway
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
variable,
event,
system,
sequelize,
config,
Function SceneManager
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
stateManager,
event,
device,
message,
variable,
Function exports
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (sequelize, DataTypes) => {
const pod = sequelize.define(
't_pod',
{
id: {
Function exports
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = (sequelize, DataTypes) => {
const deviceParam = sequelize.define(
't_device_param',
{
id: {
Function up
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable('t_device_param', {
id: {
allowNull: false,
primaryKey: true,
Function action.devices.commands.ColorAbsolute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'action.devices.commands.ColorAbsolute': (device, params) => {
const events = [];
const { color = {} } = params;
const { temperature, spectrumRGB } = color;
Function syncDeviceConverter
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function syncDeviceConverter(device) {
const endpoint = {
endpointId: device.selector,
friendlyName: device.name,
manufacturerName: 'Gladys Assistant',
Function disconnect
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function disconnect() {
let container;
// Stop backup reccurent job
if (this.backupScheduledJob) {
Function ACTIONS.LIGHT.BLINK
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[ACTIONS.LIGHT.BLINK]: async (self, action, scope) => {
const blinkingSpeed = action.blinking_speed;
const blinkingTime = action.blinking_time * 1000 + 1;
let blinkingInterval;
switch (blinkingSpeed) {
Function createActions
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createActions(store) {
const actions = {
async getUsersWithLocation(state) {
store.setState({
GetUsersWithlocationStatus: RequestStatus.Getting
Function getZigbee2mqttDevices
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async getZigbee2mqttDevices(state, take, skip) {
store.setState({
getZigbee2mqttStatus: RequestStatus.Getting
});
try {
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render({}, { deviceStateHistoryInDays }) {
return (
<div class="card">
<h4 class="card-header">
<Text id="systemSettings.deviceStateRetentionTime" />
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render(props, { saving, error, variables, scene, triggersVariables, tags }) {
return (
scene && (
<div>
<DndProvider backend={this.isTouchDevice ? TouchBackend : HTML5Backend}>