UNPKG

eslint-plugin-sonarjs

Version:
52 lines (51 loc) 2.14 kB
"use strict"; /* * SonarQube JavaScript Plugin * Copyright (C) 2011-2025 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the Sonar Source-Available License Version 1, as published by SonarSource SA. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the Sonar Source-Available License for more details. * * You should have received a copy of the Sonar Source-Available License * along with this program; if not, see https://sonarsource.com/license/ssal/ */ // https://sonarsource.github.io/rspec/#/rspec/S1515/javascript var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.requiredDependency = exports.languages = exports.scope = exports.sonarKey = exports.meta = void 0; __exportStar(require("./meta.js"), exports); exports.meta = { type: 'suggestion', docs: { description: 'Functions should not be defined inside loops', recommended: true, url: 'https://sonarsource.github.io/rspec/#/rspec/S1515/javascript', requiresTypeChecking: false, }, fixable: undefined, deprecated: false, defaultOptions: [], }; exports.sonarKey = 'S1515'; exports.scope = 'Main'; exports.languages = ['js', 'ts']; exports.requiredDependency = [];