File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,28 @@ readonly REPO_DIR="$(dirname "$SCRIPT_DIR")"
6
6
7
7
source " $SCRIPT_DIR /common.sh"
8
8
9
+ # Plugins that deliberately use their own analysis_options.yaml.
10
+ #
11
+ # This list should only be deleted from, never added to. This only exists
12
+ # because we adopted stricter analysis rules recently and needed to exclude
13
+ # already failing packages to start linting the repo as a whole.
14
+ #
15
+ # TODO(mklim): Remove everything from this list. https://github.com/flutter/flutter/issues/45440
16
+ CUSTOM_ANALYSIS_PLUGINS=(
17
+ " in_app_purchase"
18
+ " camera"
19
+ " google_sign_in/google_sign_in"
20
+ " google_sign_in/google_sign_in_platform_interface"
21
+ " google_sign_in/google_sign_in_web"
22
+ )
23
+ # Comma-separated string of the list above
24
+ readonly CUSTOM_FLAG=$( IFS=, ; echo " ${CUSTOM_ANALYSIS_PLUGINS[*]} " )
9
25
# Set some default actions if run without arguments.
10
26
ACTIONS=(" $@ " )
11
27
if [[ " ${# ACTIONS[@]} " == 0 ]]; then
12
- ACTIONS=(" test" " analyze" " java-test" )
28
+ ACTIONS=(" analyze" " --custom-analysis" " $CUSTOM_FLAG " " test" " java-test" )
29
+ elif [ " ${ACTIONS[@]} " == " analyze" ]; then
30
+ ACTIONS=(" analyze" " --custom-analysis" " $CUSTOM_FLAG " )
13
31
fi
14
32
15
33
BRANCH_NAME=" ${BRANCH_NAME:- " $( git rev-parse --abbrev-ref HEAD) " } "
You can’t perform that action at this time.
0 commit comments