BlueDotBrigade / weevil

Filter, analyze and gain valuable insight into log files. It's all about "boring log files for tasty bytes".
http://Weevil.BlueDotBrigade.com
Apache License 2.0
14 stars 0 forks source link

Code quality: investigate enforcing DSL at compile-time using static code analysis #383

Open Pressacco opened 1 year ago

Pressacco commented 1 year ago

Indirectly related to

Pressacco commented 1 year ago

Observations

General

Spelling

Background

Compile-Time Spell Check

Update .editorconfig in the solution folder:

spelling_exclusion_path = spelling_whitelist.dic
dotnet_diagnostic.CA1704.severity = warning

When you add "Ignore" a word using VS2022 IDE Spell Checker, the work will be added to spelling_whitelist.dic.

BE ADVISED: the source code for the Roslyn analyzer suggests that it will read data from either CodeAnalysisDictionary OR spelling_whitelist.dic.

Additional Reading

Pressacco commented 1 year ago

To Do

  1. [ ] Wait until the Ignore feature to work in the new VS2022 Spell Check feature.
    • Which informs VS2022 that the selected word is valid & should be added to the white list.
  2. [ ] Using the latest Text.Analyzers, setup compile-time static code analysis.
  3. [ ] Configured the analyzer
    • block unwanted words
    • allow DSL specific terms
  4. [ ] Compile

The Weevil projects should compile as expected, and the analyzer should enforce the domain specific language.

BLOCKED waiting for Microsoft to release updated tools.