File tree 6 files changed +61
-6
lines changed
6 files changed +61
-6
lines changed Original file line number Diff line number Diff line change 17
17
run : |
18
18
deno run -A src/dagger/list_jobs.ts
19
19
dagger functions
20
- dagger call lint --src . --path examples
20
+ dagger call lint --src examples/playbooks
21
21
working-directory : megalinter
22
22
publish :
23
23
needs : test
Original file line number Diff line number Diff line change
1
+ {
2
+ "ignorePaths" : [
3
+ " **/node_modules/**" ,
4
+ " **/vscode-extension/**" ,
5
+ " **/.git/**" ,
6
+ " **/.pnpm-lock.json" ,
7
+ " .vscode" ,
8
+ " megalinter" ,
9
+ " package-lock.json" ,
10
+ " report"
11
+ ],
12
+ "language" : " en" ,
13
+ "noConfigSearch" : true ,
14
+ "words" : [" megalinter" , " oxsecurity" ],
15
+ "version" : " 0.2"
16
+ }
Original file line number Diff line number Diff line change
1
+ megalinter-reports /
Original file line number Diff line number Diff line change
1
+ {
2
+ "threshold" : 0 ,
3
+ "reporters" : [" html" , " markdown" ],
4
+ "ignore" : [
5
+ " **/node_modules/**" ,
6
+ " **/.git/**" ,
7
+ " **/.rbenv/**" ,
8
+ " **/.venv/**" ,
9
+ " **/*cache*/**" ,
10
+ " **/.github/**" ,
11
+ " **/.idea/**" ,
12
+ " **/report/**" ,
13
+ " **/*.svg"
14
+ ]
15
+ }
Original file line number Diff line number Diff line change
1
+ # Configuration file for MegaLinter
2
+ #
3
+ # See all available variables at https://megalinter.io/latest/config-file/ and in
4
+ # linters documentation
5
+
6
+ # all, none, or list of linter keys
7
+ APPLY_FIXES : all
8
+
9
+ # If you use ENABLE variable, all other languages/formats/tooling-formats will
10
+ # be disabled by default
11
+ # ENABLE:
12
+
13
+ # If you use ENABLE_LINTERS variable, all other linters will be disabled by
14
+ # default
15
+ # ENABLE_LINTERS:
16
+
17
+ # DISABLE:
18
+ # - COPYPASTE # Uncomment to disable checks of excessive copy-pastes
19
+ # - SPELL # Uncomment to disable checks of spelling mistakes
20
+
21
+ SHOW_ELAPSED_TIME : true
22
+
23
+ FILEIO_REPORTER : true
24
+
25
+ # Uncomment if you want MegaLinter to detect errors but not block CI to pass
26
+ # DISABLE_ERRORS: true
Original file line number Diff line number Diff line change @@ -17,21 +17,18 @@ export const exclude = [];
17
17
* @function
18
18
* @description Lint files.
19
19
* @param {string | Directory | undefined } src
20
- * @param {string } path
21
20
* @returns {Directory | string }
22
21
*/
23
22
export async function lint (
24
- src : Directory | string ,
25
- path = "."
23
+ src : Directory | string
26
24
) : Promise < Directory | string > {
27
25
const context = await getDirectory ( src ) ;
28
26
const ctr = dag
29
27
. pipeline ( Job . lint )
30
28
. container ( )
31
29
. from ( "oxsecurity/megalinter:v7" )
32
30
. withDirectory ( "/app" , context )
33
- . withWorkdir ( "/app" )
34
- . withExec ( [ path ] ) ;
31
+ . withWorkdir ( "/app" ) ;
35
32
36
33
await ctr . stdout ( ) ;
37
34
return ctr . directory ( "/app/megalinter-reports" ) . id ( ) ;
You can’t perform that action at this time.
0 commit comments