nelsonic/hits

View on GitHub
lib/db_filesystem.js

Summary

Maintainability
A
1 hr
Test Coverage

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

module.exports = function file_save_hit (hit, callback) {
  var h = hit.split('|'); // See README.md#How secton for sample data
  var url = h[1];
  var LOG_FILE = path.join(LOG_DIR, 
      url.split('/').join('_').replace(':', '') + '.log');
Severity: Minor
Found in lib/db_filesystem.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status