Skip to content

Commit

Permalink
Restore the analyzer in the test_runner shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed May 21, 2016
1 parent 399d272 commit ef6a98d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
4 changes: 0 additions & 4 deletions lib/full.dart
Expand Up @@ -280,10 +280,6 @@ changed.''';

String get encodedContent => Gzip.encode(ice.content);

_applyMode(String mode) {

}

_attachKeyboardHandlers() {
Keys.shortcuts({
'Ctrl+N, Ctrl+O, ⌘+O, Ctrl+Shift+H': ()=> _hideDialog(focus: false)
Expand Down
1 change: 0 additions & 1 deletion test/index.html

This file was deleted.

32 changes: 16 additions & 16 deletions test/test_runner.sh
@@ -1,22 +1,22 @@
#!/bin/bash

# Static type analysis
# results=$(dartanalyzer lib/ice.dart 2>&1)
# results_ignoring_ok_deprecations=$(
# echo "$results" | \
# grep -v "'CryptoUtils' is deprecated" | \
# grep -v "'query' is deprecated" | \
# grep -v "'queryAll' is deprecated" | \
# grep -v "hints found.$"
# )
# echo "$results_ignoring_ok_deprecations"
# count=$(echo "$results_ignoring_ok_deprecations" | wc -l)
# if [[ "$count" != "1" ]]
# then
# exit 1
# fi
# echo "Looks good!"
# echo
results=$(dartanalyzer lib/ice.dart 2>&1)
results_ignoring_ok_deprecations=$(
echo "$results" | \
grep -v "'CryptoUtils' is deprecated" | \
grep -v "'query' is deprecated" | \
grep -v "'queryAll' is deprecated" | \
grep -v "hints found.$"
)
echo "$results_ignoring_ok_deprecations"
count=$(echo "$results_ignoring_ok_deprecations" | wc -l)
if [[ "$count" != "1" ]]
then
exit 1
fi
echo "Looks good!"
echo

which content_shell >/dev/null
if [[ $? -ne 0 ]]; then
Expand Down

0 comments on commit ef6a98d

Please sign in to comment.