-
Notifications
You must be signed in to change notification settings - Fork 34
Super linter #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Super linter #317
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
897df2c
Adding super-linter CI
prestoncarman a9ac4c4
Adding comment to changelog
prestoncarman b8bd474
Linting update to changelog
prestoncarman aa39c10
Merge branch 'master' into super-linter
prestoncarman 0203494
Revert "Linting update to changelog"
prestoncarman 8b90360
Beginning to test CPP, Markdown and YAML linters
prestoncarman 15a7eba
Linting for consistency for markdown
prestoncarman d413158
Complete rules for cpplint
prestoncarman 3be0c88
Remove ruby linting
prestoncarman 2e8d9c3
Fixing file name
prestoncarman 803238e
Explicitly state the config file
prestoncarman 904e50f
Try json format for config file
prestoncarman f86e56c
Clean up and testing a new path
prestoncarman c90405c
Needed linter rules root path with the new custom config
prestoncarman c874daa
Trying a different config option
prestoncarman 4448d4b
Cleaned up the file endings
prestoncarman 1f1c292
Removing a few linter changes.
prestoncarman 65bad8f
Removing more linting changes
prestoncarman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Lint Code Base | ||
|
||
on: | ||
push: | ||
branches-ignore: [master, main] | ||
# Remove the line above to run when pushing to master | ||
pull_request: | ||
branches: [master, main] | ||
|
||
jobs: | ||
build: | ||
name: Lint Code Base | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
- name: Lint Code Base | ||
uses: github/super-linter/slim@v4 | ||
env: | ||
VALIDATE_ALL_CODEBASE: true | ||
FILTER_REGEX_EXCLUDE: ./cpp/arduino/avr/* | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_CPP: true | ||
VALIDATE_MARKDOWN: true | ||
VALIDATE_YAML: true | ||
LINTER_RULES_PATH: / | ||
MARKDOWN_CONFIG_FILE: /.markdown-lint.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"blanks-around-fences": false, | ||
"blanks-around-headings": false, | ||
"blanks-around-lists": false, | ||
"commands-show-output": false, | ||
"first-line-h1": false, | ||
"line_length": { | ||
"line_length": 600 | ||
}, | ||
"no-bare-urls": false, | ||
"no-duplicate-heading": false, | ||
"no-multiple-blanks": { | ||
"maximum": 2 | ||
}, | ||
"ul-indent": { | ||
"indent": 4 | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set noparent | ||
filter=-build/header_guard, -build/include, -build/include_order, -build/include_subdir, -build/include_what_you_use, -build/namespaces, -legal/copyright, -readability/alt_tokens, -readability/braces, -readability/casting, -readability/fn_size, -readability/inheritance, -readability/todo, -runtime/arrays, -runtime/explicit, -runtime/int, -runtime/printf, -runtime/references, -whitespace | ||
linelength=120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
This project is a template for a CI-enabled (and unit testable) Arduino project of your own. | ||
|
||
|
||
### Features | ||
## Features | ||
ianfixes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
* Travis CI | ||
* Unit tests | ||
* Development workflow matches CI workflow | ||
|
||
# Where The Magic Happens | ||
## Where The Magic Happens | ||
|
||
Here is the minimal set of files that you will need to adapt to your own project: | ||
|
||
|
@@ -104,6 +104,6 @@ unittest_main() | |
This test defines one `unittest` (a macro provided by `ArduinoUnitTests.h`), called `your_test_name`, which makes some assertions on the target library. The `int main` section is boilerplate. | ||
|
||
|
||
# Credits | ||
## Credits | ||
|
||
This Arduino example was created in January 2018 by Ian Katz <[email protected]>. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exclude_files=.*\.h | ||
ianfixes marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.