Code Monkey home page Code Monkey logo

nbpapi's People

Contributors

matbur avatar pjaskulski avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

matbur

nbpapi's Issues

SonarQube issues

  1. table_test.go:
  • Define a constant instead of duplicating this literal "/tables/A/" 13 times.
  • Define a constant instead of duplicating this literal "expected: err == nil, received: err != nil" 7 times.
  • Define a constant instead of duplicating this literal "incorrect json content was received" 7 times.
  • Define a constant instead of duplicating this literal "invalid table type, expected: %s, received: %s" 4 times.
  • Define a constant instead of duplicating this literal "2006-01-02" 5 times.
  • Define a constant instead of duplicating this literal "/tables/A/today/" 7 times.
  • Define a constant instead of duplicating this literal "want %s, got %s" 5 times.
  • Define a constant instead of duplicating this literal "/tables/C/" 10 times.
  • Define a constant instead of duplicating this literal "/tables/C/2020-12-07/" 4 times.
  • Define a constant instead of duplicating this literal "want err == nil, got err != nil" 3 times.
  • Define a constant instead of duplicating this literal "want: err == nil, got err != nil" 6 times.
  • Define a constant instead of duplicating this literal "want: err != nil, got err == nil" 8 times.
  • Define a constant instead of duplicating this literal "/tables/C/today/" 5 times.
  • Define a constant instead of duplicating this literal "incorrect pretty output" 4 times.

helpers_test.go:

  • Define a constant instead of duplicating this literal "randomInteger returned value outside expected range" 3 times.

gold_test.go
Define a constant instead of duplicating this literal "expected: err == nil, received: err != nil" 9 times.
Define a constant instead of duplicating this literal "incorrect json content was received" 5 times.
Define a constant instead of duplicating this literal "2006-01-02" 3 times.
Define a constant instead of duplicating this literal "/today" 6 times.
line 294: if !(result[0].Price > 0) { - Use the opposite operator ("<=") instead.Why is this an issue?
Define a constant instead of duplicating this literal "want %s, got %s" 10 times.

currency_test.go
Define a constant instead of duplicating this literal "expected: err == nil, received: err != nil" 7 times.
Define a constant instead of duplicating this literal "expected: err != nil, received: err == nil" 4 times.
Define a constant instead of duplicating this literal "2020-11-13" 3 times.Why
Define a constant instead of duplicating this literal "incorrect json content was received" 3 times.
Define a constant instead of duplicating this literal "/rates/" 12 times.
Define a constant instead of duplicating this literal "/last/" 3 times.
Define a constant instead of duplicating this literal "2006-01-02" 3 times.
Define a constant instead of duplicating this literal "want %s, got %s" 5 times.
Define a constant instead of duplicating this literal "want: err == nil, got: err != nil" 4 times.
Define a constant instead of duplicating this literal "/rates/C/CHF/" 3 times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.