Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
Signed-off-by: Flavius Lacatusu <[email protected]>
  • Loading branch information
flacatus committed Jun 8, 2021
1 parent f10fcf3 commit 44263be
Show file tree
Hide file tree
Showing 66 changed files with 3,614 additions and 3,574 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/automation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,3 @@ jobs:
echo "[ERROR] README.md it is not up to date. Please run 'yarn oclif-dev readme' to update and commit the changes."
exit 1
fi
- name: Check license header year eslint template
run: |
TEMPLATE=$(jq '.rules."header/header"[2][1].pattern' configs/eslint.license.json)
CURRENT_YEAR=$(date +'%Y')
if [[ ${TEMPLATE} != *"$CURRENT_YEAR"* ]];then
echo -e "[ERROR] The license header template doesn't contain the current year. Please change the year in configs/eslint.license.json and run yarn lint:fix"
exit 1
fi
5 changes: 4 additions & 1 deletion configs/disabled.rules.chectl.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"no-multi-assign": 0,
"no-lonely-if": 0,
"no-async-promise-executor": 0,
"prefer-promise-reject-errors": 0
"prefer-promise-reject-errors": 0,
"no-else-return": 0,
"no-useless-return": 0,
"complexity": 0
}
}
4 changes: 2 additions & 2 deletions configs/eslint.license.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[
"*",
{
"pattern": "^ \\* Copyright \\(c\\) 2021 Red Hat, Inc\\.$",
"template": " * Copyright (c) 2021 Red Hat, Inc."
"pattern": "^ \\* Copyright \\(c\\) \\d{4}(-\\d{4})* Red Hat, Inc\\.$",
"template": " * Copyright (c) 2019-2021 Red Hat, Inc."
},
" * This program and the accompanying materials are made",
" * available under the terms of the Eclipse Public License 2.0",
Expand Down
Loading

0 comments on commit 44263be

Please sign in to comment.