The invention provides a code inspection method and device. The code inspection method comprises the following steps: obtaining a file list with to-be-modified codes; and carrying out error inspection, alarm inspection and prompt inspection on the file list with the to-be-modified codes according to a preset code analysis rule, generating an inspection result and outputting the same. By adoption of the code inspection method provided by the invention, all codes in the file list with the to-be-modified codes can be scanned to inspect the codes not satisfying a development rule, bad editing habits of online banking developers in a development process can be corrected, and the online banking developers can follow the standard encoding rule so as to improve the code quality, improve the code inspection efficiency and shorten the code inspection time. In addition, the code inspection device provided by the embodiment of the invention adopts an Eclipse plug-in development mode, thereby being less in investment, fast to become effective, customizable, open in code sources and capable of satisfying the online banking code review requirements at present and in the future.