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
docker pull sider/runner_brakeman | |
docker pull sider/runner_checkstyle | |
docker pull sider/runner_clang_tidy | |
docker pull sider/runner_coffeelint | |
docker pull sider/runner_cppcheck | |
docker pull sider/runner_cpplint | |
docker pull sider/runner_detekt | |
docker pull sider/runner_eslint | |
docker pull sider/runner_flake8 | |
docker pull sider/runner_fxcop |
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
rules: | |
# Inspired by this rule: https://github.com/Skyscanner/sonar-secrets/blob/v1.3.0/java/src/main/java/org/sonar/skyscanner/java/checks/PrivateKeys.java | |
- id: review.sider.general.security.private_keys | |
pattern: | |
- "-----BEGIN RSA PRIVATE KEY-----" | |
- "-----BEGIN DSA PRIVATE KEY-----" | |
- "-----BEGIN EC PRIVATE KEY-----" | |
- "-----BEGIN OPENSSH PRIVATE KEY-----" | |
- "-----BEGIN PRIVATE KEY-----" | |
message: Do not put private keys in this repository. |
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
rules: | |
# Inspired by this rule: https://github.com/Skyscanner/sonar-secrets/blob/v1.3.0/java/src/main/java/org/sonar/skyscanner/java/checks/PrivateKeys.java | |
- id: review.sider.general.security.private_keys.rsa | |
pattern: | |
token: "-----BEGIN RSA PRIVATE KEY-----" | |
case_sensitive: true | |
message: Do not put private keys in this repository. | |
fail: | |
- "-----BEGIN RSA PRIVATE KEY-----" | |
pass: |
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
rules: | |
- id: com.example.akiko.1 | |
pattern: | |
regexp: (func) (foo|bar)\([^\(]*\) | |
message: | | |
fooやbarといった関数名は使わないでください。 | |
意味のある関数名を定義しましょう。 | |
glob: | |
- "**/*.go" |
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
rules: | |
# Base(パターンマッチさせやすくする為のルールです) | |
- id: com.example.base.1 | |
pattern: | |
regexp: (\S==\S|\S=\S) | |
message: | |
==や=の前後には半角空白を入れてください。 | |
glob: | |
- "**/*.java" | |
fail: |
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
rules: | |
- id: deprecated | |
pattern: | |
token: "@available(" | |
case_sensitive: false | |
message: The method is deprecated. Could you use new version? | |
glob: | |
- "**/*.h" | |
- "**/*.m" | |
- "**/*.swift" |
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
rules: | |
- id: review.sider.html.target-blank | |
pattern: | |
- 'target="_blank"' | |
- "target='_blank'" | |
- 'target: "_blank"' | |
- "target: '_blank'" | |
glob: | |
- "**/*.{slim,erb,html,jsx,tsx}" | |
message: | |
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
rules: | |
- id: com.companyname.java.instanceof | |
pattern: instanceof | |
message: instanseofを使わなくて済むように設計しましょう。instanceofについての詳細は https://www.slideshare.net/HiroshiSaito1/deep-dive-into-instanceof を見てください | |
glob: | |
- "**/*.java" | |
fail: | |
- if("Hello, world!" instanceof String){} | |
pass: | |
- if("Hello, world".getClass().getCanonicalName() == "java.lang.String"){} |
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
/** | |
* The MIT License | |
* Copyright (c) 2014-2016 Ilkka Seppälä | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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
rules: | |
#==================================================================== | |
# PHP コア | |
# INI ディレクティブ | |
#-------------------------------------------------------------------- | |
# 言語オプション | |
- id: com.sideci.php.core.ini.asp_tags | |
pattern: | |
regexp: '([''"])asp_tags\1' | |
glob: "**/*.php" |
NewerOlder