aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/kotlin.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2022-05-09 23:13:50 -0500
committerGitHub <noreply@github.com>2022-05-09 23:13:50 -0500
commitf2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch)
treec726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/kotlin.js
parent141fa735217859d5ebc2985c5eabd2a780246485 (diff)
downloadcompiler-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/kotlin.js')
-rw-r--r--lib/compilers/kotlin.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/compilers/kotlin.js b/lib/compilers/kotlin.js
index 0871dfcab..7936acef2 100644
--- a/lib/compilers/kotlin.js
+++ b/lib/compilers/kotlin.js
@@ -22,8 +22,8 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-import { KotlinParser } from './argument-parsers';
-import { JavaCompiler } from './java';
+import {KotlinParser} from './argument-parsers';
+import {JavaCompiler} from './java';
export class KotlinCompiler extends JavaCompiler {
static get key() {
@@ -50,8 +50,9 @@ export class KotlinCompiler extends JavaCompiler {
filterUserOptions(userOptions) {
// filter options without extra arguments
- userOptions = (userOptions || []).filter(option =>
- option !== '-script' && option !== '-progressive' && !option.startsWith('-Xjavac'));
+ userOptions = (userOptions || []).filter(
+ option => option !== '-script' && option !== '-progressive' && !option.startsWith('-Xjavac'),
+ );
const oneArgForbiddenList = new Set([
// -jdk-home path
@@ -72,9 +73,7 @@ export class KotlinCompiler extends JavaCompiler {
// Forcibly enable javap
filters.binary = true;
- return [
- '-Xjavac-arguments="-Xlint:all"',
- ];
+ return ['-Xjavac-arguments="-Xlint:all"'];
}
/**