Is it possible to ignore particular files
Vad1mo opened this issue · comments
Vadim Bauer commented
Hello
I would like to ignore some .property files. The case is we have some property files that are encrypted with Git-Crypt and SonarQube fails with an exception on those files.
Is this possible or is there a workaround?
2016.05.10 15:32:31 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVSbTC6lQLN8vNO4Q9qz
org.apache.ibatis.exceptions.PersistenceException:
### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.sonar.db.issue.IssueMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 83 INSERT INTO issues (kee, rule_id, severity, manual_severity,
message, line, locations, gap, effort, status, tags,
resolution, checksum, assignee, author_login, issue_attributes, issue_creation_date, issue_update_date,
issue_close_date, created_at, updated_at, component_uuid, project_uuid, issue_type)
VALUES ('AVSbTDzCj_tb5JdOIcXS', 1922,
'CRITICAL',
'0', 'Parse error at line 1 column 58:
1: Parse error at line 1 column 58:
1: �GITCRYPT�×P�¨ù��í$�¼¼T7uºd����ÿ+îMõ��ï�îüU_%J�¡Xååãv5Ö�«´|KÄ1Zι/©J�^�:�(,}ëÌ�h<h}�¥,éÈÔ�ÕPä<ªs%-{��À>�³Çí
?,
NULL, 5, 'OPEN',
NULL, NULL, '5687e8a708ba3f3f5da80b2afb4178ea',
NULL, NULL,
'',
1462894307000,1462894307000, NULL,
1462894350677, 1462894350677,
'AVSbMf9fj_tb5JdOIcQU', 'AVQ-g5IuRb5K__FaBHBZ', 2) was aborted. Call getNextException to see the cause.
### Cause: org.apache.ibatis.executor.BatchExecutorException: org.sonar.db.issue.IssueMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Batch entry 83 INSERT INTO issues (kee, rule_id, severity, manual_severity,
message, line, locations, gap, effort, status, tags,
resolution, checksum, assignee, author_login, issue_attributes, issue_creation_date, issue_update_date,
issue_close_date, created_at, updated_at, component_uuid, project_uuid, issue_type)
VALUES ('AVSbTDzCj_tb5JdOIcXS', 1922,
'CRITICAL',
'0', 'Parse error at line 1 column 58:
1: Parse error at line 1 column 58:
David RACODON commented
Hi,
You can exclude files in several ways: http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus