Git Product home page Git Product logo

Comments (5)

bostick avatar bostick commented on July 30, 2024

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.

szhorvat avatar szhorvat commented on July 30, 2024

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.

kenkangxgwe avatar kenkangxgwe commented on July 30, 2024

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.

bostick avatar bostick commented on July 30, 2024

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.

kenkangxgwe avatar kenkangxgwe commented on July 30, 2024

Thanks for the explanation. Closing this issue.

from codeinspector.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.