JaxsonWang/WP-Editor.MD

View on GitHub
assets/CodeMirror/addon/lint/html-lint.js

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Identical blocks of code found in 2 locations. Consider refactoring.
Open

found.push({
from: CodeMirror.Pos(startLine, startCol),
to: CodeMirror.Pos(endLine, endCol),
message: message.message,
severity : message.type
Severity: Major
Found in assets/CodeMirror/addon/lint/html-lint.js and 1 other location - About 1 hr to fix
assets/CodeMirror/addon/lint/css-lint.js on lines 30..35

Identical blocks of code found in 2 locations. Consider refactoring.
Open

var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col;
Severity: Minor
Found in assets/CodeMirror/addon/lint/html-lint.js and 1 other location - About 45 mins to fix
assets/CodeMirror/addon/lint/css-lint.js on lines 29..29

There are no issues that match your filters.

Category
Status