Giter Club home page Giter Club logo

183lint's People

Contributors

willwolfram18 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

183lint's Issues

spacing incorrect around ! operator

code:
if (!cin || !isValidDate(month, day, year)) {

But
if (! cin || ! isValidDate(month, day, year)) { //gives
Line 320, Column 9: Incorrect spacing around ! operator.
Line 320, Column 18: Incorrect spacing around the unary ! operator.

Asserts being flagged as ternary operators

Any time I have an assert statement, it's being flagged as using a ternary operator.

For instance:

assert(!inSortedVector(nums, 5));

Gets me this feedback:

Line 25, Column 5: EECS 183 advises against the use of the ternary operator (e.g. int x = foo() ? 1 : 2).

Spacing for angle brackets in static_cast

I had the line of code

int num_batches = ceil(static_cast<double>(num_people)/PER_BATCH);

and I received the feedback

Line 46, Column 39: Incorrect spacing around < operator.

Create more intuitive UI

Complaints have been made, stating it isn't clear which files are correct and which ones have errors. One design idea is grouping incorrect files in box, which can be further broken into individual files

Improper handling of operator overloads

Does not catch spacing errors on operators that are overloaded by classes. Example code that can create the bug:

string s = "Hello";
s = s+"goodbye";
// as well as
if (!cin || true)
{
}

Issue discovered by Professor Dorf in ticket #3

Operators in chars (and maybe strings)

For the following code, it results in a style error:

   } else if (slash1 != '/' || slash2 != '/' ||

Error message:

Incorrect spacing around / operator.

Incorrect spacing around << operator.

style guide extraction incorrect spacing

The spacing shouldn't lead to a style error (it just splits a really long line on the extraction operator), but I'm getting the error in the title

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.