Commit graph

276 commits

Author SHA1 Message Date
Stepan Koltsov
0e3ade060c
Better link to clang-format in README.md (#1766)
Link to clang-format configuration page.
2021-07-15 08:49:40 -05:00
Stepan Koltsov
44e69ba2ff
Minor clang-format linter cleanup (#1764)
Follow-up to #1762
2021-07-14 16:05:37 -07:00
Lukas Gravley
1481793072
adding clang (#1762)
* adding clang

* fix hado

* adding files

* fixing naming

* fixing test

* fixing space

* removing config file

* fix tests

* fix tests

* fix file array
2021-07-14 14:43:10 -05:00
Aldana Vaca
8b75fbf345
Adding terrascan config file (#1761)
* adding terrascan config file

* fix line ending

Co-authored-by: Admiral Awkbar <admiralawkbar@github.com>
2021-07-14 10:20:24 -05:00
Thomas Iguchi
fad8d1cde2
Added support for changing Checkstyle rules file name (#1760)
Resolves https://github.com/github/super-linter/issues/680
2021-07-14 09:45:07 -05:00
Lukas Gravley
100c674c6d
adding tflint config (#1753) 2021-07-13 09:44:27 -05:00
Lukas Gravley
d24eb27b4c
move from jsonlint to eslint (#1752)
* move from jsonlint to eslint

* move from jsonlint to eslint

* adding test
2021-07-13 09:10:37 -05:00
Stepan Koltsov
e059100991
Ignore files marked with @generated marker (#1689)
* Ignore files marked with @generated marker

`@generated` marker is used by certain tools to understand that the
file is generated, so it should be treated differently than a file
written by a human:
* these files do not need to be reformatted,
* diffs in these files are less important,
* and linters should not be invoked on these files.

This PR proposes builtin support for `@generated` marker (and
`@not-generated` marker to mark file as not generated when it
contains `@generated` marker, like `README.md`).

I have not found a standard for a generated file marker, but:
* Facebook [uses `@generated` marker](https://tinyurl.com/fb-generated)
* Phabricator tool which was spawned from Facebook internal tool
  [also understands `@generated` marker](https://git.io/JnVHa)
* Cargo inserts `@generated` marker into [generated Cargo.lock files](https://git.io/JnVHP)

Super-linter supports regex includes and excludes, but they are
harder to maintain (each repository needs to be configured) than
patching the tools which generate the files.

My personal story is that I maintain rust-protobuf crate, which
started emitting `@generated` markers [six years ago](https://git.io/JnV5h)
after a request of a Phabricator user.

Test Plan:

Create a test file `test.sh`:

```
echo $a
```

Run:

```
docker run -e RUN_LOCAL=true -v $HOME/tmp/g:/tmp/lint super-linter-test
```

Result is:

```
In /tmp/lint/test.sh line 1:
echo $a
^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
     ^-- SC2154: a is referenced but not assigned.
     ^-- SC2086: Double quote to prevent globbing and word splitting.
...
2021-06-22 23:46:16 [ERROR]   ERRORS FOUND in BASH:[1]
```

Now add `@generated` to the file and run again:

```
2021-06-22 23:47:13 [NOTICE]   All file(s) linted successfully with no errors detected
```

Additionally, add `@not-generated` in addition to `@generated`, and
linter error pops up again.

* cleanup

* remove space

* fix non utf return

* fix non utf return

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-06-28 07:59:11 -05:00
Marco Ferrari
d5b94b9108
Fix README issues (#1666) 2021-06-15 19:11:45 +02:00
Lukas Gravley
2c135d4a17
adding rules file (#1644)
* adding rules file

* fix naming

* cleanup

* make smart

* fixing the make

* adding template

* white space

* not sure how i got windows

* found the space
2021-06-09 11:53:11 -05:00
Lukas Gravley
4faa6433ab
adding find algorithm (#1640)
* adding find

* add default value
2021-06-08 10:40:59 -05:00
Lukas Gravley
6ce478c991
Kube (#1609)
* adding var

* adding var

* bug

* spacing

* better name
2021-06-01 15:04:25 -05:00
Zack Koppert
ac6fdebd7f
Add community activity stats (#1602) 2021-06-01 09:03:37 -05:00
Lukas Gravley
87a442b6fe
fix slim docs (#1598)
* fix slim doc:

* Update README.md

* fix v3 refs
2021-05-26 16:50:06 -05:00
Tomer Figenblat
27235b3023
docs: added missing c# to list of slim removed langs (#1597) 2021-05-26 15:39:54 -05:00
Lukas Gravley
83badbc49c
Image 4.0 (#1565)
* adding new one...

* adding automation

* linter

* pull apart for faster builds

* maybe

* update automation

* fix that

* prime is smart

* fixed it

* quotes

* fix build image

* inpec

* typo

* forgot backslash

* fixed hairbrain logic

* this should help cleanup

* i hate r

* order

* maybe fix r

* maybe fix r

* update readme

* remove spaces

* update
2021-05-25 10:14:43 -05:00
Lukas Gravley
3e0bd7fff4
Eslint for json jsonc and json5 (#1524)
* adding it

* fix typo

* fix tests

* adding back jsonlint

* adding back jsonlint

* fix spacing

* found the typo

* add tests

* adding rules for json

* add to local
2021-05-11 10:54:58 -05:00
Lukas Gravley
5d96acadf1
remove more dead weight (#1530)
* remove more dead weight

* more cleaner

* falling into place

* tie dotnet to version

* new low
2021-05-10 09:58:30 -05:00
Lukas Gravley
5d2ea81f00
Cpp (#1492)
* adding cpp

* adding cpp

* tests

* make test better

* fix test
2021-05-04 13:24:41 -05:00
Lukas Gravley
5f5904883d
remove tap and tests (#1496)
* remove tap and tests

* fix proto

* remove dumb test
2021-04-30 12:46:24 -05:00
Lukas Gravley
80b7d1377a
fix var name (#1491) 2021-04-27 14:33:48 -05:00
Lukas Gravley
e0e4a67f3a
Certs (#1470)
* adding cert

* update readme

* typo

* make exec

* spaces

* adding better way

* adding example

* make shell happy

* fix space

* adding notes

* bad var

* duh
2021-04-26 09:00:42 -05:00
Marco Ferrari
527c5a3986
Generate a code coverage report (#1353)
* Generate a code coverage report

* make linters happy

* adding action and badge

* no report for me

* Upload the test report

* adding folders

* spaces not tabs

* makefiles love tabs

* spacing is important

* rawr

* Fix makefile

* Add diagnostic info

* Set UID and GID

* Make info

* Add docker images in diagnostic info

* Move info before testing the local action

* Add missing -C to git diff-tree

* Reset ownership

* Add missing quotes

* Sudo

* Attempt to fix ARM test

* Attempt to fix go test

Co-authored-by: Admiral Awkbar <admiralawkbar@github.com>
2021-04-22 13:56:18 -05:00
Erik Godding Boye
a908937c78
Add new ENV VAR to set ansible-lint config file (#1424) 2021-04-11 20:24:43 -07:00
Lukas Gravley
08a586cf3b
adding Python MyPy (#1401)
* adding fun

* fix whitespace

* adding tests

* adding the array

* bug in file name

* fix tap

* makes no sense

* adding the hammer

* adding some extra protbuf
2021-03-24 14:00:23 -05:00
Andreas Fritzler
1367534603
Allow to override github api url (#1395) 2021-03-23 13:26:14 -05:00
Lukas Gravley
3d39df7f0e
adding it (#1396)
* adding it

* i kant read

* make go go away
2021-03-23 12:02:16 -05:00
Andreas Fritzler
130b6ac1a5
Added support for custom github domain for status target url (#1367) 2021-03-15 15:19:54 -05:00
Tom Pansino
7b8e3189d8
Support custom markdownlint rules (#1306)
* Support custom rules with markdownlint

* Add MARKDOWN_CUSTOM_RULE_GLOBS to README.md

* Fix shellcheck issues and use bash array for globs

* Fix shfmt issues

Co-authored-by: Gabriel Diaz <gabo.fdc@gmail.com>
2021-03-10 09:06:06 -06:00
Antonio Yang
60e2561b15
Add clippy for rust (#1277)
* Add clippy for Rust

* Update ARM test cases

- fix arm good test case
- update tap report

* Lint github workflows release config
2021-03-08 14:13:04 -06:00
Lukas Gravley
d08565c8d7
Add template (#1273)
* adding template for users to pull

* adding template
2021-02-26 14:40:21 -06:00
Antonio Yang
f47b363f71
Add rustfmt for Rust (#1250)
* Add linter for Rust

- add 2015 edition
- add 2018 edition

* Add tap reports

- add tap reports
- fix good test case

* 1 command=lesslayers

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-02-26 08:47:21 -06:00
Marco Ferrari
b6bbc88e8e
Ignore files that are ignored by Git (#1185)
* Ignore files that are ignored by Git

* Add missing continue statement

* Fix linting errors

* Fix linting errors

* like it

* like it

* Add the IGNORE_GITIGNORED_FILES variable

* Fix setting the Ansible directory when running tests

* Fix var export

* Update linter.sh

Co-authored-by: Admiral Awkbar <admiralawkbar@github.com>
2021-02-18 12:15:50 -06:00
JonZeolla
7c36dcdc1a
Fix the default hadolint rule name in the documentation (#1179)
* Fix default hadolint rule name

* Rename github actions hadolint config in line with the default
2021-02-03 09:13:02 -06:00
Marco Ferrari
ab8780a58f
Install, configure, and run jscpd. Add missing tests (#1032)
Co-authored-by: Gabo <gabo.fdc@gmail.com>
Co-authored-by: Matt Desmond <beardofedu@github.com>
Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-01-27 20:47:34 +01:00
Lukas Gravley
e11786a54c
Adding Flag for Possum (#1149)
* adding a bad feature

* fix hadolint
2021-01-19 11:03:14 -06:00
Aaron Sky
328b17bbc8
Improved ANSIBLE_DIRECTORY validation to support the repository root (#1111)
* Improved ANSIBLE_DIRECTORY validation to support the repository root

Fixes #1110, which prevents linting playbooks at the root of the repository from being supported.

* Trim whitespace

* Remove undesired extra validation condition

Addressing review feedback from @ ferrarimarco

* Avoid mutating ANSIBLE_DIRECTORY beyond the extent that was already in place

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-01-04 13:38:46 -06:00
Gabriel Diaz
8ba80c11b9
Improve LINTER_RULES_PATH docs, about it beein relative (#1093)
* Improve LINTER_RULES_PATH docs, about it beein relative

* Update using-rules-files.md

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2021-01-04 11:11:35 -06:00
Lukas Gravley
193de39afd
Adding support for Prettier (#1118)
* adding it

* fix spaces

* vars were backwards

* remove prettier from function test
2021-01-04 11:07:57 -06:00
Darwin
1bf782815d
An additional GitLab example (#1065)
Co-authored-by: Darwin Sanoy <dsanoy@gitlab.com>
Co-authored-by: Gabriel Diaz <gabo.fdc@gmail.com>
2020-12-24 10:59:22 -05:00
Adam Ralph
74f4b9bd1d
fix typo in README.md (#1023) 2020-11-23 09:03:21 -06:00
Lukas Gravley
cf19607c3c
Gherkin (#1011)
* adding gherkin

* adding to array

* fix space

* Update Dockerfile

* adding rules

* adding rules

Co-authored-by: SVN Migrator <someone@somewhere.com>
2020-11-19 09:54:20 -06:00
Christian Oliff
48be2ed961
Mention that the default branch is usually master or main
Since 'main' is the now the default for new repos moving forward.
2020-11-09 16:16:07 +09:00
Joseph Marino
b3c947067e
Fixed dead PHPStan link in README
Changed https://phpstan.org/n to https://phpstan.org.
This should close issue #958
2020-11-04 15:23:31 -05:00
Gabo
26fb7bf8d3 update readme 2020-10-28 19:07:35 -05:00
Lucas Gravley
dbffb46526 adding tests 2020-10-28 10:22:55 -05:00
Joseph Marino
c846cfd9ce
Added "Using your own rules files" to the README
Added a "Using your own rules files" section to the
README under the "Template rules" section.
This section may help developers new to super-linter
avoid running into issues #864 and #685.
2020-10-25 20:06:49 -04:00
Lucas Gravley
d8b13b0fd8 now with files 2020-10-13 10:21:23 -05:00
Lukas Gravley
6bde44e755
Merge pull request #824 from mshimokura/ecrc_file
editorconfig-checker - Use .ecrc Files
2020-10-12 10:24:00 -05:00
Michael Shimokura
a5cada70f8 Revert "rename the variable to EDITORCONFIG_CHECKER_FILE_NAME for clarity"
This reverts commit 23a463867d.
2020-10-09 09:13:37 -04:00