Commit Graph
20 Commits
Author SHA1 Message Date
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 db6626e3e8 Reassign my copyright to Compiler Explorer Authors 2021-07-24 00:51:34 +02:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04: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 f5c199a196 Add test to ensure libraries are properly added
Reformat some others to use before/after
2020-04-09 02:39:08 +02:00
Austin Morton 1b7fe24990 Perform some general maintenance on the test suite (#1840) 2020-02-18 00:03:15 -05: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
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 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 8ccd00fc5d Rename variable to be more verbose 2018-03-12 19:34:14 +01: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
RabsRincon ef95efc4ce Further improve pre-commit hook 2017-12-11 09:20:12 +01:00
RabsRincon 0e55afb8dd Add mising properties case.
Some readbility fixes along the way too
2017-12-11 01:15:54 +01: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