我正在尝试使用指向 SonarQube 5.4 的 Sonar-Scanner 2.6 在本地运行分析。本地解决方案文件夹包含云分析中使用的sonar-project.properties文件。
我正在尝试创建要在本地使用的属性文件,该文件与全局sonar-project.properties文件分开。这是我运行的命令:
sonar-scanner -D project.settings=sonar-project-local.properties
Run Code Online (Sandbox Code Playgroud)
预期行为:在两个文件(sonar-project.properties和sonar-project-local.properties)中,sonar-scanner 将选择本地文件。
观察到的行为:如果文件sonar-project.properties存在,sonar-scanner 将使用全局文件并忽略本地文件。
如果我从目录中删除(重命名)全局文件,则可以识别本地文件,并且行为符合预期。
这是一个错误吗?在不弄乱全局属性文件的情况下解决此问题的方法是什么?
我有一个,当鼠标悬停在其上方时,Textblock我想打开它。Popup我已经IsOpen使用MultiBindingto和 to绑定了属性,并且它可以工作,除了当鼠标从文本移动到弹出窗口时,弹出窗口会闪烁Popup。IsMouseOverTextBlockIsMouseOver
闪烁的原因是引擎盖下事件的执行顺序:
鼠标从textblockto移动popup--> IsMouseOveroftextblock被设置为false-->两个参数都为 false 时调用IsMouseOver转换器 --> 只有此时ofpopup被设置为true-->两个参数都为 false 时执行转换器,弹出窗口消失 -->调用转换器并再次执行,因为之前为 popup 引发了另一个事件IsMouseOver,这次--> popup的IsMouseOverPopup True 再次出现。我尝试添加StaysOpen=False,但它的关闭/行为永远不会与预期不同。
问题:如何避免闪烁?
代码:
<Grid>
<ListBox ItemsSource="{Binding RandomNames}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Text="Name: "
Grid.Column="0"/>
<TextBlock Grid.Column="1"
x:Name="NameBlock"
Text="{Binding}">
<TextBlock.Style>
<Style …Run Code Online (Sandbox Code Playgroud) 我正在尝试从Perforce迁移到Git.我们的发展结构如下:
版本1.3.0已创建,开发,发布到生产中.继续发展,版本1.3.1已经分支和开发等.
目前,我们有一大堆版本以递增的顺序创建.我的任务是将这些版本作为连续分支导入,即分支1.3.1来自1.3.0; 分支1.4.0来自分支1.3.1等...
我使用以下命令集:
git init
git config --add git-p4.branchList 1.3.0:1.3.1
#continue configuration for all of the branches
git p4 sync --detect-branches //depot/path/to/code@all
Run Code Online (Sandbox Code Playgroud)
最终的branchList配置看起来像这样:
[git-p4]
branchList = 1.3.0:1.3.0
branchList = 1.3.0:1.3.1
branchList = 1.3.1:1.4.0
branchList = 1.4.0:1.5.0
etc...
Run Code Online (Sandbox Code Playgroud)
当我运行上面的命令时,我收到一个错误:
Importing revision 457240 (18%)
Importing new branch common/1.4.0
Resuming with change 457240
fatal: ambiguous argument 'refs/remotes/p4/common/1.3.1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Command …Run Code Online (Sandbox Code Playgroud)