Before Lint.jl version 0.2.6 is released,
you will need to do Pkg.checkout("Lint") after Pkg.add("Lint") command.
This will use the latest development version of the Lint.jl package.
After the version 0.2.6 is realeased, you can do Pkg.free("Lint").
Features v"0.2.1"
By default linter-julia uses Juno’s julia
User can give path to the julia, which they want to use for Linting
Issues and pull request are welcome.
Edit: won’t work on Windows environment. Follow it here and here.
I have installed the package through Atom on a Mac and done Pkg.checkout("Lint"), but I don’t see any linting information. Is there something else that needs doing?
julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
Ah, it seems to be giving this message: 'julia' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
I even tried making a soft link instead of a bash alias, but I still get the same result.
Could linter-julia just use the address in julia-client to get the information about the location of the Julia binary?
I can reproduce on Windows 7, Julia v0.5.0, Lint v0.2.5.
The Julia console hangs.
using Lint
str2 = """
test = "a"
kj
"""
msgs2 = lintfile("file", str2)
After pressing Ctrl-c:
ERROR: InterruptException:
in string(::String, ::Char, ::Vararg{Char,N}) at .\strings\string.jl:179
in splitdir(::String) at .\path.jl:53
in lintpkgforfile(::String, ::Lint.LintContext) at C:\Users\plowman\.julia\v0.5\Lint\src\Lint.jl:68
in lintfile(::String, ::String) at C:\Users\plowman\.julia\v0.5\Lint\src\Lint.jl:112
It is interesting that the InterruptException indicates a potential hang in string, and that this problem seems to only occur on Windows. Any help on tracking this problem down is appreciated.
The linter is very angry at me. It always wants me to use the function arguments, but in many traits setups I don’t want to. Is there any way turn off specific checks?
Yes and no. Not in linter-julia at the moment. This is a good feature request, because this seems to be a standard feature of other linter packages. Here is how to do it in Lint.jl: Features - Lint.jl, but if I understood it correctly, it’s not supporting your request. Please add an issue, I have an idea how to implement this.
Keep the log open and press Command + s (save the file), it will trigger the linting to start. You can press the Command + s few times and look the console output. You can see an example output here: https://github.com/TeroFrondelius/linter-julia/issues/20
And of course make some mistake, if there is no problem then nothing is shown.