Ch4s3/ink_stream

View on GitHub
app/javascript/components/annotation_form.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function render has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

  render() {
    const formStyle = {padding: '1rem', backgroundColor: '#4EB9FF'}
    const style = {
      color: '#00080C', maxWidth: '34rem',
      zIndex: 100, position: 'absolute',
Severity: Minor
Found in app/javascript/components/annotation_form.jsx - About 1 hr to fix

    Function postData has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      postData(e) {
        const _this = this;
        const request = new XMLHttpRequest();
        request.open('POST', '/annotations', true);
        request.setRequestHeader('Content-Type', 'application/json')
    Severity: Minor
    Found in app/javascript/components/annotation_form.jsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status