kkemple/highwire

View on GitHub

Showing 25 of 25 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('patch()', (nest) => {
nest.test('with valid response', (t) => {
t.plan(1)
 
nock('http://test.url')
Severity: Major
Found in src/index.test.js and 2 other locations - About 2 days to fix
src/index.test.js on lines 49..89
src/index.test.js on lines 133..173

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('post()', (nest) => {
nest.test('with valid response', (t) => {
t.plan(1)
 
nock('http://test.url')
Severity: Major
Found in src/index.test.js and 2 other locations - About 2 days to fix
src/index.test.js on lines 91..131
src/index.test.js on lines 133..173

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('put()', (nest) => {
nest.test('with valid response', (t) => {
t.plan(1)
 
nock('http://test.url')
Severity: Major
Found in src/index.test.js and 2 other locations - About 2 days to fix
src/index.test.js on lines 49..89
src/index.test.js on lines 91..131

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

test('del()', (nest) => {
nest.test('with valid response', (t) => {
t.plan(1)
 
nock('http://test.url')
Severity: Major
Found in src/index.test.js and 1 other location - About 1 day to fix
src/index.test.js on lines 7..47

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

test('get()', (nest) => {
nest.test('with valid response', (t) => {
t.plan(1)
 
nock('http://test.url')
Severity: Major
Found in src/index.test.js and 1 other location - About 1 day to fix
src/index.test.js on lines 175..215

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

function patch(url, data = {}, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
} = {}) {
Severity: Major
Found in src/index.js and 1 other location - About 5 hrs to fix
src/index.js on lines 75..91

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

function put(url, data = {}, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
} = {}) {
Severity: Major
Found in src/index.js and 1 other location - About 5 hrs to fix
src/index.js on lines 57..73

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

function get(url, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
} = {}) {
Severity: Major
Found in src/index.js and 1 other location - About 4 hrs to fix
src/index.js on lines 20..35

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

function del(url, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
} = {}) {
Severity: Major
Found in src/index.js and 1 other location - About 4 hrs to fix
src/index.js on lines 3..18

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

} = {}, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
progress: progress = () => {},
Severity: Minor
Found in src/index.js and 1 other location - About 45 mins to fix
src/index.js on lines 37..42

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

function post(url, data = {}, {
headers: headers = {},
query: query = {},
timeout: timeout = 0,
progress: progress = () => {},
Severity: Minor
Found in src/index.js and 1 other location - About 45 mins to fix
src/index.js on lines 96..101

Unexpected parentheses around single function argument having a body with no curly braces
Open

.then((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

attachments.forEach((attachment) => req.attach(...attachment))
Severity: Minor
Found in src/index.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

fields.forEach((field) => req.field(...field))
Severity: Minor
Found in src/index.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.catch((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.then((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.then((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.catch((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.catch((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint

Unexpected parentheses around single function argument having a body with no curly braces
Open

.then((err) => t.fail(err))
Severity: Minor
Found in src/index.test.js by eslint
Severity
Category
Status
Source
Language