tesseract-ocr / tesseract

Tesseract Open Source OCR Engine (main repository)
https://tesseract-ocr.github.io/
Apache License 2.0
59.53k stars 9.23k forks source link

Fix some issues which were reported by Codacy #4266

Closed stweil closed 3 weeks ago

stweil commented 3 weeks ago

According to Codacy this pull request fixes about 32 issues (from a total of currently 590 issues), so much more work remains to be done.

egorpugin commented 3 weeks ago

Is it possible to use auto in more places?

stweil commented 3 weeks ago

Is it possible to use auto in more places?

Yes, sure, but sometimes I want to be able to see the data types explicitly for myself, and in other cases more work is needed to verify that auto or auto * really gives the same result.

Maybe some tools can auto-fy the code automatically. Then we could consider using such tools in separate commits.