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

Disable binary file detection for blame #4

Open
christophelevis opened this issue May 30, 2016 · 2 comments
Open

Disable binary file detection for blame #4

christophelevis opened this issue May 30, 2016 · 2 comments

Comments

@christophelevis
Copy link
Contributor

By default blame command will detect binary files (based on the presence of a NUL character) and skip blame computation:

$ hg blame -w -v --user --date --changeset src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/CharTest.java
src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/CharTest.java: binary file

In SonarQube context we expect all files to be text files so we could disable this check by using the -a parameter:
https://selenic.com/hg/help/annotate

@simonbrandhof simonbrandhof changed the title Disable binary file detection for blame (SONARSCMER-7) Disable binary file detection for blame Aug 14, 2018
@simonbrandhof
Copy link
Contributor

Ticket moved to https://jira.sonarsource.com/browse/SONARHG-5

@pmishka
Copy link

pmishka commented Sep 23, 2023

Hello, is there any solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants