- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我有几个文件未通过以下消息进行分析:
Invalid character encountered in file [file name with full path] at line 9 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
在 Visual Studio 中,当我选择文件/高级保存选项时,文件被设置为西欧 (Windows) - 代码页 1252。
我将其更改为 Unicode(带签名的 UTF-8)- 代码页 65001。
但是 SonarQube 仍然提示无效字符。 “无效字符”是带有变音字符 (ä,ö,ü) 的德语注释
我该怎么做才能解决这个问题(不删除评论)?
最佳答案
用于 MSBuild 的 SonarQube 扫描器和 SonarQube C# 插件目前期望项目的所有文件都具有 UTF-8 编码 - 这是硬编码的。
有一张票可以在未来的版本中对此进行改进:https://jira.sonarsource.com/browse/SONARMSBRU-174
关于c# - Sonar "Invalid character encountered in file"未分析的一些文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33671884/
我构建了一个自定义的 EST(指数平滑)模型。首先,我定义了一个函数,其中包含传递给第二个函数的参数定义,该函数执行计算并返回预测错误。然后将这些平方并求和。然后,最小化器应优化参数,以便最小化平方误
无法解析模板“ASClass”错误信息: This template did not produce a Java class or an interface package com.example.
我正在尝试将我的井字游戏结果输出到数据库。但是,每当两个客户端之间的匹配完成时,我都会遇到此错误。这是我的服务器端代码和错误消息的摘录: 数据库类: import java.sql.*;
我想创建一个过程来检查记录是否存在,然后更新,否则插入。但是,有一个问题我试图解决,但无法解决。请帮助。 CREATE TABLE JOB_RUN ( DATE_KEY VARCHAR2(8), JO
这是我第一次在 derby 查询中创建存储过程。我正在尝试创建一个程序。当我尝试运行查询时,出现错误 Encountered "BEGIN" 代码 CREATE PROCEDURE show_name
当我运行 pyOpenTld 时,我得到 RuntimeWarning: overflow encountered in int_scalars从这个模块。为什么会这样? Warning (from
昨晚将一个disucz论坛进行转移后,发现打开的页面上回多一个PHP has encountered a Stack overflow 这个提示错误,进过翻译为“PHP遇到堆栈溢出”。我就感觉奇怪了
我是机器学习和 numpy 的新手,我一直在尝试在来自 sklearn 的波士顿住房数据集上运行梯度下降我的实现适用于小型随机数据集,但在波士顿数据集中它会产生这些警告 :12: RuntimeWar
我正在尝试在 Windows Server 2008 上使用 TortoiseSVN checkout SVN 存储库。我在 checkout 时收到错误消息“遇到不正确的参数”,仅此而已。知道这里可
我正在尝试使用 Parsec 在 Haskell 中编写解析器。目前我有一个可以解析的程序 test x [1,2,3] end 执行此操作的代码如下 testParser = do { rese
这个问题已经有答案了: Android 8: Cleartext HTTP traffic not permitted (37 个回答) 已关闭 3 年前。 我正在 Android Studio 上构
我在 angular.js 中定义了一个空模块: angular.module('todoList', [], function () { }) 然后我想在我的 conf.js 中测试它,我加载这些j
当使用OpenJPA在内存数据库org.apache.derby中执行select语句时,遇到以下错误: javax.ejb.EJBException: The bean encountered a
我需要开始处理外来字符,在这样做的过程中,我想我真的搞砸了文件的编码。 我得到的错误是: Lexical error at line 1, column 8. Encountered: "" (0)
我试图在 Python 中创建一个 sigmoid 函数,但是,我收到以下错误: RuntimeWarning: overflow encountered in exp 这是我的代码: def sig
我有三个耦合的常微分方程,我在 python 中使用 RK4 方法在给定的初始条件下求解它们。当我运行它们时,我收到以下错误: RuntimeWarning: overflow encountered
我是 Hadoop 和 Pig 的初学者。我检查了在cloudera虚拟镜像中证明的例子,并对其进行了修改以计算前5个常用词: Lines = LOAD '/user/hue/pig/examples
我是 Python 的新手,这是我编写脚本的第一件事,我只是想知道我能做些什么来删除这个警告: Warning (from warnings module): File "C:\Users\Lur
我正在编写一个 UNIX paste 克隆。然而,我不断收到“遇到断点”消息,但 VS 不会告诉我发生在哪一行。 #include #include #define INITALLOC 16
无论我是在 Visual Studio 2017 中同步还是只是使用 Git Bash 进行推送,我都会不断收到此错误。看起来 PUSH/PULL 命令有效,但我仍然看到此错误并希望它消失。 我的 W
我是一名优秀的程序员,十分优秀!