You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
3.0 KiB

  1. {
  2. "$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
  3. "version": 2,
  4. "axioms": {},
  5. "rules": {
  6. "license-file-is-MIT": {
  7. "level": "warning",
  8. "rule": {
  9. "type": "file-contents",
  10. "options": {
  11. "globsAll": ["LICENSE*", "COPYING*"],
  12. "nocase": true,
  13. "fail-on-non-existant": true,
  14. "content": "MIT License"
  15. }
  16. },
  17. "fix": {
  18. "type": "file-create",
  19. "options": {
  20. "file": "LICENSE",
  21. "replace": true,
  22. "text": { "url": "https://opensource.org/licenses/MIT" }
  23. }
  24. },
  25. "policyInfo": "MIT License is required for code or legal approval for an alternative",
  26. "policyUrl": "https://github.com/github/open-source/blob/main/policies/release.md"
  27. },
  28. "readme-file-exists": {
  29. "level": "warning",
  30. "rule": {
  31. "type": "file-existence",
  32. "options": {
  33. "globsAny": ["README*"],
  34. "nocase": true
  35. }
  36. },
  37. "fix": {
  38. "type": "file-create",
  39. "options": {
  40. "file": "README.md",
  41. "text": { "url": "https://raw.githubusercontent.com/newrelic/open-source-tools/master/nerdpacks/oss-template/README.md" }
  42. }
  43. },
  44. "policyInfo": "GitHub requires a README file in all projects. This README should give a general overview of the project, and should point to additional resources (security, contributing, etc.) where developers and users can learn further",
  45. "policyUrl": "https://github.com/github/open-source/blob/main/policies/release.md"
  46. },
  47. "codeowners-file-exists": {
  48. "level": "warning",
  49. "rule": {
  50. "type": "file-existence",
  51. "options": {
  52. "globsAny": ["CODEOWNERS*", "*/CODEOWNERS*", ".github/CODEOWNERS*"],
  53. "nocase": true
  54. }
  55. },
  56. "fix": {
  57. "type": "file-create",
  58. "options": {
  59. "file": "CODEOWNERS",
  60. "text": { "url": "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners" }
  61. }
  62. },
  63. "policyInfo": "GitHub requires a CODEOWNERS file in all projects. This enables GitHub to contact the maintainers in the event it is necessary.",
  64. "policyUrl": "https://github.com/github/open-source/blob/main/policies/release.md"
  65. },
  66. },
  67. "formatOptions": {
  68. "disclaimer": "🤖*This issue was automatically generated by [repolinter-action](https://github.com/newrelic/repolinter-action), developed by the Open Source and Developer Advocacy team at New Relic.*"
  69. }
  70. }