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>
* Disable WINE on WSL
When Compiler Explorer runs from within WSL, it does not need WINE in
order to call Windows executables.
* Fix process working directories on WSL
This ensures that all working directories, when running the
compiler, are WSL compatible.
* Add test to check correct working directory on WSL
* Pass -fsyntax-only when getting GCC options
Without this, the gcc driver will still attempt to invoke the assembler,
even though it is redundant to do so.
* Test that -masm= is both available and supported.
Targets such as i686-apple-darwin or x86_64-apple-darwin may have
-masm=intel present in --target-help, but any use of it will throw:
error: ‘-masm=intel’ not supported in this configuration
* basic IAR EWAVR compiler support
* basic line number parsing for colored lines
* Better Line Number Parsing (line numbers are right aligned)
* remove unused imports in compiler object
* removed unused lines from asm-parser-ewavr.js since Travis complained about them
* Assorted fixes from code review
* update processAsm() method to work with new style after rebase
* rework EWAVR asm parser. IAR seems to be closer to msvc.
* filter section initialize labels as assembler directives
* Add documentation for EWAVR
* enables binary+execution for ADA
* generic bandaid for missing executables
* -eS commands are not errors
* support error annotations
* restore original default but add exec example
* re-enable rpath
* add tools
Async-ify base-compiler
* Adds async to a number of methods
* Breaks 'compile' into a few smaller methods for readability
* Remove a few (seemingly!) unnecessary `Promise.all([x])`
- Add language
- Adds Nim compiler
- supports js, c, c++ outputs (objc not tested)
- prevent --run option
- Basic test for nim
Todos:
- monaco profile for Nim
They are already allowed in nearly all places,
the only exceptions being PPCI and tools.
Additionally update PPCI argument blacklist
to include --html-report option.