Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local compare mode takes in-code-suppressions into consideration. #858

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

dkrupp
Copy link
Member

@dkrupp dkrupp commented Aug 31, 2017

This fixes #851

@whisperity whisperity added bugfix 🔨 enhancement 🌟 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands labels Aug 31, 2017
Copy link
Contributor

@whisperity whisperity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style issues only.

@@ -21,6 +21,8 @@
from libcodechecker.logger import LoggerFactory
from libcodechecker.output_formatters import twodim_to_str
from libcodechecker.report import Report
from libcodechecker import suppress_handler
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import order is not proper here. from libcodechecker import X must precede from libcodecher.a import b.

@@ -16,6 +16,7 @@
import sys
import time
import uuid
from distutils import dir_util
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import order is not proper here. Not in this line, and not the line directly below.

@@ -45,6 +55,10 @@ def setup_package():
test_project = 'cpp'

test_project_path = project.path(test_project)
test_project_path_altered = os.path.join(TEST_WORKSPACE, "cpp_copy")
# we create a copy of the test project which we will change
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a full sentence.

@@ -16,6 +16,7 @@ void f(struct S s);

void test1() {
struct S s;
//insert_suppress_here
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put a space between // and the keyword?

@dkrupp dkrupp force-pushed the local_compare_in_code_suppress branch from 3d12010 to 97c6b39 Compare August 31, 2017 15:04
Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM! But is it a good idea to have tests alter the files instead of having a separate file with the suppression, or always having the suppression in the file?

Copy link
Contributor

@gyorb gyorb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the merge conflicts.

@dkrupp dkrupp changed the base branch from version6 to master September 5, 2017 12:24
@dkrupp dkrupp force-pushed the local_compare_in_code_suppress branch from 97c6b39 to 26fbe39 Compare September 5, 2017 12:30
@dkrupp dkrupp force-pushed the local_compare_in_code_suppress branch 2 times, most recently from 12e3eaf to 2b4a2be Compare September 14, 2017 16:53
@dkrupp dkrupp force-pushed the local_compare_in_code_suppress branch from 2b4a2be to b599589 Compare September 15, 2017 08:43
@Xazax-hun Xazax-hun merged commit c08536c into Ericsson:master Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix 🔨 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands enhancement 🌟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

source-code suppression does not work in local-compare mode
4 participants