Sebastian
37f2aa0e2d
triage tool: Add "Load from clipboard" functionality ( #1599 )
...
The user now can choose to "Load from file" or "Load from clipboard".
readme.txt has been adapted.
2019-01-14 17:49:10 +01:00
orbitcowboy
c3005f08ab
donate-cpu.py: Comment out boost library detection. After next release it shall be enabled again.
2019-01-13 20:37:41 +01:00
orbitcowboy
fc2557d43d
donate-cpu.py: Added detection of boost-library.
2019-01-13 17:55:28 +01:00
Daniel Marjamäki
51afcb2f64
Fix Cppcheck missingOverride warnings
2019-01-13 13:22:36 +01:00
Sebastian
1042208c2c
triage: Fix warnings and Windows issues; some enhancements ( #1591 )
...
Changes:
- Fixed compiler warnings
- Add "*.*" to file open menu so files without suffix can be opened
- Make it work under Windows
- Make wget() and unpackArchive() methods so they can access the UI
- wget() and unpackArchive() use the new method runProcess() now that also does some error handling
- Errors are shown in the status bar for easier debugging / usage
- Add readme.txt
- Let travis build the triage tool
2019-01-12 09:16:43 +01:00
Sebastian
bae4040060
donate-cpu.py: Save some system / platform information ( #1590 )
...
Save some system information which could help debugging the donate-cpu script and Cppcheck.
2019-01-11 20:07:11 +01:00
versat
0c93e0c8cb
donate-cpu-server.py: Increase max accepted result size to 2 MB
2019-01-11 14:58:27 +01:00
Sebastian
e8fb3c0546
donate-cpu-server.py: Time report: Further improvements and fixes ( #1586 )
...
Changes:
- Rename "time" page to "time.html" to avoid conflict with "time" package
- Output content as HTML instead of plain text
- Format head row of preformatted table bold
- Show factor for total time now too
Tested locally
2019-01-11 10:05:19 +01:00
Sebastian
fd9ca16e51
donate-cpu-server.py: Time report: Format output, add showing factor ( #1582 )
...
Format the time output so the columns have the same width (as long as a text is not too long).
Add showing the factor of the time difference so very suspicious differences can be seen instantly.
Made the function body more PEP 8 conform by using lowercase variable names with underscores as delimiters.
Tested locally.
2019-01-10 19:10:56 +01:00
amai2012
d3a10d3675
#8769 Don't check .cl files
2019-01-10 17:02:57 +01:00
Sebastian
1dc5ff022e
donate-cpu-server.py: Fix PEP 8 and other warnings ( #1578 )
...
There should be no functional changes.
Tested locally.
2019-01-09 18:39:42 +01:00
Sebastian
f673d552cb
donate-cpu.py: Add Cppcheck cmd line options to the output ( #1581 )
...
It is interesting what libraries, how many jobs, ... were used during analysis.
Tested locally.
2019-01-09 18:38:00 +01:00
Sebastian
2b008b473a
donate-cpu.py: Fix some PEP 8 and other warnings ( #1579 )
...
There should not be functional changes.
Tested locally.
2019-01-09 16:01:53 +01:00
orbitcowboy
126bd2bb5d
donate-cpu.py: Improved detection of wxWidgets code in scanPackage. ( #1580 )
2019-01-09 15:59:48 +01:00
Sebastian
44135ef926
donate-cpu-server.py: Provide HEAD report (similar to diff report) ( #1572 )
...
Tested on local server.
2019-01-09 10:47:58 +01:00
Sebastian
30d53a911e
donate-cpu-server.py: Fix package names in time output. ( #1570 )
...
The package names contained the whole path, so the leading "resultPath" is now removed to only show the package names.
Tested on local server.
2019-01-07 19:31:34 +01:00
practicalswift
0a1b3a9d6f
Fix typos ( #1568 )
2019-01-06 17:15:57 +01:00
amai2012
cc4ca7525a
Clean up redundant actions in travis jobs ( #1563 )
...
* Clean up redundant actions in travis jobs.
* Drop validatePlatforms from Makefile target checkcfg
* Print out CPU count. Adjust parameters for parallel jobs to 2 - the current result.
2019-01-05 11:12:32 +01:00
Sebastian
164a46f8cd
donate-cpu-server.py: Fix date/time in report is not found. ( #1562 )
...
Instead of searching for a specific year (which could change) the script searches now for the current and last year to find the date and time information in the results.
2019-01-04 11:51:32 +01:00
Sebastian
c8fde7b963
donate-cpu.py: Add '--test' parameter for testing against local server. ( #1559 )
...
Similar to the '--test' option for the donate-cpu-server.py script that lets the server listen locally on port 8001 the client now can also work against such a server by using the same option '--test'.
2019-01-03 13:42:33 +01:00
Daniel Marjamäki
8e43851ad1
Add daca2-getpackages.py
2019-01-03 11:42:32 +01:00
Daniel Marjamäki
77f1409a83
triage: better handling of donate-cpu results
2019-01-01 17:01:23 +01:00
Sebastian
56d502bf37
donate-cpu.py: Detect and use zlib and gtk library config; fix --help output. ( #1534 )
...
* donate-cpu.py: Fix --help output (add --package description)
* donate-cpu.py: Use zlib and gtk library if appropriate.
2018-12-20 21:15:42 +01:00
versat
7ff0968853
donate-cpu.py: Fix indentation
2018-12-20 14:26:00 +01:00
Sebastian
a4a3373838
donate-cpu-server.py: Fix wrong number of "+" diffs in latest results. ( #1517 )
...
This should fix the issue that the number after the "+" in the "Diff" column is always one too large.
2018-12-10 20:05:34 +01:00
Daniel Marjamäki
49e500d6bf
donate-cpu: use 1.86 as base version
2018-12-08 11:39:44 +01:00
Sebastian
fe6f4193fd
donate-cpu.py: Fix Python3 compatibility problem with f.read().decode() ( #1507 )
...
With Python3 f.read() directly returns a string object that has no
decode() function. As a workaround AttributeError exceptions during
calling the decode() function are ignored and the data read from the file
is left unchanged.
With Python2 calling the decode() function is necessary and still done.
2018-12-07 06:51:07 +01:00
Sebastian
a4dd423a18
donate-cpu.py: Align multi line output in diff (trac #8868 ) ( #1508 )
...
This is a very simple/stupid fix that just inserts 5 spaces for every line except the first.
2018-12-06 17:36:22 +01:00
Daniel Marjamäki
895a374c9a
donate-cpu: fix exception in hasInclude when file is link
2018-12-05 10:25:35 +01:00
Daniel Marjamäki
0249e408d3
donate-cpu: Try to fix exception in hasInclude
2018-12-03 18:15:07 +01:00
Daniel Marjamäki
768eb79653
donate-cpu: Try to fix UnicodeEncodeError in sendAll
2018-12-03 09:02:05 +01:00
Daniel Marjamäki
f0826ed9d9
donate-cpu-server: restore handling of crashes. do not recheck.
2018-12-02 07:10:23 +01:00
Daniel Marjamäki
14bcdd1c3a
donate-cpu: fix syntax error
2018-12-01 20:05:50 +01:00
Daniel Marjamäki
e5010da931
Donate CPU: include wxwidgets/qt if we detect that the project uses those headers
2018-12-01 20:02:13 +01:00
Daniel Marjamäki
ffef44af4c
donate-cpu: better detection of crashes
2018-12-01 13:25:48 +01:00
Daniel Marjamäki
86f984020b
donate-cpu: save all warnings reported by head
2018-11-29 21:28:49 +01:00
Daniel Marjamäki
5532d1f877
donate-cpu: Add GetCppcheckVersions command
2018-11-29 21:19:45 +01:00
Daniel Marjamäki
e11afb7b0c
donate-cpu-server: refactor
2018-11-29 06:23:29 +01:00
Daniel Marjamäki
6b4f5026f7
donate-cpu-server: show crash history
2018-11-28 20:36:19 +01:00
Daniel Marjamäki
15d0aa503b
donate-cpu: only retry uploading package if it did not work
2018-11-28 19:30:14 +01:00
Daniel Marjamäki
bbcadb0f9b
donate-cpu-server: try to track crashes better
2018-11-28 14:03:54 +01:00
IOBYTE
8e6013c8af
Allow daca to display latest results of packages with a plus in their name. ( #1496 )
2018-11-28 06:09:29 +01:00
Daniel Marjamäki
af60b6f125
donate-cpu-server: save crash history
2018-11-27 19:08:52 +01:00
Daniel Marjamäki
e501b6a460
donate-cpu: try to handle exceptions when uploading better
2018-11-27 12:05:21 +01:00
Daniel Marjamäki
33027dc10b
triage: better handling of daca@home results
2018-11-25 12:59:08 +01:00
Daniel Marjamäki
d2bd536f1b
triage: improve handling of daca@home results
2018-11-24 21:36:59 +01:00
Daniel Marjamäki
a872b3f57a
donate-cpu: take care of unhandled exception when unpacking archive
2018-11-22 08:44:24 +01:00
Daniel Marjamäki
cba87f913e
donate-cpu: try to catch socket.error better
2018-11-20 11:18:18 +01:00
Daniel Marjamäki
60ce95c1ec
tools/pr.py: minor tweak
2018-11-20 06:36:08 +01:00
Daniel Marjamäki
399fef17ca
Add script pr.py to merge pull requests. runastyle is executed automatically.
2018-11-20 06:20:46 +01:00
Daniel Marjamäki
347c46491a
donate-cpu-server: try to handle uploaded crash results better
2018-11-19 10:57:04 +01:00
Daniel Marjamäki
4d8a85ec4d
donate-cpu: add --package argument
2018-11-19 10:04:53 +01:00
Daniel Marjamäki
42e516582c
Disable shadow warnings when compiling
2018-11-19 09:25:59 +01:00
Daniel Marjamäki
5eddcb0827
donate-cpu: use --template=daca2 so we can see some more details in the warnings
2018-11-18 16:26:56 +01:00
Daniel Marjamäki
e8ac45a5a7
donate-cpu-server.py: Recheck crashes more frequently
2018-11-17 19:32:10 +01:00
amai2012
6b05f8e867
Don't echo file names being extracted from archive
2018-11-17 18:29:12 +01:00
Daniel Marjamäki
d95d884bba
donate-cpu: try to handle socket error better when getting package
2018-11-14 21:41:16 +01:00
Daniel Marjamäki
2d61ca8883
donate-cpu: try to handle OSError when unpacking a tar file
2018-11-12 14:45:39 +01:00
Armin Müller
acf2035a53
Typos found by running "codespell" ( #1461 )
2018-11-03 07:34:27 +01:00
amai2012
39c2625789
Run check for missing CWE entries on travis.
2018-10-22 13:14:48 +02:00
Christian Franke
f228897641
make: Add uninstall target
2018-10-19 09:49:44 +02:00
rikardfalkeborn
c9f768a915
donate_cpu: use https url ( #1429 )
...
Avoids git printing a warning about redirecting to https every time
the clone command is issued. The warning was:
warning: redirecting to https://github.com/danmar/cppcheck.git/
2018-10-17 06:14:06 +02:00
Daniel Marjamäki
f72847530e
Donate CPU: make server more robust when latest results are missing
2018-10-15 11:01:51 +02:00
Daniel Marjamäki
12c81ac0bf
Remove deprecated daca scripts
2018-10-14 16:42:49 +02:00
Daniel Marjamäki
441d50df25
donate-cpu: use 1.85 as base version
2018-10-14 16:31:13 +02:00
Carlo Marcelo Arenas Belon
9d73cf08bc
tools: allow short SHA1 longer than 7 ( #1399 )
...
newer versions of git use a variable lenght proportional to the
repository size (9 for cppcheck)
remove old chomp helper function and make copying the revision
smarter to hopefully cover for edge case that needed it
2018-09-28 19:04:39 +02:00
amai2012
b6103d15a6
#8711 Run Makefile target validateXML on travis
2018-09-24 14:27:02 +02:00
amai2012
cf8523b198
#8711 Extend XML being generated to validate the XML output format by adding an unmatchedSuppression. Also use proper cppcheck executable to generate them
2018-09-24 13:13:05 +02:00
LE GARREC Vincent
2675793e31
Missing return value in git-pre-commit-cppcheck ( #1382 )
2018-09-21 04:56:53 +02:00
Sebastian
996334eead
Donate CPU: Only extract relevant source files from archives #8716 ( #1379 )
...
Use python tarfile instead of tar to extract the packages.
Only extract source files of interest.
Skip dangerous files that could overwrite files outside the temp folder.
Fixes https://trac.cppcheck.net/ticket/8716
2018-09-15 18:56:46 +02:00
Daniel Marjamäki
91a8807810
Donate CPU: include inconclusive results
2018-09-09 13:16:39 +02:00
Sebastian
7fdd039bee
donate-cpu.py: Fix crash when wget destination file does not exist. ( #1368 )
...
When os.remove() tried to remove a file that did not exist (which is the case when the script is started for the first time or the working directory has been cleared) a FileNotFoundError was issued and the script just crashed.
2018-09-07 15:59:59 +02:00
Daniel Marjamäki
4a4d4fd2be
Donate CPU: Improve diff report so changes from today can be seen separately
2018-09-06 17:31:07 +02:00
versat
1d52875d4f
donate-cpu.py: Fix parameter name in comments/help text.
2018-09-06 13:15:54 +02:00
Daniel Marjamäki
ee104303b7
Donate CPU: create diff report for todays results
2018-09-06 06:53:40 +02:00
Sebastian
220c06e356
Donate CPU Server: Fix broken links in crash report. ( #1364 )
2018-09-03 13:07:47 +02:00
Daniel Marjamäki
f88326c51f
Donate CPU: let the server remember latest packages when restarting
2018-09-02 14:08:09 +02:00
Daniel Marjamäki
c6369e6519
Donate CPU: Added a simple time report
2018-09-02 09:35:38 +02:00
Daniel Marjamäki
215bc3b303
Donate CPU:
...
* timeout after 30 seconds
* added content for http://cppcheck.osuosl.org:8000/
2018-09-02 07:28:25 +02:00
Daniel Marjamäki
79840add38
Donate CPU: Use shutil.rmtree instead of 'rm'
2018-09-01 17:04:34 +02:00
Daniel Marjamäki
d5a9332684
triage: show url and filename in edit boxes
2018-09-01 07:36:58 +02:00
Daniel Marjamäki
59731d70e8
triage: set error line properly
2018-09-01 06:39:22 +02:00
Daniel Marjamäki
173c737a5c
Fixed #8718 (Donate CPU: Optionally allow specifying a custom workfolder)
2018-08-31 14:29:15 +02:00
Daniel Marjamäki
5767a0ed6f
Donate CPU: Added crash report
2018-08-31 14:28:01 +02:00
Daniel Marjamäki
c1f436f7c0
Donate CPU: Try to handle crashes better
2018-08-29 22:07:48 +02:00
Daniel Marjamäki
1547059a21
triage: handle daca@home diffs better
2018-08-29 22:07:31 +02:00
Daniel Marjamäki
4ef59754a4
Donate CPU: Added a '--stop-time' argument
2018-08-29 11:08:56 +02:00
Daniel Marjamäki
50ded8d789
Donate CPU: Include 'elapsed time' in the output
2018-08-29 06:51:33 +02:00
Daniel Marjamäki
eadb4226e9
Donate CPU: Try to fix utf-8 decode problem. Just skip invalid chars, we're not very interested in those.
2018-08-28 12:02:28 +02:00
Daniel Marjamäki
ec5a13d351
Donate CPU: Fix old path
2018-08-27 18:44:17 +02:00
Daniel Marjamäki
4002fcd3e3
Donate CPU: Improved the server, now you can see diff
2018-08-27 18:21:16 +02:00
Daniel Marjamäki
bbebdf0ab4
Donate CPU: Updated the 'latest.html' report
2018-08-26 16:57:09 +02:00
Daniel Marjamäki
629639f6ae
Donate CPU: Updated scripts
2018-08-26 16:47:20 +02:00
Daniel Marjamäki
6ec6f70f2d
Donate CPU: Concentrate on the diff
2018-08-26 16:23:42 +02:00
Daniel Marjamäki
b2f0bd315d
Donate CPU: Diff results in the client
2018-08-26 13:42:01 +02:00
Daniel Marjamäki
08837b2232
Donate CPU: Use CRLF in HTTP responses
2018-08-26 11:17:18 +02:00
Daniel Marjamäki
c65d79c0ec
Donate CPU: Speedup server. Keep packageIndex in package-index.txt
2018-08-25 20:58:31 +02:00
Daniel Marjamäki
829a373416
Python cleanup
2018-08-25 20:43:20 +02:00
Daniel Marjamäki
c7880e2c8d
Donate CPU: Made client python3 compatible
2018-08-25 20:34:43 +02:00
Daniel Marjamäki
5da38e33c0
Donate CPU: Make server more robust
2018-08-25 20:00:04 +02:00