Showing 3 of 3 total issues
Function getFunctionExpressionParts
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getFunctionExpressionParts = function (sourceCode) {
// "function (x){ return x.test; }"
var code = sourceCode.trim();
if (code.indexOf(FunctionToken) != 0)
throw Error("Expression is not a function. Code: \"" + sourceCode + "\".");
Function getFunctionExpressionParts
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getFunctionExpressionParts = (sourceCode: string) : ExpressionParts =>
{
// "function (x){ return x.test; }"
let code = sourceCode.trim();
Function exports
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'karma-typescript'],