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.mysql | |
pattern: mysql_* | |
message: | | |
Do not use mysql_* functions. | |
Please use PDO or Framework's ORM. | |
MySQL Functions (PDO_MYSQL) | |
http://php.net/manual/en/ref.pdo-mysql.php | |
glob: | |
- "**/*.php" |
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
require 'json' | |
input_file = 'eslint_result.json' | |
output_file = 'eslint_todo.json' | |
array = JSON.parse open(input_file, &:read) | |
rules_counts = {} | |
array.each do |file| | |
next if file['errorCount'] == 0 && file['warningCount'] == 0 | |
file['messages'].each do |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
require 'json' | |
input_file = 'eslint_result.json' | |
output_file = 'eslint_todo.json' | |
array = JSON.parse open(input_file, &:read) | |
rules_counts = {} | |
array.each do |file| | |
next if file['errorCount'] == 0 && file['warningCount'] == 0 | |
file['messages'].each do |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
class Dirty | |
# This method smells of :reek:NestedIterators but ignores them | |
def awful(x, y, offset = 0, log = false) | |
puts @screen.title | |
@screen = widgets.map { |w| w.each { |key| key += 3 * x } } | |
puts @screen.contents | |
puts @screen.contents | |
puts @screen.contents | |
puts @screen.contents | |
puts @screen.contents |
NewerOlder