andela/codepirates-ah-backend

View on GitHub
src/models/article.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (sequelize, DataTypes) => {
  const Article = sequelize.define('Article', {
    slug: { type: DataTypes.STRING, allowNull: false },
    title: { type: DataTypes.STRING, allowNull: false },
    description: { type: DataTypes.TEXT, allowNull: false },
Severity: Minor
Found in src/models/article.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status