The following issues were found

tests/basics/builtin_pow.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test builtin pow() with integral values
# 2 arg version

print(pow(0, 1))
print(pow(1, 0))
print(pow(-2, 3))
print(pow(3, 8))

            

Reported by Pylint.

lib/littlefs/lfs1.c
1 issues
Possible null pointer dereference: regions
Error

Line: 516 CWE codes: 476

                  // keep pairs in order such that pair[0] is most recent
    lfs1_pairswap(dir->pair);
    for (int i = 0; i < count; i++) {
        dir->d.size += regions[i].newlen - regions[i].oldlen;
    }

    const lfs1_block_t oldpair[2] = {dir->pair[0], dir->pair[1]};
    bool relocated = false;


            

Reported by Cppcheck.

tests/basics/for_range.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test for+range, mostly to check optimisation of this pair

# apply args using *
for x in range(*(1, 3)):
    print(x)
for x in range(1, *(6, 2)):
    print(x)

# zero step

            

Reported by Pylint.

tests/basics/for2.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              i = 'init'
for i in range(0):
    pass
print(i) # should not have been modified

for i in range(10):
    pass
print(i) # should be last successful value of loop

            

Reported by Pylint.

extmod/nimble/nimble/nimble_npl_os.c
1 issues
There is an unknown macro here somewhere. Configuration is required. If MICROPY_PY_BLUETOOTH_ENTER is a macro then please configure it.
Error

Line: 513

              
uint32_t ble_npl_hw_enter_critical(void) {
    DEBUG_CRIT_printf("ble_npl_hw_enter_critical()\n");
    MICROPY_PY_BLUETOOTH_ENTER
    return atomic_state;
}

void ble_npl_hw_exit_critical(uint32_t atomic_state) {
    MICROPY_PY_BLUETOOTH_EXIT

            

Reported by Cppcheck.

extmod/modbluetooth.c
1 issues
There is an unknown macro here somewhere. Configuration is required. If MICROPY_PY_BLUETOOTH_EXIT is a macro then please configure it.
Error

Line: 433

                  MICROPY_PY_BLUETOOTH_ENTER
    mp_obj_bluetooth_ble_t *o = MP_OBJ_TO_PTR(MP_STATE_VM(bluetooth));
    o->irq_handler = handler_in;
    MICROPY_PY_BLUETOOTH_EXIT

    return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_2(bluetooth_ble_irq_obj, bluetooth_ble_irq);


            

Reported by Cppcheck.

tests/basics/bytearray_append.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test bytearray.append method

a = bytearray(4)
print(a)

# append should append a single byte
a.append(2)
print(a)


            

Reported by Pylint.

tests/basics/builtin_print.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test builtin print function

print()
print(None)
print('')
print(1)
print(1, 2)

print(sep='')

            

Reported by Pylint.

tests/basics/exception1.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test basic properties of exceptions

print(repr(IndexError()))
print(str(IndexError()))

print(str(IndexError("foo")))

a = IndexError(1, "test", [100, 200])
print(repr(a))

            

Reported by Pylint.

tests/basics/dict_views.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              d = {1: 2}
for m in d.items, d.values, d.keys:
    print(m())
    print(list(m()))

# print a view with more than one item
print({1:1, 2:1}.values())

# unsupported binary op on a dict values view

            

Reported by Pylint.