mysociety/popit-api

View on GitHub
src/routes/export.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

module.exports = function(app) {
  // Export all languages - can potentially produce invalid popolo
  app.get('/export.json', function(req, res, next) {
    exporter(req.db, req, function(err, exportObject) {
      if (err) {
Severity: Major
Found in src/routes/export.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status