Skip to content

Commit 666c219

Browse files
authored
Turned off general recommendations in all analyzers and added dnd-character test. Re-recorded golden test files. (#76)
1 parent c5f5331 commit 666c219

File tree

25 files changed

+110
-93
lines changed

25 files changed

+110
-93
lines changed

lib/common/generic_analyzer/analyzer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def analyze(in_path: Path, out_path: Path):
6262
comments.extend(generate_pylint_comments(in_path))
6363

6464
# If there are no comments, add the general recommendations as comments.
65-
if not comments:
66-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
65+
# We're disabling this for now, until we can find a better way to present these.
66+
# if not comments:
67+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6768

6869
return Analysis.summarize_comments(comments, output_file)

lib/currency-exchange/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/ellens-alien-game/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/ghost-gobble-arcade-game/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/guidos-gorgeous-lasagna/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/inventory-management/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/little-sisters-essay/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/little-sisters-vocab/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

lib/log-levels/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def analyze(in_path: Path, out_path: Path):
5959
comments.extend(generate_pylint_comments(in_path))
6060

6161
# If there are no comments, add the general recommendations as comments.
62-
if not comments:
63-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
62+
# if not comments:
63+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6464

6565
return Analysis.summarize_comments(comments, output_file)

lib/making-the-grade/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def analyze(in_path: Path, out_path: Path):
6060
comments.extend(generate_pylint_comments(in_path))
6161

6262
# If there are no comments, add the general recommendations as comments.
63-
if not comments:
64-
comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
63+
# if not comments:
64+
# comments.append(Comment(type=CommentTypes.INFORMATIVE, params={}, comment=Comments.GENERAL_RECS))
6565

6666
return Analysis.summarize_comments(comments, output_file)

0 commit comments

Comments
 (0)