Commit Graph
150 Commits
Author SHA1 Message Date
Jeremy Rifkin 3eaa274904 Add nm (#5058)
Changes on top of #5057
2023-05-17 15:24:01 -04:00
Jeremy Rifkin 33c05780c9 Clarify a readelf / pahole error message and add readelf to defaults.properties (#5057) 2023-05-17 15:01:00 -04:00
Fred Tingaud 9ceb1dc6eb Increase size limit for sonar output (#5031) 2023-05-09 19:18:35 +02:00
Jeremy Rifkin d72d2d8c0f Fix clang stdin bug (#4986) 2023-04-23 11:30:50 +02:00
Fred Tingaud 6d27eaac0e Sonar analysis: fix library usage (#4974) 2023-04-19 22:09:57 +02:00
Fred Tingaud 6e0aa5f630 Fix Sonar rule URLs for C (#4949)
Forgot there were some hard-coded parts about the language in the
URLs...
2023-04-10 08:14:16 -05:00
Fred Tingaud 477ba96c05 Ft/branch (#4946)
Small fixes for the Sonar analyzer.
* Support the C language
* Fix the argument passing. This one is not really relevant for users but useful for us if we need to debug a crash someday.
2023-04-05 11:09:39 -05:00
Matt Godbolt 3461db6c19 Bump all minor versions - npm update; also bump webpack version speculatively... (#4851)
also npm lint and format to make sure any changes turn up.
2023-03-12 11:29:57 -05:00
Fred Tingaud 3b3035e57b Add a tool with Sonar C++ analysis. (#4837)
This is a preview of the static analysis capabilities of the Sonar C++ analyzer. See https://www.sonarsource.com/ for more information.
2023-03-09 21:23:07 -06:00
Rubén Rincón Blanco dd2c08693c Add name to binary tools error response (#4798) 2023-03-06 20:10:00 +01:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin 384c297906 Fix trailing comma issue (#4775)
Make trailing commas more consistent throughout the project, fixes
config conflict between eslint and prettier. Resolves an oversight in
#4766.
2023-02-26 12:21:35 -05:00
Jeremy Rifkin 2b06c69111 Turn some auto-fixable eslint rules back on (#4766)
This PR turns comma-dangle and indent eslint rules on for lib/. These
are rules inherited from the eslint config for static/, this PR just
makes things more consistent. Also turned
@typescript-eslint/no-var-requires back on while I was here.
2023-02-23 17:16:17 -05:00
Jeremy Rifkin 0d5e3ac775 Tsify the rest of lib/tooling (#4718)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
2023-02-12 11:57:12 -05:00
Scott Tran b31ee6a643 Tsify clang-tidy-tool (#4695) 2023-02-05 18:48:20 -05:00
Scott Tran d10b24a708 tsify clang-query-tool (#4696) 2023-02-05 15:28:29 +01:00
Scott Tran 9591f14409 tsify clang-format-tool (#4697) 2023-02-05 15:28:22 +01:00
Scott Tran e3da6f7f49 remove bbcdiskify-tool.js (#4693) 2023-02-05 15:28:10 +01:00
Jeremy Rifkin 6207cb2d6e npm run lint to get const fixes 2023-01-17 12:31:49 -05:00
Marc Poulhiès 6d0d81d2c6 fix: pahole wrongly refuses to do anything (#4581)
Condition was badly changed in #3232 (compiling to binary objects)
2023-01-12 15:37:07 +01:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
Partouf fd09bacf6b formatting 2023-01-06 17:11:35 +01:00
Marc Poulhiès 8503ed60fa fix: empty exclude value in option file badly handled (#4546) 2023-01-06 16:57:43 +01:00
Matt Godbolt 749319f791 Slightly more controversial bumpings (#4503)
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version

applies new tslint stuff
2022-12-28 11:42:14 -06:00
Matt Godbolt d94eb203c1 Add lint rule for unused imports, and fix (#4476) 2022-12-20 15:51:39 -06:00
Matt Godbolt 57a647b8a3 Add the result inside the CompilationResult (#4475) 2022-12-20 08:15:39 -06:00
Matt Godbolt 6348917e15 Separate shareable tool type from server ITool (#4472)
* Separate shareable tool type from server ITool

I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).

* Fix tests
2022-12-19 22:40:27 -06:00
Patrick Quist 9de0b70af3 min effort ts conv dropintool (#4412) 2022-12-12 20:11:05 -06:00
Matt Godbolt c5f50d603c Fix typing and usage of tools (#4180)
* Fix typing and usage of tools
* Fix tests and break cycle
* More improvements
2022-10-22 17:16:23 -05:00
Rubén Rincón Blanco 2394c94c6e Try to fix the ld issue by using compiler options (#4071) 2022-09-21 16:24:22 +02:00
RabsRincon 2556bc5bb3 Fix eslint warning 2022-09-15 08:13:45 +02:00
Rubén Rincón Blanco 366cd5527c Adds llvm-cov tool (#4044) 2022-09-15 08:12:27 +02:00
Matt Godbolt 7ac1d67348 Changes to prometheus counters (#3883) 2022-07-18 13:11:09 -05:00
Fred Tingaud 66b517b60a Get statistics on tools usage per language / compiler (#3851) 2022-07-07 18:28:54 +01:00
Fred Tingaud e76115f152 Make tools output parsing overridable. (#3819) 2022-07-01 00:30:49 +02:00
walkerhuangandWalker Huang 3bc192287d fix bug when creating error response (#3807)
Co-authored-by: Walker Huang <walker.huang@arm.com>
2022-06-24 20:57:10 +02:00
partouf 75b1c19197 formatfixes 2022-05-12 17:05:07 +02:00
partouf cb7a772e4a Merge remote-tracking branch 'origin/main' into bbcmicrothings 2022-05-11 16:51:37 +02:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
RabsRincon 40fe769459 Set comma-dangle to always in server code and es5 in client code 2022-04-26 05:26:48 +02:00
Matt Godbolt 21b764f392 Unify comma configuration; and apply format to some files. (#3559) 2022-04-25 18:22:11 -05:00
Jeremy Rifkin 419d386bd9 Added keyword-spacing eslint rule and fixed instances of inconsistent spacing (#3428) 2022-03-07 22:38:58 -06:00
Rubén Rincón Blanco 48eee26d2c Group some files to their own folders (#3384)
* Group some files to their own folders

In etc/scripts/, added disasms/, docenizers/, and util/ folders
In lib/, added mapfiles/, and parsers/ folders (+moved google.js to
shortener)
In static/, added widgets/ folder

Added cypress folder to .gitignore

* Address Matt's PR reviews

* Move new Pane renaming to folder
2022-02-22 00:18:21 +01:00
RabsRincon 024787754e Fix Linter error 2022-02-11 13:34:17 +01:00
TimmyTechTVandPatrick Quist e91d5a0092 Static Analysis tool update (#3324)
* Update microsoft-analysis-tool.js

Condensing const code

Co-authored-by: Patrick Quist <partouf@gmail.com>
2022-02-10 21:45:07 -06:00
TimmyTechTV a07a42b7a3 Adding Static Analysis to tooling (#3306)
* Create microsoft-analysis-tool.js
2022-01-31 21:40:50 -06:00
Marc Poulhiès 1d8cae9562 Fix strings tool calling wrt binary/executable targets (#3251)
If only binary output is selected without the execution, strings would complain
about missing file.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-01-24 21:10:52 -06:00
partouf e003f11122 Revert "Create microsoft-analysis-tool.js (#3172)"
This reverts commit 819e18a045.
2021-12-15 21:01:54 +00:00
timmy-ms 819e18a045 Create microsoft-analysis-tool.js (#3172) 2021-12-15 19:34:02 +01:00
partouf 1622bf1791 work in progress 2021-12-15 01:28:10 +00:00