Comments (3)
r617 adds basic cyclomatic complexity calculations. There are user-defined limits with the COMPLEXITY_CUTOFFS
keyword. The complexity computation should be further refined because currently it will parse comments and string literals while also not counting CASE
and SWITCH
statements correctly.
from idldoc.
There is a better IDL code parser now in the complexity calculation and modified cyclometric complexity is now computed as well. But to get the complexity right, a full IDL parser (or more heuristics) is needed because the :
indicating a case in a SWITCH
or CASE
statement is also used in the ternary operator, a label, and array indexing.
from idldoc.
8e0dd39 adds bracket level as a heuristic to determine what type of :
is used. Problems with this approach:
- misses ternary operators inside parentheses or square brackets
- counts labels, but this might be a good idea to count towards complexity since a label is generally used with
GOTO
orON_IOERROR
as a target to jump to
This is not perfect, but I think that a full IDL parser would not be worth it.
from idldoc.
Related Issues (20)
- Subversion keywords are interpreted as equations
- Update to MathJax v2.0 HOT 2
- Ability to show only commands in code snippets HOT 1
- Inherited properties HOT 1
- Use sphinx to generate documentation
- Directives for specific output types
- Problem parsing BEGIN with an extra $ after it HOT 1
- Images not referenced correctly in LaTeX output HOT 1
- Display of links in LaTeX output
- Properties and fields should be in alphabetical order HOT 1
- Make install target
- Fields don't show default value HOT 2
- Make "Get" and "Set" an IDLdoc keyword like "GetProperty" and "SetProperty"
- Shows ancestor class methods HOT 1
- Filter errors/warnings in output
- Update available
- rst code markup should link to online docs HOT 1
- Multiple arguments per line
- COMMENT_STYLE keyword only changes the extension of the output HOT 5
- undefined procedure: 'MGCOARRAYLIST__DEFINE' when running first tutorial example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idldoc.