Showing 212 of 220 total issues
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert len(result) > 0, "video seems to only contain one stage"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert os.path.isfile(path), f"video {path} not existed"
- Exclude checks
Consider possible security implications associated with pickle module. Open
Open
import pickle
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert not os.path.exists(json_path), f"{json_path} already existed"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert stage_id in self.data
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert not output_path.is_file(), f"file {output_path} already existed"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert classify_result.contain(
from_stage
), f"no stage {from_stage} found in result"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (boost_mode and valid_range) or (
not (boost_mode or valid_range)
), "boost_mode required valid_range"
- Exclude checks
Standard pseudo-random generators are not suitable for security/cryptographic purposes. Open
Open
salt = random.randint(10, 99)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert os.path.isfile(from_file), f"file {from_file} not existed"
- Exclude checks
subprocess call - check for execution of untrusted input. Open
Open
return subprocess.check_call(command)
- Exclude checks
Remove this commented out code. Open
Open
# model = Sequential()
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"