File tree 2 files changed +3
-6
lines changed
2 files changed +3
-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 @@ -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