Skip to content

Commit feef8a8

Browse files
committed
Minor
1 parent 2bf587c commit feef8a8

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ dotnet_diagnostic.CA1856.severity = error
6868
# CA2252: Opt in to preview features before using them
6969
dotnet_diagnostic.CA2252.severity = error
7070

71+
# CA1303: Do not pass literals as localized parameters
72+
dotnet_diagnostic.CA1303.severity = silent
73+
7174
# CA1707: Identifiers should not contain underscores
7275
dotnet_diagnostic.CA1707.severity = none
7376

@@ -86,6 +89,12 @@ dotnet_diagnostic.CA1819.severity = none
8689
# IDE0305: Use collection expression for fluent
8790
dotnet_diagnostic.IDE0305.severity = none
8891

92+
dotnet_code_quality.api_surface = all
93+
dotnet_code_quality.required_modifiers = none
94+
dotnet_code_quality.enum_values_prefix_trigger = AnyEnumValue
95+
dotnet_code_quality.try_determine_additional_string_formatting_methods_automatically = true
96+
dotnet_code_quality.use_naming_heuristic = true
97+
8998
##########################################
9099
# Language Rules
91100
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules

JL.Windows/ConfigManager.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,17 @@ internal sealed class ConfigManager
177177
public KeyGesture SelectNextLookupResultKeyGesture { get; private set; } = new(Key.Down, ModifierKeys.Alt);
178178
public KeyGesture SelectPreviousLookupResultKeyGesture { get; private set; } = new(Key.Up, ModifierKeys.Alt);
179179
public KeyGesture MineSelectedLookupResultKeyGesture { get; private set; } = new(Key.D5, ModifierKeys.Alt);
180-
181180
#endregion
182181

183182
#region Advanced
184183

185184
public int MaxSearchLength { get; private set; } = 37;
186185
public int MaxNumResultsNotInMiningMode { get; private set; } = 7;
186+
187+
#pragma warning disable CA1056 // URI-like properties should not be strings
187188
public string SearchUrl { get; private set; } = "https://www.google.com/search?q={SearchTerm}&hl=ja";
189+
#pragma warning restore CA1056 // URI-like properties should not be strings
190+
188191
public string BrowserPath { get; private set; } = "";
189192
public bool DisableHotkeys { get; set; } // = false;
190193
public bool GlobalHotKeys { get; private set; } = true;

JL.Windows/GUI/EditAudioSourceWindow.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ internal sealed partial class EditAudioSourceWindow
1818
private readonly string _uri;
1919
private readonly AudioSource _audioSource;
2020

21+
#pragma warning disable CA1054 // URI-like parameters should not be strings
2122
public EditAudioSourceWindow(string uri, AudioSource audioSource)
23+
#pragma warning restore CA1054 // URI-like parameters should not be strings
2224
{
2325
_uri = uri;
2426
_audioSource = audioSource;

0 commit comments

Comments
 (0)