¿Existe una forma integrada de guardar el informe de la pila en un archivo? Parece que podría ser útil hacerlo para registrar el progreso de un proyecto y comparar elementos de informes en varios archivos a medida que se realizan cambios.save pylint message to a file
6
A
Respuesta
10
Nota: This option is deprecated and it will be removed in Pylint 2.0.
Puede utilizar la opción de línea de comandos --file-output=y
. Citando a la página del manual:
--files-output=<y_or_n>
Put messages in a separate file for each module/package speci‐
fied on the command line instead of printing them on stdout.
Reports (if any) will be written in a file name
"pylint_global.[txt|html]". [current: no]
El formato de la salida es especificado por la opción --output-format=<format>
en formato puede ser text
, parseable
, colorized
, msvs
(Visual Studio) y html
.
7
Puede redirigir su salida en la shell usando > somefile.txt
En caso de que escribe en stderr, utilice 2>&1 > somefile.txt
Cuestiones relacionadas
- 1. HTML5 save canvas to file en el servidor
- 2. Android save view to jpg or png
- 3. Save File de datos locales en Javascript
- 4. ZipExtFile to Django File
- 5. save jquery ui-sortable position to DB
- 6. Groovy write to file (newline)
- 7. Node.js POST File to Server
- 8. Chrome: JavaScript window.open to be Save-able
- 9. anexar subproceso.Popen output to file?
- 10. File API - Blob to JSON
- 11. Ruby Convert String to File
- 12. Windows Batch file - pipe to FIND
- 13. ¿Será igual a md5 (file_contents_as_string) md5_file (/ path/to/file)?
- 14. Image File to PDF Stream Conversion
- 15. Android FileInputStream read() txt file to String
- 16. Qt object/class to Qt ui file
- 17. Correcto InstallUtil Path To File Sintaxis?
- 18. pylint ignorar por el directorio
- 19. Java Email message Parser?
- 20. Github commit message tagging
- 21. XML Repository; a Save() o no guardar()
- 22. Doctrine date in save override/before save
- 23. Gdb print to file en lugar de stdout
- 24. Pylint con Django
- 25. Terser Coloring of a LogCat Message?
- 26. IE 7 error? - prompt save/open when downloading file - C# asp.net 3.5
- 27. cómo decirle a pylint que ignore ciertas importaciones?
- 28. Spring MVC save subido MultipartFile a carpeta específica
- 29. Mejores prácticas de PyLint?
- 30. Sólo Pylint Evaluación global
Esa es la sintaxis del shell POSIX, por supuesto. – user1277476
@ user1277476: también funciona en Windows. –