File tree 3 files changed +20
-6
lines changed
3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 32
32
deno-version : v1.41
33
33
- name : Publish package
34
34
run : |
35
- rm -rf examples
36
35
deno publish --allow-slow-types
37
36
working-directory : megalinter
Original file line number Diff line number Diff line change 11
11
},
12
12
"fmt" : {
13
13
"exclude" : [
14
- " example /" ,
14
+ " examples /" ,
15
15
" .fluentci/" ,
16
16
" gen/"
17
17
]
18
18
},
19
19
"lint" : {
20
20
"exclude" : [
21
- " example /" ,
21
+ " examples /" ,
22
22
" .fluentci/" ,
23
23
" gen/"
24
24
]
25
25
},
26
26
"test" : {
27
27
"exclude" : [
28
- " example/" ,
28
+ " examples/" ,
29
+ " .fluentci/" ,
30
+ " gen/"
31
+ ]
32
+ },
33
+ "publish" : {
34
+ "exclude" : [
35
+ " examples/" ,
29
36
" .fluentci/" ,
30
37
" gen/"
31
38
]
Original file line number Diff line number Diff line change @@ -18,17 +18,25 @@ export const exclude = [];
18
18
* @description Lint files.
19
19
* @param {string | Directory | undefined } src
20
20
* @param {string } version
21
+ * @param {string } only
21
22
* @returns {Directory | string }
22
23
*/
23
24
export async function lint (
24
25
src : Directory | string ,
25
- version : string = "v7"
26
+ version : string = "v7" ,
27
+ only ?: string
26
28
) : Promise < Directory | string > {
27
29
const context = await getDirectory ( src ) ;
30
+ let megalinter = `oxsecurity/megalinter:${ version } ` ;
31
+
32
+ if ( only ) {
33
+ megalinter = `oxsecurity/megalinter-only-${ only } :${ version } ` ;
34
+ }
35
+
28
36
const ctr = dag
29
37
. pipeline ( Job . lint )
30
38
. container ( )
31
- . from ( `oxsecurity/ megalinter: ${ version } ` )
39
+ . from ( megalinter )
32
40
. withDirectory ( "/app" , context )
33
41
. withEnvVariable ( "DEFAULT_WORKSPACE" , "/app" )
34
42
. withEnvVariable ( "REPORT_OUTPUT_FOLDER" , "/app/megalinter-reports" )
You can’t perform that action at this time.
0 commit comments