generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
101 lines (93 loc) · 3.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: 'FTA Action'
description:
'FTA (Fast TypeScript Analyzer) captures static info about TypeScript code,
revealing complexity and maintainability concerns.'
author: 'Simon Gattner'
# Add your action's branding here. This will appear on the GitHub Marketplace
# See: <https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding>
branding:
icon: 'trending-up'
color: 'blue'
# Define your inputs here
inputs:
project_path:
description: 'Path to the project to analyze'
required: false
default: 'src/'
config_path:
description: 'Path to config file'
required: false
output_path:
description: 'Path to output file'
required: false
default: 'output.json'
format:
description:
'Output format (default: table) [default: table] [possible values: table,
csv, json]'
required: false
default: 'table'
json:
description: 'Output as JSON'
required: false
default: 'false'
output_limit:
description:
'Maximum number of files to include in the table output (only applies when
using table output) (default: 5000)'
required: false
default: '5000'
score_cap:
description:
'Maximum FTA score which will cause FTA to throw (default: 1000)'
required: false
default: '1000'
include_comments:
description:
'Whether to include code comments when analysing (default: false)
[possible values: true, false]'
required: false
default: 'false'
exclude_under:
description:
'Minimum number of lines of code for files to be included in output
(default: 6)'
required: false
default: '6'
exclude_directories:
description:
'List of directory paths separated by comma. Representing directories to
exclude from the analysis. Files within any of these directories will be
ignored. Paths can be specified as relative to the project root. The
defaults are always used; any supplied values are added to the exclusions
list.'
required: false
default: '/dist, /bin, /build'
exclude_filenames:
description:
'List of glob patterns separated by comma. Representing filenames to
exclude from the analysis. Files matching any of these patterns will be
ignored. Globs can include wildcards and brace expansions. The defaults
are always used; any supplied values are added to the exclusions list.
Exclusions will override extensions.'
required: false
default: '.d.ts, .min.js, .bundle.js'
extensions:
description:
'List of file extensions separated by comma. Identify files that should be
analyzed. JavaScript files are also accepted. The defaults are always
used; any supplied values are added to the inclusions list.'
required: false
default: '.js, .jsx, .ts, .tsx'
# Define your outputs here
outputs:
summary:
description:
'Summary of the analysis in table format (also shown in the logs)'
details:
description:
'Details of the analysis in the passed format (also written to the output
file)'
runs:
using: node20
main: dist/index.js