client/src/actions/Article/ArticleActions.js
Function articleCreate
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function articleCreate(article_group_id, urls = [], group_order_start = 0) {
// Validate urls
let validationError;
if (urls.length === 0) {
validationError = 'Please provide at least one url to analyze.';
Function articleUpdate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function articleUpdate(id, title, url, published, source, summary, group_order_shift) {
let validateError;
if (!validateUrl(url, true)) {
validateError = `Invalid Url Format: ${url}`;
} else if (!validateString(title, 0, 255, true)) {
Function articleUpdate
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function articleUpdate(id, title, url, published, source, summary, group_order_shift) {