GithubHelp home page GithubHelp logo

stdevel / simple-linter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

Simple Docker image for linting some filetypes

License: GNU General Public License v3.0

Dockerfile 7.41% Python 92.59%
docker docker-compose dockerfile docker-image linting linter lint yamllint ansible-lint ansible-lint-docker flake8 pylint shellcheck

simple-linter's Introduction

build our image

simple-linter

Very simple container based on Alpine that runs several linting tools:

Building

Build the container:

$ docker build -t simple-linter .

Test with demo content:

$ docker run -v `pwd`/demo:/data simple-linter
./demo.yml
  3:12      warning  truthy value should be one of [false, true]  (truthy)

./demo.py:1:21: W292 no newline at end of file
************* Module demo
demo.py:1:0: C0304: Final newline missing (missing-final-newline)
demo.py:1:0: C0114: Missing module docstring (missing-module-docstring)

-------------------------------------
Your code has been rated at -10.00/10

./demo.sh
  2:1       warning  missing document start "---"  (document-start)
  3:13      error    no new line character at the end of file  (new-line-at-end-of-file)

You can also use the entrypoint.py script directly and set a working directory or other options:

Parameter Description
-E / --exclude Excludes particular files (can be used multiple times)
-d / --debug Enable debugging outputs (default: no)
-l / --list Only lists files (default: no)

simple-linter's People

Contributors

stdevel avatar

Watchers

 avatar

simple-linter's Issues

Only detects files if they sport an extension

The simple-linter relies on file extensions to detect files.

Unfortunately you might encounter scripts that do not have an file extensions because they rely on an appropriately set shebang line.

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.