diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-05-09 23:13:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 23:13:50 -0500 |
commit | f2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch) | |
tree | c726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/scala.js | |
parent | 141fa735217859d5ebc2985c5eabd2a780246485 (diff) | |
download | compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.tar.gz compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.zip |
The Grand Reformat (#3643)gh-2830
* 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
Diffstat (limited to 'lib/compilers/scala.js')
-rw-r--r-- | lib/compilers/scala.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/compilers/scala.js b/lib/compilers/scala.js index d20c6b9c8..d7acbf301 100644 --- a/lib/compilers/scala.js +++ b/lib/compilers/scala.js @@ -26,8 +26,8 @@ import Semver from 'semver'; import {asSafeVer} from '../utils'; -import { ScalaParser } from './argument-parsers'; -import { JavaCompiler } from './java'; +import {ScalaParser} from './argument-parsers'; +import {JavaCompiler} from './java'; export class ScalaCompiler extends JavaCompiler { static get key() { @@ -50,8 +50,7 @@ export class ScalaCompiler extends JavaCompiler { filterUserOptions(userOptions) { // filter options without extra arguments - userOptions = userOptions.filter(option => - option !== '-Xscript'); + userOptions = userOptions.filter(option => option !== '-Xscript'); const oneArgForbiddenList = new Set([ // -d directory @@ -67,13 +66,9 @@ export class ScalaCompiler extends JavaCompiler { // Forcibly enable javap filters.binary = true; - const scala2Opts = [ - '-Xlint:_', - ]; + const scala2Opts = ['-Xlint:_']; - const scala3Opts = [ - '-deprecation', - ]; + const scala3Opts = ['-deprecation']; return Semver.gte(asSafeVer(this.compiler.semver), '3.0.0', true) ? scala3Opts : scala2Opts; } |