Skip to content

Louisa-CMC/Acuminator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acuminator

Acuminator is a static code analysis and colorizer tool for Visual Studio that simplifies development with Acumatica Framework. Acuminator provides diagnostics and code fixes for common developer challenges related to Acumatica Framework. Also, Acuminator can colorize and format BQL statements, and can collapse attributes and parts of BQL queries.

Diagnostics and Code Fixes

In the code based on Acumatica Framework, Acuminator finds common mistakes and typos that are usually not so easy to find, such as the following:

  • Incorrect signatures of PXAction handlers
  • Typos in the names of view delegates
  • PXStringList declarations without PXDBString
  • C#-style inheritance from PXCacheExtension

For the errors it finds, Acuminator suggests code fixes. For the full list of supported diagnostics and code fixes, see Acuminator Release Notes.

Code Coloring, Formatting, and Outlining

Acuminator colorizes and formats BQL statements, which improves the readability of long BQL queries. You can adjust the colors in the Visual Studio settings.

Acuminator can collapse parts of BQL queries and the code inside attributes to small tags, which makes it easier for you to focus on the parts of code related to the current task.

The Process of Building the Solution

To build the solution, do the following:

  1. Create the lib folder in the root folder.
  2. Add PX.Data.dll, PX.Data.BQL.Fluent.dll, PX.Common.dll, PX.BulkInsert.dll, PX.Objects.dll, and PX.DbServices.dll (from Acumatica ERP 2019R1 or higher) to the lib folder.
  3. Add your strong-name key file as src/key.snk. If you don't have one, run Developer Command Prompt and generate the key by using the following command: sn.exe -k "src\key.snk".
  4. Open src/Acuminator/Acuminator.Analyzers/Properties/AssemblyInfo.cs and change the public key in the InternalsVisibleTo attribute to your own. To extract the key from the strong-name key file, do the following:
    1. In Developer Command Prompt, extract the public key from the snk file to a txt file as follows: sn.exe -p "src\key.snk" "src\publickey.txt".
    2. Display the public key to the console by using the following command: sn.exe -tp "src\publickey.txt".
  5. Build Acuminator.sln.

Documentation

Developer Documentation

Release Notes

Release Notes

About

Acumatica-specific extension for Visual Studio

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.9%
  • PowerShell 0.1%