OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # This Makefile is used to run the analyzer on the sources of poi.dart. | 5 # This Makefile is used to run the analyzer on the sources of poi.dart. |
6 # Unfortunately, we have to ignore some hints either due to bugs in the | 6 # Unfortunately, we have to ignore some hints either due to bugs in the |
7 # analyzer, or due to patterns in dart2js (for example, unused imports of | 7 # analyzer, or due to patterns in dart2js (for example, unused imports of |
8 # helpers.dart). | 8 # helpers.dart). |
9 # | 9 # |
10 # The purpose of this Makefile is to be used from inside Emacs to fix any valid | 10 # The purpose of this Makefile is to be used from inside Emacs to fix any valid |
11 # warning or hints reported. The whitelist is maintained as needed by those who | 11 # warning or hints reported. The whitelist is maintained as needed by those who |
12 # use this Makefile. | 12 # use this Makefile. |
13 | 13 |
14 SDK_DIR=../../../xcodebuild/ReleaseIA32/dart-sdk | 14 SDK_DIR=../../../xcodebuild/ReleaseIA32/dart-sdk |
15 PACKAGE_ROOT=../../../xcodebuild/ReleaseIA32/packages/ | 15 PACKAGE_ROOT=../../../xcodebuild/ReleaseIA32/packages/ |
16 | 16 |
17 all: | 17 all: |
18 @echo $(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) repeat_poi.dart | 18 @echo $(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) repeat_poi.dart |
19 @$(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) \ | 19 @$(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) \ |
20 --package-warnings --machine ../poi/repeat_poi.dart 2>&1 \ | 20 --package-warnings --machine ../poi/repeat_poi.dart 2>&1 \ |
21 | grep -v DEPRECATED_MEMBER_USE \ | 21 | grep -v DEPRECATED_MEMBER_USE \ |
22 | grep -v DEAD_CODE \ | 22 | grep -v DEAD_CODE \ |
23 | grep -v -E 'INFO\|HINT\|ARGUMENT_TYPE_NOT_ASSIGNABLE\|' \ | 23 | grep -v -E 'INFO\|HINT\|ARGUMENT_TYPE_NOT_ASSIGNABLE\|' \ |
24 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/cps_
ir/optimizers\.dart\|7\|8\|27\|' \ | 24 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/cps_ir/optimize
rs\.dart\|7\|8\|27\|' \ |
25 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/dart
2jslib\.dart\|26\|8\|22\|' \ | 25 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/dart2jslib\.dar
t\|26\|8\|22\|' \ |
26 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/dart
_types\.dart\|17\|8\|22\|' \ | 26 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/dart_types\.dar
t\|17\|8\|22\|' \ |
27 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/elem
ents/elements\.dart\|[0-9]+\|8\|25\|' \ | 27 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/elements/elemen
ts\.dart\|[0-9]+\|8\|25\|' \ |
28 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/elem
ents/modelx\.dart\|[0-9]+\|8\|25\|' \ | 28 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/elements/modelx
\.dart\|[0-9]+\|8\|25\|' \ |
29 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/js_e
mitter/js_emitter\.dart\|[0-9]+\|8\|25\|' \ | 29 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/js_emitter/js_e
mitter\.dart\|[0-9]+\|8\|25\|' \ |
30 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/libr
ary_loader\.dart\|25\|8\|22\|' \ | 30 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/library_loader\
.dart\|25\|8\|22\|' \ |
31 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/patc
h_parser\.dart\|[0-9]+\|8\|22\|' \ | 31 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/patch_parser\.d
art\|[0-9]+\|8\|22\|' \ |
32 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/implementation/reso
lution/class_members\.dart\|22\|8\|25\|' \ | 32 » | grep -v -E 'INFO\|HINT\|UNUSED_IMPORT\|.*/compiler/src/resolution/clas
s_members\.dart\|22\|8\|25\|' \ |
33 | sed -e "s,$(PWD)/,," \ | 33 | sed -e "s,$(PWD)/,," \ |
34 | awk -F'|' '{print $$4 ":" $$5 ":" $$6 ":\n [" n$$3 "]" $$8 }' \ | 34 | awk -F'|' '{print $$4 ":" $$5 ":" $$6 ":\n [" n$$3 "]" $$8 }' \ |
OLD | NEW |