maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
219 stars 45 forks source link

Linter #247

Open maxitg opened 4 years ago

maxitg commented 4 years ago

The code consistency is currently somewhat out of whack. Tabs and spaces are used inconsistently, indentation is different, the line width is not enforced, etc.

We need a linter that would work along with CI and if not automatically fix then at least detect issues with code style and consistency.

Some lint tests we might want are:

Linters we need:

taliesinb commented 4 years ago

If we incorporate macros like ModuleScope (see https://github.com/maxitg/SetReplace/pull/461) then we should detect buried macros in the linter itself, since they don't evaluate properly (they do actually evaluate, but at runtime, which is quite slow).

daneelsan commented 4 years ago

May be relevant: https://github.com/WolframResearch/codeinspector

daneelsan commented 4 years ago

Formatter: https://github.com/WolframResearch/codeformatter