adlint 1.18.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +287 -188
- data/MANIFEST +278 -92
- data/NEWS +16 -4
- data/bin/adlintize +124 -3
- data/etc/conf.d/fallback/traits.erb +54 -1
- data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +54 -1
- data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +54 -1
- data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +54 -1
- data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +54 -1
- data/etc/mesg.d/c_builtin/en_US/messages.yml +2998 -0
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +2998 -0
- data/etc/mesg.d/core/en_US/messages.yml +134 -0
- data/etc/mesg.d/core/ja_JP/messages.yml +134 -0
- data/features/{message_detection → code_check}/E0013.feature +2 -2
- data/features/{message_detection → code_check}/W0001.feature +4 -4
- data/features/{message_detection → code_check}/W0002.feature +6 -6
- data/features/{message_detection → code_check}/W0003.feature +8 -8
- data/features/{message_detection → code_check}/W0007.feature +16 -16
- data/features/{message_detection → code_check}/W0010.feature +8 -8
- data/features/{message_detection → code_check}/W0013.feature +16 -16
- data/features/code_check/W0016.feature +200 -0
- data/features/code_check/W0017.feature +270 -0
- data/features/code_check/W0025.feature +66 -0
- data/features/code_check/W0026.feature +143 -0
- data/features/{message_detection → code_check}/W0093.feature +6 -6
- data/features/{message_detection → code_check}/W0104.feature +14 -14
- data/features/{message_detection → code_check}/W0109.feature +6 -6
- data/features/code_check/W0119.feature +151 -0
- data/features/code_check/W0120.feature +137 -0
- data/features/code_check/W0121.feature +147 -0
- data/features/code_check/W0122.feature +142 -0
- data/features/code_check/W0123.feature +147 -0
- data/features/code_check/W0124.feature +142 -0
- data/features/code_check/W0125.feature +147 -0
- data/features/code_check/W0126.feature +142 -0
- data/features/code_check/W0127.feature +147 -0
- data/features/code_check/W0128.feature +147 -0
- data/features/code_check/W0129.feature +147 -0
- data/features/code_check/W0130.feature +159 -0
- data/features/code_check/W0131.feature +154 -0
- data/features/code_check/W0132.feature +137 -0
- data/features/code_check/W0133.feature +151 -0
- data/features/code_check/W0134.feature +151 -0
- data/features/code_check/W0135.feature +147 -0
- data/features/code_check/W0136.feature +151 -0
- data/features/code_check/W0137.feature +147 -0
- data/features/code_check/W0138.feature +151 -0
- data/features/code_check/W0139.feature +147 -0
- data/features/code_check/W0140.feature +159 -0
- data/features/code_check/W0141.feature +155 -0
- data/features/code_check/W0142.feature +152 -0
- data/features/code_check/W0143.feature +147 -0
- data/features/code_check/W0144.feature +146 -0
- data/features/code_check/W0145.feature +147 -0
- data/features/code_check/W0146.feature +146 -0
- data/features/code_check/W0147.feature +146 -0
- data/features/code_check/W0148.feature +147 -0
- data/features/code_check/W0149.feature +146 -0
- data/features/code_check/W0150.feature +146 -0
- data/features/code_check/W0151.feature +146 -0
- data/features/code_check/W0152.feature +155 -0
- data/features/code_check/W0153.feature +155 -0
- data/features/code_check/W0154.feature +154 -0
- data/features/code_check/W0155.feature +154 -0
- data/features/code_check/W0156.feature +167 -0
- data/features/code_check/W0157.feature +152 -0
- data/features/code_check/W0158.feature +147 -0
- data/features/code_check/W0159.feature +147 -0
- data/features/code_check/W0160.feature +147 -0
- data/features/code_check/W0161.feature +151 -0
- data/features/code_check/W0162.feature +146 -0
- data/features/code_check/W0163.feature +146 -0
- data/features/code_check/W0164.feature +146 -0
- data/features/code_check/W0165.feature +151 -0
- data/features/code_check/W0166.feature +146 -0
- data/features/code_check/W0167.feature +146 -0
- data/features/code_check/W0168.feature +146 -0
- data/features/code_check/W0169.feature +151 -0
- data/features/code_check/W0170.feature +146 -0
- data/features/code_check/W0171.feature +146 -0
- data/features/code_check/W0172.feature +146 -0
- data/features/code_check/W0173.feature +159 -0
- data/features/code_check/W0174.feature +159 -0
- data/features/code_check/W0175.feature +158 -0
- data/features/code_check/W0176.feature +158 -0
- data/features/code_check/W0177.feature +159 -0
- data/features/code_check/W0178.feature +155 -0
- data/features/code_check/W0179.feature +154 -0
- data/features/code_check/W0180.feature +154 -0
- data/features/code_check/W0181.feature +167 -0
- data/features/code_check/W0182.feature +147 -0
- data/features/code_check/W0183.feature +147 -0
- data/features/code_check/W0184.feature +148 -0
- data/features/code_check/W0185.feature +142 -0
- data/features/code_check/W0186.feature +142 -0
- data/features/code_check/W0187.feature +142 -0
- data/features/code_check/W0188.feature +142 -0
- data/features/code_check/W0189.feature +142 -0
- data/features/code_check/W0190.feature +142 -0
- data/features/code_check/W0191.feature +142 -0
- data/features/code_check/W0192.feature +142 -0
- data/features/code_check/W0193.feature +143 -0
- data/features/code_check/W0194.feature +142 -0
- data/features/code_check/W0195.feature +142 -0
- data/features/code_check/W0196.feature +142 -0
- data/features/code_check/W0197.feature +142 -0
- data/features/code_check/W0198.feature +142 -0
- data/features/code_check/W0199.feature +143 -0
- data/features/code_check/W0200.feature +142 -0
- data/features/code_check/W0201.feature +142 -0
- data/features/code_check/W0202.feature +142 -0
- data/features/code_check/W0203.feature +142 -0
- data/features/code_check/W0204.feature +142 -0
- data/features/code_check/W0205.feature +143 -0
- data/features/code_check/W0206.feature +150 -0
- data/features/code_check/W0207.feature +150 -0
- data/features/code_check/W0208.feature +150 -0
- data/features/code_check/W0209.feature +151 -0
- data/features/code_check/W0210.feature +151 -0
- data/features/code_check/W0211.feature +151 -0
- data/features/code_check/W0212.feature +147 -0
- data/features/code_check/W0213.feature +142 -0
- data/features/code_check/W0214.feature +147 -0
- data/features/code_check/W0215.feature +142 -0
- data/features/code_check/W0216.feature +142 -0
- data/features/code_check/W0217.feature +142 -0
- data/features/code_check/W0218.feature +142 -0
- data/features/code_check/W0219.feature +142 -0
- data/features/code_check/W0220.feature +142 -0
- data/features/code_check/W0221.feature +147 -0
- data/features/code_check/W0222.feature +142 -0
- data/features/code_check/W0223.feature +147 -0
- data/features/code_check/W0224.feature +142 -0
- data/features/code_check/W0225.feature +142 -0
- data/features/code_check/W0226.feature +142 -0
- data/features/code_check/W0227.feature +142 -0
- data/features/code_check/W0228.feature +142 -0
- data/features/code_check/W0229.feature +142 -0
- data/features/code_check/W0230.feature +147 -0
- data/features/code_check/W0231.feature +142 -0
- data/features/code_check/W0232.feature +148 -0
- data/features/code_check/W0233.feature +142 -0
- data/features/code_check/W0234.feature +143 -0
- data/features/code_check/W0235.feature +142 -0
- data/features/code_check/W0236.feature +143 -0
- data/features/code_check/W0237.feature +142 -0
- data/features/code_check/W0238.feature +143 -0
- data/features/code_check/W0239.feature +154 -0
- data/features/code_check/W0240.feature +155 -0
- data/features/code_check/W0241.feature +154 -0
- data/features/code_check/W0242.feature +155 -0
- data/features/code_check/W0243.feature +154 -0
- data/features/code_check/W0244.feature +155 -0
- data/features/code_check/W0245.feature +147 -0
- data/features/code_check/W0246.feature +147 -0
- data/features/code_check/W0247.feature +147 -0
- data/features/code_check/W0248.feature +142 -0
- data/features/code_check/W0249.feature +142 -0
- data/features/code_check/W0250.feature +146 -0
- data/features/code_check/W0251.feature +159 -0
- data/features/code_check/W0252.feature +155 -0
- data/features/code_check/W0253.feature +154 -0
- data/features/code_check/W0254.feature +154 -0
- data/features/code_check/W0477.feature +77 -0
- data/features/code_check/W0478.feature +103 -0
- data/features/code_check/W0479.feature +65 -0
- data/features/code_check/W0480.feature +119 -0
- data/features/code_check/W0481.feature +28 -0
- data/features/code_check/W0482.feature +64 -0
- data/features/code_check/W0483.feature +62 -0
- data/features/code_check/W0573.feature +91 -0
- data/features/{message_detection → code_check}/W0583.feature +2 -2
- data/features/{message_detection → code_check}/W0606.feature +2 -2
- data/features/{message_detection → code_check}/W0641.feature +16 -16
- data/features/{message_detection → code_check}/W0643.feature +12 -12
- data/features/{message_detection → code_check}/W0644.feature +50 -50
- data/features/{message_detection → code_check}/W0645.feature +16 -16
- data/features/{message_detection → code_check}/W0646.feature +16 -16
- data/features/{message_detection → code_check}/W0649.feature +28 -28
- data/features/{message_detection → code_check}/W0650.feature +24 -24
- data/features/code_check/W0685.feature +120 -0
- data/features/code_check/W0686.feature +92 -0
- data/features/{message_detection → code_check}/W0687.feature +4 -4
- data/features/{message_detection → code_check}/W0688.feature +12 -12
- data/features/{message_detection → code_check}/W0689.feature +8 -8
- data/features/{message_detection → code_check}/W0690.feature +6 -6
- data/features/{message_detection → code_check}/W0691.feature +14 -14
- data/features/{message_detection → code_check}/W0692.feature +4 -4
- data/features/{message_detection → code_check}/W0694.feature +10 -10
- data/features/code_check/W0695.feature +78 -0
- data/features/{message_detection → code_check}/W0697.feature +18 -18
- data/features/{message_detection → code_check}/W0698.feature +2 -2
- data/features/{message_detection → code_check}/W0699.feature +2 -2
- data/features/{message_detection → code_check}/W0700.feature +6 -6
- data/features/{message_detection → code_check}/W0703.feature +6 -6
- data/features/{message_detection → code_check}/W0705.feature +24 -24
- data/features/{message_detection → code_check}/W0707.feature +20 -20
- data/features/{message_detection → code_check}/W0711.feature +10 -10
- data/features/{message_detection → code_check}/W0712.feature +10 -10
- data/features/{message_detection → code_check}/W0713.feature +10 -10
- data/features/{message_detection → code_check}/W0714.feature +10 -10
- data/features/{message_detection → code_check}/W0715.feature +11 -11
- data/features/{message_detection → code_check}/W0716.feature +6 -6
- data/features/{message_detection → code_check}/W0717.feature +6 -6
- data/features/{message_detection → code_check}/W0718.feature +6 -6
- data/features/{message_detection → code_check}/W0719.feature +16 -16
- data/features/{message_detection → code_check}/W0723.feature +6 -6
- data/features/code_check/W0726.feature +95 -0
- data/features/{message_detection → code_check}/W0732.feature +6 -6
- data/features/{message_detection → code_check}/W0733.feature +6 -6
- data/features/{message_detection → code_check}/W0734.feature +16 -16
- data/features/{message_detection → code_check}/W0735.feature +16 -16
- data/features/{message_detection → code_check}/W0745.feature +10 -10
- data/features/code_check/W0747.feature +146 -0
- data/features/code_check/W0748.feature +148 -0
- data/features/code_check/W0749.feature +146 -0
- data/features/code_check/W0750.feature +146 -0
- data/features/code_check/W0751.feature +148 -0
- data/features/code_check/W0752.feature +143 -0
- data/features/code_check/W0753.feature +146 -0
- data/features/code_check/W0754.feature +146 -0
- data/features/code_check/W0755.feature +142 -0
- data/features/code_check/W0756.feature +148 -0
- data/features/code_check/W0757.feature +143 -0
- data/features/code_check/W0758.feature +143 -0
- data/features/code_check/W0759.feature +154 -0
- data/features/code_check/W0760.feature +154 -0
- data/features/code_check/W0761.feature +154 -0
- data/features/code_check/W0762.feature +154 -0
- data/features/code_check/W0763.feature +156 -0
- data/features/code_check/W0764.feature +151 -0
- data/features/code_check/W0765.feature +151 -0
- data/features/code_check/W0766.feature +151 -0
- data/features/code_check/W0767.feature +142 -0
- data/features/code_check/W0768.feature +142 -0
- data/features/code_check/W0769.feature +142 -0
- data/features/{message_detection → code_check}/W0780.feature +12 -12
- data/features/code_check/W0781.feature +145 -0
- data/features/{message_detection → code_check}/W0783.feature +8 -8
- data/features/{message_detection → code_check}/W0792.feature +16 -16
- data/features/{message_detection → code_check}/W0793.feature +16 -16
- data/features/{message_detection → code_check}/W0794.feature +10 -10
- data/features/code_check/W0801.feature +84 -0
- data/features/{message_detection → code_check}/W0805.feature +14 -14
- data/features/code_check/W0806.feature +24 -0
- data/features/code_check/W0807.feature +35 -0
- data/features/code_check/W0808.feature +34 -0
- data/features/code_check/W0809.feature +114 -0
- data/features/{message_detection → code_check}/W0811.feature +10 -10
- data/features/{message_detection → code_check}/W0830.feature +12 -12
- data/features/{message_detection → code_check}/W0833.feature +30 -30
- data/features/{message_detection → code_check}/W0834.feature +26 -26
- data/features/{message_detection → code_check}/W1026.feature +8 -8
- data/features/code_check/W1030.feature +84 -0
- data/features/{message_detection → code_check}/W1031.feature +36 -36
- data/features/{message_detection → code_check}/W1039.feature +24 -24
- data/features/{message_detection → code_check}/W1040.feature +8 -8
- data/features/{message_detection → code_check}/W1041.feature +2 -2
- data/features/{message_detection → code_check}/W1046.feature +6 -6
- data/features/{message_detection → code_check}/W1047.feature +12 -12
- data/features/{message_detection → code_check}/W1052.feature +6 -6
- data/features/{message_detection → code_check}/W1066.feature +6 -6
- data/features/{message_detection → code_check}/W1067.feature +6 -6
- data/features/{message_detection → code_check}/W1068.feature +6 -6
- data/features/{message_detection → code_check}/W1069.feature +10 -10
- data/features/{message_detection → code_check}/W1070.feature +15 -15
- data/features/{message_detection → code_check}/W1071.feature +8 -8
- data/features/{message_detection → code_check}/W1072.feature +2 -2
- data/features/{message_detection → code_check}/W1073.feature +14 -14
- data/features/{message_detection → code_check}/W1074.feature +10 -10
- data/features/{message_detection → code_check}/W1075.feature +10 -10
- data/features/{message_detection → code_check}/W1076.feature +8 -8
- data/features/{message_detection → code_check}/W1077.feature +18 -18
- data/features/{message_detection → code_check}/W9001.feature +2 -2
- data/features/{message_detection → code_check}/W9003.feature +12 -12
- data/features/step_definitions/{message_detection_steps.rb → code_check_steps.rb} +1 -1
- data/features/support/env.rb +19 -3
- data/lib/adlint.rb +1 -0
- data/lib/adlint/analyzer.rb +17 -1
- data/lib/adlint/c.rb +0 -4
- data/lib/adlint/c/phase.rb +55 -745
- data/lib/adlint/code.rb +0 -24
- data/lib/adlint/cpp.rb +0 -3
- data/lib/adlint/cpp/phase.rb +50 -112
- data/lib/adlint/driver.rb +2 -2
- data/lib/adlint/error.rb +4 -4
- data/lib/adlint/exam.rb +143 -0
- data/lib/adlint/exam/c_builtin.rb +813 -0
- data/lib/adlint/{c/message.rb → exam/c_builtin/c_check.rb} +2130 -798
- data/lib/adlint/{c/message_shima.rb → exam/c_builtin/c_check_shima.rb} +99 -28
- data/lib/adlint/{c/code.rb → exam/c_builtin/c_code.rb} +31 -5
- data/lib/adlint/{c/metric.rb → exam/c_builtin/c_metric.rb} +43 -11
- data/lib/adlint/{cpp/message.rb → exam/c_builtin/cpp_check.rb} +177 -73
- data/lib/adlint/{cpp/message_shima.rb → exam/c_builtin/cpp_check_shima.rb} +28 -8
- data/lib/adlint/{cpp/code.rb → exam/c_builtin/cpp_code.rb} +14 -3
- data/lib/adlint/{ld/message.rb → exam/c_builtin/ld_check.rb} +33 -12
- data/lib/adlint/{ld/metric.rb → exam/c_builtin/ld_metric.rb} +8 -3
- data/lib/adlint/lang.rb +2 -2
- data/lib/adlint/ld.rb +0 -2
- data/lib/adlint/ld/phase.rb +101 -101
- data/lib/adlint/message.rb +155 -98
- data/lib/adlint/metric.rb +0 -27
- data/lib/adlint/phase.rb +28 -3
- data/lib/adlint/report.rb +22 -12
- data/lib/adlint/traits.rb +97 -5
- data/lib/adlint/util.rb +100 -11
- data/lib/adlint/version.rb +5 -5
- data/share/doc/developers_guide_ja.html +3 -3
- data/share/doc/developers_guide_ja.texi +1 -1
- data/share/doc/users_guide_en.html +1817 -1648
- data/share/doc/users_guide_en.texi +202 -22
- data/share/doc/users_guide_ja.html +1836 -1663
- data/share/doc/users_guide_ja.texi +203 -20
- data/share/sample/bison-2.5/adlint/adlint_traits.yml +55 -2
- data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +47 -2
- data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +47 -2
- data/share/sample/ctags-5.8/adlint/adlint_traits.yml +47 -2
- data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +47 -2
- data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +47 -2
- data/spec/conf.d/default_traits.yml +56 -3
- metadata +280 -94
- data/etc/mesg.d/en_US/messages.yml +0 -797
- data/etc/mesg.d/ja_JP/messages.yml +0 -797
@@ -4,14 +4,14 @@ Feature: W0650
|
|
4
4
|
bit length of left hand side value.
|
5
5
|
|
6
6
|
Scenario: 32-bit left shift-expression of `int' value
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
unsigned int foo(unsigned int i)
|
10
10
|
{
|
11
11
|
return i << 32; /* W0650 */
|
12
12
|
}
|
13
13
|
"""
|
14
|
-
When I successfully run `adlint
|
14
|
+
When I successfully run `adlint fixture.c` on noarch
|
15
15
|
Then the output should exactly match with:
|
16
16
|
| mesg | line | column |
|
17
17
|
| W0117 | 1 | 14 |
|
@@ -21,14 +21,14 @@ Feature: W0650
|
|
21
21
|
| W0628 | 1 | 14 |
|
22
22
|
|
23
23
|
Scenario: 32-bit right shift-expression of `int' value
|
24
|
-
Given a target source named "
|
24
|
+
Given a target source named "fixture.c" with:
|
25
25
|
"""
|
26
26
|
unsigned int foo(unsigned int i)
|
27
27
|
{
|
28
28
|
return i >> 32; /* W0650 */
|
29
29
|
}
|
30
30
|
"""
|
31
|
-
When I successfully run `adlint
|
31
|
+
When I successfully run `adlint fixture.c` on noarch
|
32
32
|
Then the output should exactly match with:
|
33
33
|
| mesg | line | column |
|
34
34
|
| W0117 | 1 | 14 |
|
@@ -37,14 +37,14 @@ Feature: W0650
|
|
37
37
|
| W0628 | 1 | 14 |
|
38
38
|
|
39
39
|
Scenario: 31-bit left shift-expression of `int' value
|
40
|
-
Given a target source named "
|
40
|
+
Given a target source named "fixture.c" with:
|
41
41
|
"""
|
42
42
|
unsigned int foo(unsigned int i)
|
43
43
|
{
|
44
44
|
return i << 31; /* OK */
|
45
45
|
}
|
46
46
|
"""
|
47
|
-
When I successfully run `adlint
|
47
|
+
When I successfully run `adlint fixture.c` on noarch
|
48
48
|
Then the output should exactly match with:
|
49
49
|
| mesg | line | column |
|
50
50
|
| W0117 | 1 | 14 |
|
@@ -53,14 +53,14 @@ Feature: W0650
|
|
53
53
|
| W0628 | 1 | 14 |
|
54
54
|
|
55
55
|
Scenario: 31-bit right shift-expression of `int' value
|
56
|
-
Given a target source named "
|
56
|
+
Given a target source named "fixture.c" with:
|
57
57
|
"""
|
58
58
|
unsigned int foo(unsigned int i)
|
59
59
|
{
|
60
60
|
return i >> 31; /* OK */
|
61
61
|
}
|
62
62
|
"""
|
63
|
-
When I successfully run `adlint
|
63
|
+
When I successfully run `adlint fixture.c` on noarch
|
64
64
|
Then the output should exactly match with:
|
65
65
|
| mesg | line | column |
|
66
66
|
| W0117 | 1 | 14 |
|
@@ -68,14 +68,14 @@ Feature: W0650
|
|
68
68
|
| W0628 | 1 | 14 |
|
69
69
|
|
70
70
|
Scenario: 64-bit left shift-expression of `int' value
|
71
|
-
Given a target source named "
|
71
|
+
Given a target source named "fixture.c" with:
|
72
72
|
"""
|
73
73
|
unsigned int foo(unsigned int i)
|
74
74
|
{
|
75
75
|
return i << 64; /* W0650 */
|
76
76
|
}
|
77
77
|
"""
|
78
|
-
When I successfully run `adlint
|
78
|
+
When I successfully run `adlint fixture.c` on noarch
|
79
79
|
Then the output should exactly match with:
|
80
80
|
| mesg | line | column |
|
81
81
|
| W0117 | 1 | 14 |
|
@@ -85,14 +85,14 @@ Feature: W0650
|
|
85
85
|
| W0628 | 1 | 14 |
|
86
86
|
|
87
87
|
Scenario: 64-bit right shift-expression of `int' value
|
88
|
-
Given a target source named "
|
88
|
+
Given a target source named "fixture.c" with:
|
89
89
|
"""
|
90
90
|
unsigned int foo(unsigned int i)
|
91
91
|
{
|
92
92
|
return i >> 64; /* W0650 */
|
93
93
|
}
|
94
94
|
"""
|
95
|
-
When I successfully run `adlint
|
95
|
+
When I successfully run `adlint fixture.c` on noarch
|
96
96
|
Then the output should exactly match with:
|
97
97
|
| mesg | line | column |
|
98
98
|
| W0117 | 1 | 14 |
|
@@ -101,14 +101,14 @@ Feature: W0650
|
|
101
101
|
| W0628 | 1 | 14 |
|
102
102
|
|
103
103
|
Scenario: 32-bit left shift compound-assignment-expression of `int' value
|
104
|
-
Given a target source named "
|
104
|
+
Given a target source named "fixture.c" with:
|
105
105
|
"""
|
106
106
|
void foo(unsigned int i)
|
107
107
|
{
|
108
108
|
i <<= 32; /* W0650 */
|
109
109
|
}
|
110
110
|
"""
|
111
|
-
When I successfully run `adlint
|
111
|
+
When I successfully run `adlint fixture.c` on noarch
|
112
112
|
Then the output should exactly match with:
|
113
113
|
| mesg | line | column |
|
114
114
|
| W0117 | 1 | 6 |
|
@@ -117,14 +117,14 @@ Feature: W0650
|
|
117
117
|
| W0628 | 1 | 6 |
|
118
118
|
|
119
119
|
Scenario: 32-bit right shift compound-assignment-expression of `int' value
|
120
|
-
Given a target source named "
|
120
|
+
Given a target source named "fixture.c" with:
|
121
121
|
"""
|
122
122
|
void foo(unsigned int i)
|
123
123
|
{
|
124
124
|
i >>= 32; /* W0650 */
|
125
125
|
}
|
126
126
|
"""
|
127
|
-
When I successfully run `adlint
|
127
|
+
When I successfully run `adlint fixture.c` on noarch
|
128
128
|
Then the output should exactly match with:
|
129
129
|
| mesg | line | column |
|
130
130
|
| W0117 | 1 | 6 |
|
@@ -132,14 +132,14 @@ Feature: W0650
|
|
132
132
|
| W0628 | 1 | 6 |
|
133
133
|
|
134
134
|
Scenario: 31-bit left shift-expression of `char' value
|
135
|
-
Given a target source named "
|
135
|
+
Given a target source named "fixture.c" with:
|
136
136
|
"""
|
137
137
|
int foo(char c)
|
138
138
|
{
|
139
139
|
return c << 31; /* OK because of the integer-promotion */
|
140
140
|
}
|
141
141
|
"""
|
142
|
-
When I successfully run `adlint
|
142
|
+
When I successfully run `adlint fixture.c` on noarch
|
143
143
|
Then the output should exactly match with:
|
144
144
|
| mesg | line | column |
|
145
145
|
| W0117 | 1 | 5 |
|
@@ -151,14 +151,14 @@ Feature: W0650
|
|
151
151
|
| W0628 | 1 | 5 |
|
152
152
|
|
153
153
|
Scenario: 31-bit right shift-expression of `char' value
|
154
|
-
Given a target source named "
|
154
|
+
Given a target source named "fixture.c" with:
|
155
155
|
"""
|
156
156
|
int foo(char c)
|
157
157
|
{
|
158
158
|
return c >> 31; /* OK because of the integer-promotion */
|
159
159
|
}
|
160
160
|
"""
|
161
|
-
When I successfully run `adlint
|
161
|
+
When I successfully run `adlint fixture.c` on noarch
|
162
162
|
Then the output should exactly match with:
|
163
163
|
| mesg | line | column |
|
164
164
|
| W0117 | 1 | 5 |
|
@@ -169,14 +169,14 @@ Feature: W0650
|
|
169
169
|
| W0628 | 1 | 5 |
|
170
170
|
|
171
171
|
Scenario: 31-bit left shift-expression of `char' value
|
172
|
-
Given a target source named "
|
172
|
+
Given a target source named "fixture.c" with:
|
173
173
|
"""
|
174
174
|
int foo(char c)
|
175
175
|
{
|
176
176
|
return c << 32; /* W0650 */
|
177
177
|
}
|
178
178
|
"""
|
179
|
-
When I successfully run `adlint
|
179
|
+
When I successfully run `adlint fixture.c` on noarch
|
180
180
|
Then the output should exactly match with:
|
181
181
|
| mesg | line | column |
|
182
182
|
| W0117 | 1 | 5 |
|
@@ -188,14 +188,14 @@ Feature: W0650
|
|
188
188
|
| W0628 | 1 | 5 |
|
189
189
|
|
190
190
|
Scenario: 31-bit right shift-expression of `char' value
|
191
|
-
Given a target source named "
|
191
|
+
Given a target source named "fixture.c" with:
|
192
192
|
"""
|
193
193
|
int foo(char c)
|
194
194
|
{
|
195
195
|
return c >> 32; /* W0650 */
|
196
196
|
}
|
197
197
|
"""
|
198
|
-
When I successfully run `adlint
|
198
|
+
When I successfully run `adlint fixture.c` on noarch
|
199
199
|
Then the output should exactly match with:
|
200
200
|
| mesg | line | column |
|
201
201
|
| W0117 | 1 | 5 |
|
@@ -0,0 +1,120 @@
|
|
1
|
+
Feature: W0685
|
2
|
+
|
3
|
+
W0685 detects that the order of the character which including `-' is not
|
4
|
+
correct in the scanset.
|
5
|
+
|
6
|
+
Scenario: bigger lower-case character to smaller one
|
7
|
+
Given a target source named "fixture.c" with:
|
8
|
+
"""
|
9
|
+
#include <stdio.h>
|
10
|
+
|
11
|
+
void foo(void)
|
12
|
+
{
|
13
|
+
char c;
|
14
|
+
int i = scanf("%[z-a]", &c); /* W0685 */
|
15
|
+
}
|
16
|
+
"""
|
17
|
+
When I successfully run `adlint fixture.c` on noarch
|
18
|
+
Then the output should exactly match with:
|
19
|
+
| mesg | line | column |
|
20
|
+
| W0117 | 3 | 6 |
|
21
|
+
| W0459 | 6 | 29 |
|
22
|
+
| W0573 | 6 | 19 |
|
23
|
+
| W0685 | 6 | 19 |
|
24
|
+
| W0100 | 5 | 10 |
|
25
|
+
| W0100 | 6 | 9 |
|
26
|
+
| W0947 | 6 | 19 |
|
27
|
+
| W0628 | 3 | 6 |
|
28
|
+
|
29
|
+
Scenario: bigger number to smaller one
|
30
|
+
Given a target source named "fixture.c" with:
|
31
|
+
"""
|
32
|
+
#include <stdio.h>
|
33
|
+
|
34
|
+
void foo(void)
|
35
|
+
{
|
36
|
+
char c;
|
37
|
+
int i = scanf("%[9-1]", &c); /* W0685 */
|
38
|
+
}
|
39
|
+
"""
|
40
|
+
When I successfully run `adlint fixture.c` on noarch
|
41
|
+
Then the output should exactly match with:
|
42
|
+
| mesg | line | column |
|
43
|
+
| W0117 | 3 | 6 |
|
44
|
+
| W0459 | 6 | 29 |
|
45
|
+
| W0573 | 6 | 19 |
|
46
|
+
| W0685 | 6 | 19 |
|
47
|
+
| W0100 | 5 | 10 |
|
48
|
+
| W0100 | 6 | 9 |
|
49
|
+
| W0947 | 6 | 19 |
|
50
|
+
| W0628 | 3 | 6 |
|
51
|
+
|
52
|
+
Scenario: lower-case character to number
|
53
|
+
Given a target source named "fixture.c" with:
|
54
|
+
"""
|
55
|
+
#include <stdio.h>
|
56
|
+
|
57
|
+
void foo(void)
|
58
|
+
{
|
59
|
+
char c;
|
60
|
+
int i = scanf("%[a-0]", &c); /* OK */
|
61
|
+
}
|
62
|
+
"""
|
63
|
+
When I successfully run `adlint fixture.c` on noarch
|
64
|
+
Then the output should exactly match with:
|
65
|
+
| mesg | line | column |
|
66
|
+
| W0117 | 3 | 6 |
|
67
|
+
| W0459 | 6 | 29 |
|
68
|
+
| W0573 | 6 | 19 |
|
69
|
+
| W0685 | 6 | 19 |
|
70
|
+
| W0100 | 5 | 10 |
|
71
|
+
| W0100 | 6 | 9 |
|
72
|
+
| W0947 | 6 | 19 |
|
73
|
+
| W0628 | 3 | 6 |
|
74
|
+
|
75
|
+
Scenario: lower-case character to uppercase one
|
76
|
+
Given a target source named "fixture.c" with:
|
77
|
+
"""
|
78
|
+
#include <stdio.h>
|
79
|
+
|
80
|
+
void foo(void)
|
81
|
+
{
|
82
|
+
char c;
|
83
|
+
int i = scanf("%[a-A]", &c); /* OK */
|
84
|
+
}
|
85
|
+
"""
|
86
|
+
When I successfully run `adlint fixture.c` on noarch
|
87
|
+
Then the output should exactly match with:
|
88
|
+
| mesg | line | column |
|
89
|
+
| W0117 | 3 | 6 |
|
90
|
+
| W0459 | 6 | 29 |
|
91
|
+
| W0573 | 6 | 19 |
|
92
|
+
| W0685 | 6 | 19 |
|
93
|
+
| W0100 | 5 | 10 |
|
94
|
+
| W0100 | 6 | 9 |
|
95
|
+
| W0947 | 6 | 19 |
|
96
|
+
| W0628 | 3 | 6 |
|
97
|
+
|
98
|
+
Scenario: proper older
|
99
|
+
Given a target source named "fixture.c" with:
|
100
|
+
"""
|
101
|
+
#include <stdio.h>
|
102
|
+
|
103
|
+
void foo(void)
|
104
|
+
{
|
105
|
+
char c;
|
106
|
+
int i = scanf("%[a-z]", &c); /* OK */
|
107
|
+
}
|
108
|
+
"""
|
109
|
+
When I successfully run `adlint fixture.c` on noarch
|
110
|
+
Then the output should exactly match with:
|
111
|
+
| mesg | line | column |
|
112
|
+
| W0117 | 3 | 6 |
|
113
|
+
| W0459 | 6 | 29 |
|
114
|
+
| W0573 | 6 | 19 |
|
115
|
+
| W0100 | 5 | 10 |
|
116
|
+
| W0100 | 6 | 9 |
|
117
|
+
| W0947 | 6 | 19 |
|
118
|
+
| W0628 | 3 | 6 |
|
119
|
+
|
120
|
+
# vim:ts=2:sw=2:sts=2:et:
|
@@ -0,0 +1,92 @@
|
|
1
|
+
Feature: W0686
|
2
|
+
|
3
|
+
W0686 detects that the same characters exist in a scanset.
|
4
|
+
|
5
|
+
Scenario: same characters exist in a scanset
|
6
|
+
Given a target source named "fixture.c" with:
|
7
|
+
"""
|
8
|
+
#include <stdio.h>
|
9
|
+
|
10
|
+
void foo(void)
|
11
|
+
{
|
12
|
+
char c;
|
13
|
+
int i = scanf("%[aa]", &c); /* W0686 */
|
14
|
+
}
|
15
|
+
"""
|
16
|
+
When I successfully run `adlint fixture.c` on noarch
|
17
|
+
Then the output should exactly match with:
|
18
|
+
| mesg | line | column |
|
19
|
+
| W0117 | 3 | 6 |
|
20
|
+
| W0459 | 6 | 28 |
|
21
|
+
| W0686 | 6 | 19 |
|
22
|
+
| W0100 | 5 | 10 |
|
23
|
+
| W0100 | 6 | 9 |
|
24
|
+
| W0947 | 6 | 19 |
|
25
|
+
| W0628 | 3 | 6 |
|
26
|
+
|
27
|
+
Scenario: same characters exist in a scanset
|
28
|
+
Given a target source named "fixture.c" with:
|
29
|
+
"""
|
30
|
+
#include <stdio.h>
|
31
|
+
|
32
|
+
void foo(void)
|
33
|
+
{
|
34
|
+
char c;
|
35
|
+
int i = scanf("%[111]", &c); /* W0686 */
|
36
|
+
}
|
37
|
+
"""
|
38
|
+
When I successfully run `adlint fixture.c` on noarch
|
39
|
+
Then the output should exactly match with:
|
40
|
+
| mesg | line | column |
|
41
|
+
| W0117 | 3 | 6 |
|
42
|
+
| W0459 | 6 | 29 |
|
43
|
+
| W0686 | 6 | 19 |
|
44
|
+
| W0100 | 5 | 10 |
|
45
|
+
| W0100 | 6 | 9 |
|
46
|
+
| W0947 | 6 | 19 |
|
47
|
+
| W0628 | 3 | 6 |
|
48
|
+
|
49
|
+
Scenario: same characters exist in a scanset
|
50
|
+
Given a target source named "fixture.c" with:
|
51
|
+
"""
|
52
|
+
#include <stdio.h>
|
53
|
+
|
54
|
+
void foo(void)
|
55
|
+
{
|
56
|
+
char c;
|
57
|
+
int i = scanf("%[ababa]", &c); /* W0686 */
|
58
|
+
}
|
59
|
+
"""
|
60
|
+
When I successfully run `adlint fixture.c` on noarch
|
61
|
+
Then the output should exactly match with:
|
62
|
+
| mesg | line | column |
|
63
|
+
| W0117 | 3 | 6 |
|
64
|
+
| W0459 | 6 | 31 |
|
65
|
+
| W0686 | 6 | 19 |
|
66
|
+
| W0100 | 5 | 10 |
|
67
|
+
| W0100 | 6 | 9 |
|
68
|
+
| W0947 | 6 | 19 |
|
69
|
+
| W0628 | 3 | 6 |
|
70
|
+
|
71
|
+
Scenario: proper character list in a scanset
|
72
|
+
Given a target source named "fixture.c" with:
|
73
|
+
"""
|
74
|
+
#include <stdio.h>
|
75
|
+
|
76
|
+
void foo(void)
|
77
|
+
{
|
78
|
+
char c;
|
79
|
+
int i = scanf("%[abcde]", &c); /* OK */
|
80
|
+
}
|
81
|
+
"""
|
82
|
+
When I successfully run `adlint fixture.c` on noarch
|
83
|
+
Then the output should exactly match with:
|
84
|
+
| mesg | line | column |
|
85
|
+
| W0117 | 3 | 6 |
|
86
|
+
| W0459 | 6 | 31 |
|
87
|
+
| W0100 | 5 | 10 |
|
88
|
+
| W0100 | 6 | 9 |
|
89
|
+
| W0947 | 6 | 19 |
|
90
|
+
| W0628 | 3 | 6 |
|
91
|
+
|
92
|
+
# vim:ts=2:sw=2:sts=2:et:
|
@@ -3,22 +3,22 @@ Feature: W0687
|
|
3
3
|
W0687 detects that #undef directive deletes the `defined' operator.
|
4
4
|
|
5
5
|
Scenario: #undef directive with the `defined' operator
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
#undef defined /* W0687 */
|
9
9
|
"""
|
10
|
-
When I successfully run `adlint
|
10
|
+
When I successfully run `adlint fixture.c` on noarch
|
11
11
|
Then the output should exactly match with:
|
12
12
|
| mesg | line | column |
|
13
13
|
| W0687 | 1 | 8 |
|
14
14
|
|
15
15
|
Scenario: #undef directive with ordinary macro name
|
16
|
-
Given a target source named "
|
16
|
+
Given a target source named "fixture.c" with:
|
17
17
|
"""
|
18
18
|
#define MACRO (0)
|
19
19
|
#undef MACRO /* OK */
|
20
20
|
"""
|
21
|
-
When I successfully run `adlint
|
21
|
+
When I successfully run `adlint fixture.c` on noarch
|
22
22
|
Then the output should exactly match with:
|
23
23
|
| mesg | line | column |
|
24
24
|
|
@@ -4,58 +4,58 @@ Feature: W0688
|
|
4
4
|
greater than 32767.
|
5
5
|
|
6
6
|
Scenario: zero as the line number
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
#line 0 "test.c" /* W0688 */
|
10
10
|
"""
|
11
|
-
When I successfully run `adlint
|
11
|
+
When I successfully run `adlint fixture.c` on noarch
|
12
12
|
Then the output should exactly match with:
|
13
13
|
| mesg | line | column |
|
14
14
|
| W0688 | 1 | 7 |
|
15
15
|
|
16
16
|
Scenario: valid min line number
|
17
|
-
Given a target source named "
|
17
|
+
Given a target source named "fixture.c" with:
|
18
18
|
"""
|
19
19
|
#line 1 "test.c" /* OK */
|
20
20
|
"""
|
21
|
-
When I successfully run `adlint
|
21
|
+
When I successfully run `adlint fixture.c` on noarch
|
22
22
|
Then the output should exactly match with:
|
23
23
|
| mesg | line | column |
|
24
24
|
|
25
25
|
Scenario: valid line number
|
26
|
-
Given a target source named "
|
26
|
+
Given a target source named "fixture.c" with:
|
27
27
|
"""
|
28
28
|
#line 1024 "test.c" /* OK */
|
29
29
|
"""
|
30
|
-
When I successfully run `adlint
|
30
|
+
When I successfully run `adlint fixture.c` on noarch
|
31
31
|
Then the output should exactly match with:
|
32
32
|
| mesg | line | column |
|
33
33
|
|
34
34
|
Scenario: valid max line number
|
35
|
-
Given a target source named "
|
35
|
+
Given a target source named "fixture.c" with:
|
36
36
|
"""
|
37
37
|
#line 32767 "test.c" /* OK */
|
38
38
|
"""
|
39
|
-
When I successfully run `adlint
|
39
|
+
When I successfully run `adlint fixture.c` on noarch
|
40
40
|
Then the output should exactly match with:
|
41
41
|
| mesg | line | column |
|
42
42
|
|
43
43
|
Scenario: 32768 as the line number
|
44
|
-
Given a target source named "
|
44
|
+
Given a target source named "fixture.c" with:
|
45
45
|
"""
|
46
46
|
#line 32768 "test.c" /* W0688 */
|
47
47
|
"""
|
48
|
-
When I successfully run `adlint
|
48
|
+
When I successfully run `adlint fixture.c` on noarch
|
49
49
|
Then the output should exactly match with:
|
50
50
|
| mesg | line | column |
|
51
51
|
| W0688 | 1 | 7 |
|
52
52
|
|
53
53
|
Scenario: too big as the line number
|
54
|
-
Given a target source named "
|
54
|
+
Given a target source named "fixture.c" with:
|
55
55
|
"""
|
56
56
|
#line 4294967296 "test.c" /* W0688 */
|
57
57
|
"""
|
58
|
-
When I successfully run `adlint
|
58
|
+
When I successfully run `adlint fixture.c` on noarch
|
59
59
|
Then the output should exactly match with:
|
60
60
|
| mesg | line | column |
|
61
61
|
| W0688 | 1 | 7 |
|