Comments (2)
Quit
, Echo
, etc. are considered suspicious in package code because they are generally not intended to be in package code, and their presence is a bug.
This can happen because they were left in during debugging
This can also happen because code is copied from a notebook, where it is more acceptable to use Quit
, Echo
, etc.
The presence of these symbols is not always a problem, which is why this rule has confidence of 0.55.
Right now, the rule is only looking at the presence of the symbol itself.
When more specific patterns are developed and the context of the symbols in the surrounding code is better understood, then there will be fewer false positives and I will increase the confidence in the rule.
from codeinspector.
This is useful. I've left a stray Echo
in there before.
from codeinspector.
Related Issues (13)
- CodeInspectBoxSummarize[File["path"]] causes errors HOT 2
- Publish 1.2 to paclet server HOT 2
- Error Get::noopen: Cannot open CodeFormatter`. HOT 1
- "Duplicate keys in list of rules." in the presence of conditions HOT 3
- Some important CodeInspect hints do not get shown (too low confidence?) HOT 1
- Generalize OptionsPattern inspection HOT 2
- OptionsPattern inspection should not trigger within SyntaxInformation HOT 3
- Add textual output support for CLI usage HOT 6
- Avoid scanBadSymbols to be Error. HOT 6
- CodeInspect does not know about ApplyTo sugar HOT 3
- Resolution of Language specific messages HOT 1
- Warnings about letterlike characters in identifiers HOT 5
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 codeinspector.