forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate GH super linter - fix shell, markdown, python issues (Chia-…
…Network#296) * Try super-linter * Fix lint issues, move to separate gh action * Fix md, shell * Ignore import-error for python - fix MDs * Disable standard-js, initial eslint config * Fix raises, remove prettier for now * skip pylint no-member check in src/util/byte_types.py line 40 * pyinstaller windows back to INFO * Disable powershell lint for now. * Disable css validation temporarily
- Loading branch information
Showing
22 changed files
with
799 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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,41 @@ | ||
--- | ||
|
||
############################# | ||
############################# | ||
## JavaScript Linter rules ## | ||
############################# | ||
############################# | ||
|
||
############ | ||
# Env Vars # | ||
############ | ||
env: | ||
browser: true | ||
es6: true | ||
jest: true | ||
|
||
############### | ||
# Global Vars # | ||
############### | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
|
||
############### | ||
# Parser vars # | ||
############### | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
sourceType: module | ||
|
||
########### | ||
# Plugins # | ||
########### | ||
plugins: | ||
- '@typescript-eslint' | ||
|
||
######### | ||
# Rules # | ||
######### | ||
rules: {} |
This file contains 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,37 @@ | ||
--- | ||
########################### | ||
########################### | ||
## Markdown Linter rules ## | ||
########################### | ||
########################### | ||
|
||
# Linter rules doc: | ||
# - https://github.com/DavidAnson/markdownlint | ||
# | ||
# Note: | ||
# To comment out a single error: | ||
# <!-- markdownlint-disable --> | ||
# any violations you want | ||
# <!-- markdownlint-restore --> | ||
# | ||
|
||
############### | ||
# Rules by id # | ||
############### | ||
MD004: false # Unordered list style | ||
MD007: | ||
indent: 2 # Unordered list indentation | ||
MD013: | ||
line_length: 808 # Line length | ||
MD024: | ||
allow_different_nesting: true | ||
MD026: | ||
punctuation: ".,;:!。,;:" # List of not allowed | ||
MD029: false # Ordered list item prefix | ||
MD033: false # Allow inline HTML | ||
MD036: false # Emphasis used instead of a heading | ||
|
||
################# | ||
# Rules by tags # | ||
################# | ||
blank_lines: false # Error on blank lines |
This file contains 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 @@ | ||
#Documentation: https://github.com/PowerShell/PSScriptAnalyzer/blob/master/docs/markdown/Invoke-ScriptAnalyzer.md#-settings | ||
@{ | ||
#CustomRulePath='path\to\CustomRuleModule.psm1' | ||
#RecurseCustomRulePath='path\of\customrules' | ||
#Severity = @( | ||
# 'Error' | ||
# 'Warning' | ||
#) | ||
#IncludeDefaultRules=$true | ||
#ExcludeRules = @( | ||
# 'PSAvoidUsingWriteHost', | ||
# 'MyCustomRuleName' | ||
#) | ||
#IncludeRules = @( | ||
# 'PSAvoidUsingWriteHost', | ||
# 'MyCustomRuleName' | ||
#) | ||
} |
Oops, something went wrong.