Commit Graph
35 Commits
Author SHA1 Message Date
Matt Godbolt a4edf7ed6b No array for each 2021-05-28 18:08:05 -05:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Kale Blankenship e8c754d830 Avoid parsing version properties as numbers
Parsing versions such as "1.10" results in a "1.1" float, incorrectly
changing the value.

Fixes #1980
2020-05-17 15:20:06 -04:00
RabsRincon 769183310b Add reset() method to properties to enable testing 2020-04-09 02:39:08 +02:00
Austin Morton 5e049bde76 Accept url options on all relevant routes and use toProperty to convert them 2019-08-23 12:35:43 -04:00
Partouf 834a3beed1 undo properties change, not needed 2019-08-21 03:31:59 +02:00
Partouf 0aa948079b support for flags with spaces 2019-08-21 03:13:51 +02:00
Matt Godbolt 7a98e50611 Fix handling of falsey values in language properties. Closes #1000 2018-07-14 19:22:50 -05:00
RabsRincon 8242db38a9 Add some type documentation to some lib files 2018-07-09 14:04:36 +02:00
Rubén 1a33902997 Merge compilerProps functions to a general case one (#956)
* Merge both compilerProps functions to general case

* Move compilerProps to lib/properties.js

It's now its own class, which takes a languages object + the ceProps
function to calMove compilerProps to lib/properties.js

* Add compilerProps behvaiour tests

* Add unknown language test
2018-06-19 10:09:44 +02:00
RabsRincon 7c18ffe8cf Drop underscore-node in favour of underscore.js
After some suprises about how outdated the node version was compared to
	the main project, it became clear we needed to do something.
	@jaredwy suggested using the main project as there's now nothing
	stopping us from using it after the switch to webpack.

cc @mattgodbolDrop underscore-node in favour of underscore.js
2018-06-15 15:04:55 +02:00
RabsRincon 5dcd18f0f5 Avoid 0X.. property values to be parsed as ints
It might break 3rd party configs in some obscure way, but after looking
at how it might happen, I can't see obvious reasons not to implement it
2018-05-28 00:59:43 +02:00
RabsRincon f9928ebc75 Improve CSP & add some corner case tests 2018-03-12 19:32:17 +01:00
RabsRincon 6ef87b5ef9 Fix copyright dates and normalize text 2018-02-27 14:58:21 +01:00
RabsRincon fc75208dac New year, new date 2018-01-01 16:44:04 +01:00
Matt Godbolt d359122371 Move compile handler, add tests 2017-12-22 07:03:29 -06:00
RabsRincon 25a39c3293 Add properties tests
Will come back to add more eventually. This is a base implementation
2017-12-11 00:42:50 +01:00
Matt Godbolt 633311fd24 Lowercase hierarchy names. Fixes #336 2017-03-20 20:46:10 -05:00
Matt Godbolt b6e9a4658b Another year, another copyright update 2017-01-02 10:14:46 -06:00
Matt Godbolt bc5848fa58 Adding more tests; beginnings of a refactor to make compilers more configurable 2016-11-16 21:52:05 -06:00
Matt Godbolt 5a6de74105 Use winston for logging 2016-10-27 20:15:25 -05:00
Matt Godbolt c9b8f5aad3 Tidy up some jshint warnings in the server 2016-09-29 07:49:01 -05:00
Gabriel Devillers 935a06cce2 Comments added. If debug enabled, show properties loaded by lib/properties.
Also : dirty debug function with a call to eval.
2016-08-05 11:51:48 +02:00
Gabriel Devillers d421d3357b Added debug function 2016-08-05 11:51:48 +02:00
Matt Godbolt 8610ec9316 Update copyright 2016-04-05 21:39:41 -05:00
Matt Godbolt b8fca03914 More button fiddling 2015-11-28 13:46:39 -06:00
Matt Godbolt 79a0f6e12d Misc WIP on changing configuration to be lang-specific and to fix up some more binary things found along the way 2015-11-26 13:12:56 -06:00
Matt Godbolt c9bc4eef58 Copyright update, formatting changes 2015-01-12 07:21:22 -06:00
Anders Waldenborg 8f7bbdf80e Fix getting properties with false value 2014-12-22 10:01:53 +01:00
Matt Godbolt c60cad2e7e Add IDEA files.
Update copyrights, fix jslint issues, tidy code.
2014-11-26 08:24:40 -06:00
Matt Godbolt 0589378679 Accidentally left property debugging on 2014-05-01 11:04:18 -05:00
Matt Godbolt 43a2173b38 Early rust support 2014-04-30 21:55:02 -05:00
Matt Godbolt 15ea5e164b Initial import of GCC-Explorer 2012-05-22 21:07:40 -05:00