Giter Site home page Giter Site logo

flake8-json's People

Contributors

asottile avatar jeffols avatar pre-commit-ci[bot] avatar sigmavirus24 avatar tomasr8 avatar williamjohns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flake8-json's Issues

Update codeclimate formatter to never show source

The codeclimate formatter breaks if the show source option is activated. This option would previously insert the source line, where the error occured as raw text into the json. This leads to parsing errors, when reading the generated json output. With the proposed changes, the source line will never be inserted.

Fix json output when filenames contain special characters - [merged]

In GitLab by @asottile on Aug 11, 2019, 21:27

Merges invalid_filenames -> master

Before:

$ flake8 ../x/foo\"bar\".py --format=json | jq .
parse error: Invalid numeric literal at line 1, column 15

After:

$ flake8 ../x/foo\"bar\".py --format=json | jq .
{
  "../x/foo\"bar\".py": [
    {
      "code": "F401",
      "filename": "../x/foo\"bar\".py",
      "line_number": 1,
      "column_number": 1,
      "text": "'os' imported but unused",
      "physical_line": "import os\n"
    }
  ]
}

Report violations as noqa'd when using --disable-noqa

In GitLab by @pawamoy on Apr 6, 2021, 08:22

Hello @asottile, thanks for all the work you've done on flake8 and plugins :slight_smile:

I was wondering: does flake8 provide the necessary information for flake8-json to report a violation as disabled with a noqa comment, when using flake8's --disable-noqa option? Knowing if a violation is disabled would help generating reports without having to run flake8 twice (once normally, once by disabling noqas) to compute the difference, or without having to parse the noqa comments ourselves.

If flake8 itself does not provide that information, then I'll see if I can open a ticket on flake8's bugtracker instead :slight_smile:
Maybe you'd also like to share your opinion on the subject? Does what I'm trying to achieve make sense?

Pretty-printing JSON?

By default, the output is not pretty-printed. We would love to add that as a separate formatter option, though.

Hello, are you still interested in adding support for pretty-printing the output?
If so, I'd be happy to contribute this option :)

Fix broken codeclimate format - [merged]

In GitLab by @NaughtMeta on Jan 18, 2021, 16:15

Merges metabytez-master-patch-71623 -> master

  • Update invalid class reference in super call for CodeClimateJSON.start
  • Update CodeClimateJSON._fingerprint to encode string data first, and return the hexdigest

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.