Title: Added support for reading file lists from stdin by joshbeck · Pull Request #36 · cppcheck-opensource/cppcheck · GitHub
Open Graph Title: Added support for reading file lists from stdin by joshbeck · Pull Request #36 · cppcheck-opensource/cppcheck
X Title: Added support for reading file lists from stdin by joshbeck · Pull Request #36 · cppcheck-opensource/cppcheck
Description: I changed the command line parser so that when the argument for "--file-list=" is a hyphen, it reads from stdin. This is useful because it allows you to write a command like this (I have it in a script called gitcheck): git status -s | grep '^[AM][ M]' | awk 'NF{print $2}' | cppcheck --file-list=- 2>&1 With my commit, this command grabs all of the files that you've added or modified and then checks them using cppcheck. This is a real time saver if you're working on a large project with a lot of files. It makes no sense to cppcheck files that you've already checked but haven't changed. Also, this command can easily be changed to work with svn by changing "git status -s" to "svn status".
Open Graph Description: I changed the command line parser so that when the argument for "--file-list=" is a hyphen, it reads from stdin. This is useful because it allows you to write a command like this (I have ...
X Description: I changed the command line parser so that when the argument for "--file-list=" is a hyphen, it reads from stdin. This is useful because it allows you to write a command like this ...
Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/36
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fa5ad486-226a-4b47-dbc4-8701f3fefe7b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BE84:D0A70:53D86A:745381:6A5070B6 |
| html-safe-nonce | 060892948cd453bd32a8eb0413ba9ed5976dd84e6049f52aea932f67afab4d7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTg0OkQwQTcwOjUzRDg2QTo3NDUzODE6NkE1MDcwQjYiLCJ2aXNpdG9yX2lkIjoiNjQzNDk2NjAyNDY3MjUzODgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d3366e61413b6f7be20d60f55123f14374c520ad9d26e261c2886fc292d34dff |
| hovercard-subject-tag | pull_request:354869 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/36/files |
| twitter:image | https://avatars.githubusercontent.com/u/1075866?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1075866?s=400&v=4 |
| og:image:alt | I changed the command line parser so that when the argument for "--file-list=" is a hyphen, it reads from stdin. This is useful because it allows you to write a command like this (I have ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 143131 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/cppcheck |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143131 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/cppcheck |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width