2017-07-13 18:41:01 -04:00
|
|
|
===============================================================================
|
|
|
|
ALE Scala Integration *ale-scala-options*
|
|
|
|
|
|
|
|
|
2018-06-02 14:59:53 -04:00
|
|
|
===============================================================================
|
|
|
|
scalafmt *ale-scala-scalafmt*
|
|
|
|
|
|
|
|
If Nailgun is used, override `g:ale_scala_scalafmt_executable` like so: >
|
|
|
|
let g:ale_scala_scalafmt_executable = 'ng'
|
|
|
|
|
|
|
|
To disable `scalafmt` globally, use |g:ale_fixers| like so: >
|
|
|
|
let g:ale_fixers = {'scala': []}
|
|
|
|
<
|
|
|
|
|
|
|
|
See |g:ale_fixers| for more information on disabling fixers.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_scala_scalafmt_executable *g:ale_scala_scalafmt_executable*
|
|
|
|
*b:ale_scala_scalafmt_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'scalafmt'`
|
|
|
|
|
|
|
|
Override the invoked `scalafmt` binary. This is useful for running `scalafmt`
|
|
|
|
with Nailgun.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_scala_scalafmt_options *g:ale_scala_scalafmt_options*
|
|
|
|
*b:ale_scala_scalafmt_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
A string containing additional options to pass to `'scalafmt'`, or
|
|
|
|
`'ng scalafmt'` if Nailgun is used.
|
|
|
|
|
|
|
|
|
2017-07-13 18:41:01 -04:00
|
|
|
===============================================================================
|
|
|
|
scalastyle *ale-scala-scalastyle*
|
|
|
|
|
2017-10-14 19:20:43 -04:00
|
|
|
`scalastyle` requires a configuration file for a project to run. When no
|
|
|
|
configuration file can be found, ALE will report a problem saying that a
|
|
|
|
configuration file is required at line 1.
|
|
|
|
|
|
|
|
To disable `scalastyle` globally, use |g:ale_linters| like so: >
|
|
|
|
let g:ale_linters = {'scala': ['scalac']} " Enable only scalac instead
|
|
|
|
<
|
|
|
|
|
|
|
|
See |g:ale_linters| for more information on disabling linters.
|
|
|
|
|
|
|
|
|
2017-07-13 18:41:01 -04:00
|
|
|
g:ale_scalastyle_config_loc *g:ale_scalastyle_config_loc*
|
|
|
|
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
2017-10-14 18:47:47 -04:00
|
|
|
A string containing the location of a global fallback configuration file.
|
|
|
|
|
|
|
|
By default, ALE will look for a configuration file named
|
|
|
|
`scalastyle_config.xml` or `scalastyle-config.xml` in the current file's
|
|
|
|
directory or parent directories.
|
|
|
|
|
2017-07-13 18:41:01 -04:00
|
|
|
|
|
|
|
g:ale_scala_scalastyle_options *g:ale_scala_scalastyle_options*
|
|
|
|
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
A string containing additional options to pass to scalastyle.
|
|
|
|
|
2017-10-14 18:47:47 -04:00
|
|
|
|
2017-07-13 18:41:01 -04:00
|
|
|
===============================================================================
|
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|