Showing 8 of 8 total issues
Function createKanoProvider
has 129 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
export async function createKanoProvider (app) {
const providers = app.get('providers')
const config = _.get(providers, 'Kano')
if (!config) { return null }
const services = config.services || {}
Function createKanoProvider
has a Cognitive Complexity of 41 (exceeds 20 allowed). Consider refactoring. Open
Open
export async function createKanoProvider (app) {
const providers = app.get('providers')
const config = _.get(providers, 'Kano')
if (!config) { return null }
const services = config.services || {}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function createMBTilesProvider
has 85 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
export async function createMBTilesProvider (app) {
const providers = app.get('providers')
const config = _.get(providers, 'MBTiles')
if (!config) { return null }
Function createMBTilesProvider
has a Cognitive Complexity of 27 (exceeds 20 allowed). Consider refactoring. Open
Open
export async function createMBTilesProvider (app) {
const providers = app.get('providers')
const config = _.get(providers, 'MBTiles')
if (!config) { return null }
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
FIXME found Open
Open
// FIXME: we assume the same zoom level for all layers
- Exclude checks
TODO found Open
Open
// TODO: score by distance ?
- Exclude checks
FIXME found Open
Open
// FIXME might be automated with https://github.com/kalisio/feathers-distributed/issues/125
- Exclude checks
TODO found Open
Open
// TODO: might not be this one
- Exclude checks