Skip to content

update test_peephole_optimizations.py and MergeRotationsPatterns.cpp

codefactor.io / CodeFactor failed Nov 4, 2024 in 2s

7 issues found.

Annotations

Check notice on line 56 in mlir/lib/Quantum/Transforms/MergeRotationsPatterns.cpp

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

mlir/lib/Quantum/Transforms/MergeRotationsPatterns.cpp#L56

Redundant blank line at the start of a code block should be deleted. (whitespace/blank_line)

Check notice on line 78 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L78

Line too long (108/100) (line-too-long)

Check notice on line 51 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L51

Line too long (120/100) (line-too-long)

Check notice on line 76 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L76

Line too long (101/100) (line-too-long)

Check notice on line 73 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L73

Line too long (123/100) (line-too-long)

Check notice on line 31 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L31

Trailing whitespace (trailing-whitespace)

Check notice on line 32 in frontend/test/pytest/test_peephole_optimizations.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

frontend/test/pytest/test_peephole_optimizations.py#L32

Trailing whitespace (trailing-whitespace)