We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bcf29 commit d81b9a6Copy full SHA for d81b9a6
2 files changed
tools/lint/julia/REQUIRE
@@ -0,0 +1,2 @@
1
+julia 0.5
2
+Lint 0.5.2
tools/lint/julia/linter.jl
@@ -0,0 +1,20 @@
+#!/usr/bin/env julia
+#
3
+# Lints a list of Julia files.
4
5
+# The script is called with one or more arguments, where each argument is a
6
+# filepath. Note that each provided filepath is resolved relative to the current
7
+# working directory of the calling process.
8
9
+
10
+import Base.Test
11
+import Lint
12
13
+# Lint each file separately...
14
+@Base.Test.testset "Lint tests" begin
15
+ for i in 1:length( ARGS )
16
+ @Base.Test.test isempty( Lint.lintfile( ARGS[ i ] ) );
17
+ end
18
+end
19
20
+quit();
0 commit comments