Comments (5)
Yes, this is working as intended.
For example, a few weeks ago this caught a real bug in the Mathematica startup code when this code was mistakenly added:
аnimationRepetitions = foo[]
Can you see the problem? It is subtle. (I deliberately did not turn on mathematica coloring)
I do agree that there might be value in allowing some ranges of characters but I'm afraid it would be a slippery slope and I'm not sure what that design would look like.
In the meanwhile, feel free to programmatically filter the output of CodeInspect
.
from codeinspector.
Lints can always be turned off. I find it useful when it reports more rather than less, and I simply turn off whatever is not relevant to my own use case. (In fact, for every package on which I use this tool, I have a list of lints to turn off.)
Just don't fall into the trap of trying to change your code just to shut up the linter. It's a tool meant to help you find issues, not an overlord to satisfy 😄
from codeinspector.
I would turn the whole UnexpectedLetterlikeCharacter
off, but seems that it shares the same name when the characters fall into Utils::isMBStrange
. The only difference is that the confidence is higher for the latter case. I wonder if it is true that for isMBStrange
characters, a Unexpected character
warning will also be thrown? So that I don't need to worry that supressing UnexpectedLetterlikeCharacter
will ignore the non-characters.
from codeinspector.
The idea is that UnexpectedLetterlikeCharacter
lints are at the "token" level and UnexpectedCharacter
lints are at the "character" level.
Right now, any character that gives UnexpectedLetterlikeCharacter
will also give UnexpectedCharacter
.
isMBStrange
is for the "character" level and isMBStrangeLetterlike
is for the token level.
from codeinspector.
Thanks for the explanation. Closing this issue.
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
- Why are sessionSymbols considered suspicious? HOT 2
- "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
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.