{"record":{"id":"419b5265d854c72f","repo":"puppetlabs/puppet","slug":"value-is-not-a-good-copyright-year-or-range","errorCode":null,"errorMessage":"%{value} is not a good copyright year or range","messagePattern":"%(.+?) is not a good copyright year or range","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":334,"sourceCode":"        if fault then\n          # TRANSLATORS 'copyright' is an attribute name and should not be translated\n          raise ArgumentError, _(\"copyright with a year %{value} is very strange; did you accidentally add or subtract two years?\") %\n                               { value: fault }\n        end\n\n        input\n\n      when String then\n        input.strip.split(/,/).map do |part|\n          part = part.strip\n          if part =~ /^\\d+$/\n            part.to_i\n          else\n            found = part.split(/-/)\n            if found\n              unless found.length == 2 and found.all? { |x| x.strip =~ /^\\d+$/ }\n                # TRANSLATORS 'copyright' is an attribute name and should not be translated\n                raise ArgumentError, _(\"%{value} is not a good copyright year or range\") % { value: part.inspect }\n              end\n\n              Range.new(found[0].to_i, found[1].to_i)\n            else\n              # TRANSLATORS 'copyright' is an attribute name and should not be translated\n              raise ArgumentError, _(\"%{value} is not a good copyright year or range\") % { value: part.inspect }\n            end\n          end\n        end\n\n      when Array then\n        result = []\n        input.each do |item|\n          item = munge_copyright_year item\n          if item.is_a? Array\n            result.concat item\n          else\n            result << item","sourceCodeStart":316,"sourceCodeEnd":352,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L316-L352","documentation":"Error \"%{value} is not a good copyright year or range\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:334 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}