OLD | NEW |
(Empty) | |
| 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 |
| 3 # BSD-style license that can be found in the LICENSE file. |
| 4 |
| 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 |
| 7 # analyzer, or due to patterns in dart2js (for example, unused imports of |
| 8 # helpers.dart). |
| 9 # |
| 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 |
| 12 # use this Makefile. |
| 13 |
| 14 SDK_DIR=../../../xcodebuild/ReleaseIA32/dart-sdk |
| 15 PACKAGE_ROOT=../../../xcodebuild/ReleaseIA32/packages/ |
| 16 |
| 17 all: |
| 18 @echo $(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) repeat_poi.dart |
| 19 @$(SDK_DIR)/bin/dartanalyzer -p $(PACKAGE_ROOT) \ |
| 20 --package-warnings --machine ../poi/repeat_poi.dart 2>&1 \ |
| 21 | grep -v DEPRECATED_MEMBER_USE \ |
| 22 | grep -v DEAD_CODE \ |
| 23 | grep -v 'INFO|HINT|ARGUMENT_TYPE_NOT_ASSIGNABLE|' \ |
| 24 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/cps_ir/opt
imizers\.dart|7|8|27|' \ |
| 25 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/dart2jslib
\.dart|26|8|22|' \ |
| 26 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/dart_types
\.dart|17|8|22|' \ |
| 27 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/deferred_l
oad\.dart|59|8|11|' \ |
| 28 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/elements/e
lements\.dart|28|8|25|' \ |
| 29 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/elements/m
odelx\.dart|8|8|25|' \ |
| 30 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/js_emitter
/js_emitter\.dart|47|8|25|' \ |
| 31 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/library_lo
ader\.dart|25|8|22|' \ |
| 32 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/patch_pars
er\.dart|120|8|22|' \ |
| 33 | grep -v 'INFO|HINT|UNUSED_IMPORT|.*/compiler/implementation/resolution
/class_members\.dart|22|8|25|' \ |
| 34 | sed -e "s,$(PWD)/,," \ |
| 35 | awk -F'|' '{print $$4 ":" $$5 ":" $$6 ": [" $$3 "]" $$8 }' \ |
OLD | NEW |